Giter Club home page Giter Club logo

Comments (4)

nicolasstucki avatar nicolasstucki commented on June 17, 2024 1

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.

adpi2 avatar adpi2 commented on June 17, 2024

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.

adpi2 avatar adpi2 commented on June 17, 2024

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.

adpi2 avatar adpi2 commented on June 17, 2024

I just opened #2269 to fix this issue.

from bloop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.