Comments (4)
ValOrDefDefMethods
was introduced in 3.4. It is probably getting confused because of the missing ValOrDefDefMethods
in Quotes
of 3.3.1.
We might need to wait until we get 3.4.0
. We could not update the reference compiler due to 3.4.0-RC1
due to conflicting TASTy minor versions on experimental versions of the compiler. This will happen each time we update to a new minor release.
from bloop.
In the Bloop configuration of scala3-compiler
we have:
"dependencies": [
"scala3-interfaces",
"scala3-library",
"tasty-core"
],
"classpath": [
"/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-interfaces/classes",
"/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-library/scala-3/classes",
"/home/piquerez/github/lampepfl/dotty-fresh/.bloop/tasty-core/scala-3/classes",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.6.0-scala-1/scala-asm-9.6.0-scala-1.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.6/compiler-interface-1.9.6.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.19.0/jline-reader-3.19.0.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.19.0/jline-terminal-3.19.0.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.19.0/jline-terminal-jna-3.19.0.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.8/util-interface-1.9.8.jar",
"/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar"
],
So scala3-compiler
should have all the new scala3-library
classes in its classpath, including ValOrDefDefMethods
. But I suspect Bloop to automatically add scala3-library_3_3.3.1.jar
in the classpath, which shadows ValOrDefDefMethods
.
A fix for this issue would be to export the autoScalaLibrary := false
from sbt configuration to Bloop configuration.
from bloop.
Some more info:
If I run bloop compile scala3-compiler --verbose
I got:
[D][zinc] The Scala compiler is invoked with:
-feature
-deprecation
-unchecked
-encoding
UTF8
-language:implicitConversions
-source
3.3
-Yexplicit-nulls
-Ysafe-init
-Xsemanticdb
-sourceroot
/home/piquerez/github/lampepfl/dotty-fresh
-bootclasspath
/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.3.1/scala3-library_3-3.3.1.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.12/scala-library-2.13.12.jar
-classpath
/home/piquerez/github/lampepfl/dotty-fresh/compiler/resources:/home/piquerez/github/lampepfl/dotty-fresh/compiler/target/scala-3.3.1/resource_managed/main:/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-compiler/bloop-internal-classes/classes-bloop-cli-xg3iHKTwQIWW9vIulmpDeQ==-B7Qn2fdlQquxMpXpNk26pw==:/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-compiler/scala-3/classes-empty-scala3-compiler:/home/piquerez/.cache/bloop/semanticdb/com.sourcegraph.semanticdb-javac.0.9.9/semanticdb-javac-0.9.9.jar:/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-interfaces/bloop-internal-classes/classes-bloop-cli-9EhtLXZmQjOcZD6HxhPGeQ==-98YFALWFSuiu-bQbGpsbig==:/home/piquerez/github/lampepfl/dotty-fresh/.bloop/scala3-library/bloop-internal-classes/classes-bloop-cli-9EhtLXZmQjOcZD6HxhPGeQ==-cQ40KjbrRhik8m_NnNJatA==:/home/piquerez/github/lampepfl/dotty-fresh/.bloop/tasty-core/bloop-internal-classes/classes-bloop-cli-9EhtLXZmQjOcZD6HxhPGeQ==-JgASU2SjSq6fT9q_-ssNCw==:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.6.0-scala-1/scala-asm-9.6.0-scala-1.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.6/compiler-interface-1.9.6.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.19.0/jline-reader-3.19.0.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.19.0/jline-terminal-3.19.0.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.19.0/jline-terminal-jna-3.19.0.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.8/util-interface-1.9.8.jar:/home/piquerez/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar
In which we can see that the scala3-library_3_3.3.1.jar
is in the bootclasspath. This should not be the case because the setup
configuration in scala3-compiler.json
contains "manageBootClasspath": false
.
from bloop.
I just opened #2269 to fix this issue.
from bloop.
Related Issues (20)
- Scala/Java mixed projects fail to compile using processorpath bloop + metals HOT 7
- Migrate away from monix to cats-effect HOT 4
- `bloop exit` is undocumented in CLI help and completions HOT 1
- Java modules are not handled properly HOT 2
- I met these error message in 1.5.6 and 1.5.8 HOT 1
- Bloop server has different behavior with sbt in macro HOT 1
- Incremental compile is broken in 1.5.10 HOT 3
- Bloop home directory on Linux HOT 2
- Submit to winget HOT 1
- bug: deduplicate for cancelled compilations
- Support JDK 19 HOT 2
- sbt-bloop (0.5.12) suddenly started compiling when running sbt bloopInstall HOT 6
- Cannot discover test frameworks
- `java.lang.ArrayIndexOutOfBoundsException` while compilation HOT 4
- Include provided dependency in runtime classpath
- Issues with semanticdb if workspace contains whitespace
- Invalid "sources" list generated for project with '-test' suffix.
- installation on mac fails HOT 5
- multiple errors like "bad path element "... ": no such file or directory when building Apache Kafka HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloop.