Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bloop not compiling with Scala 2.13.3 #1330

Closed
tgodzik opened this issue Jun 26, 2020 · 4 comments
Closed

Bloop not compiling with Scala 2.13.3 #1330

tgodzik opened this issue Jun 26, 2020 · 4 comments
Labels
bug A defect or misbehaviour. priority / high Any change that has a high priority to be fixed because of its immediate consequences. task / compile

Comments

@tgodzik
Copy link
Contributor

tgodzik commented Jun 26, 2020

It's seems it's unable to compile the compiler bridge:

Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.3. Compiling...
[D] Creating plain compiler interface for 2.13.3.
  > Arguments: 
	-nowarn
	-d
	/tmp/sbt_30e2df6b
	-bootclasspath
	/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.3/scala-library-2.13.3.jar
	-classpath
	/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/ch/epfl/scala/compiler-interface/1.3.0-M4%2B42-5daa8ed7/compiler-interface-1.3.0-M4%2B42-5daa8ed7.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.2.2/util-interface-1.2.2.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/ch/epfl/scala/compiler-bridge_2.13/1.3.0-M4%2B42-5daa8ed7/compiler-bridge_2.13-1.3.0-M4%2B42-5daa8ed7-sources.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.3/scala-compiler-2.13.3.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline/3.15.0/jline-3.15.0.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar:/home/tgodzik/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.13.3/scala-reflect-2.13.3.jar
	/tmp/sbt_10394cb7/xsbt/API.scala
	/tmp/sbt_10394cb7/xsbt/Analyzer.scala
	/tmp/sbt_10394cb7/xsbt/CallbackGlobal.scala
	/tmp/sbt_10394cb7/xsbt/ClassName.scala
	/tmp/sbt_10394cb7/xsbt/Command.scala
	/tmp/sbt_10394cb7/xsbt/Compat.scala
	/tmp/sbt_10394cb7/xsbt/CompilerInterface.scala
	/tmp/sbt_10394cb7/xsbt/ConsoleInterface.scala
	/tmp/sbt_10394cb7/xsbt/DelegatingReporter.scala
	/tmp/sbt_10394cb7/xsbt/Dependency.scala
	/tmp/sbt_10394cb7/xsbt/ExtraGlobal.scala
	/tmp/sbt_10394cb7/xsbt/ExtractAPI.scala
	/tmp/sbt_10394cb7/xsbt/ExtractUsedNames.scala
	/tmp/sbt_10394cb7/xsbt/GlobalHelpers.scala
	/tmp/sbt_10394cb7/xsbt/InteractiveConsoleFactory.scala
	/tmp/sbt_10394cb7/xsbt/InteractiveConsoleHelper.scala
	/tmp/sbt_10394cb7/xsbt/InteractiveConsoleInterface.scala
	/tmp/sbt_10394cb7/xsbt/InteractiveConsoleResponse.scala
	/tmp/sbt_10394cb7/xsbt/JarUtils.scala
	/tmp/sbt_10394cb7/xsbt/JavaUtils.scala
	/tmp/sbt_10394cb7/xsbt/LocalToNonLocalClass.scala
	/tmp/sbt_10394cb7/xsbt/LocateClassFile.scala
	/tmp/sbt_10394cb7/xsbt/Log.scala
	/tmp/sbt_10394cb7/xsbt/Message.scala
	/tmp/sbt_10394cb7/xsbt/PickleVirtualDirectory.scala
	/tmp/sbt_10394cb7/xsbt/PicklerGen.scala
	/tmp/sbt_10394cb7/xsbt/ScaladocInterface.scala
	/tmp/sbt_10394cb7/xsbt/ZincPickleCompletion.scala
	/tmp/sbt_10394cb7/xsbt/ZincPicklePath.scala
	/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala
      
/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala:16: error: type mismatch;
 found   : String
 required: ZincSymbolLoaders.this.symbolTable.TermName
          if platform.needCompile(bin, src) && !binaryOnly(owner, classRep.name) =>
                                                                           ^
/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala:18: error: type mismatch;
 found   : String
 required: ZincSymbolLoaders.this.symbolTable.TermName
        enterToplevelsFromSource(owner, classRep.name, src)
                                                 ^
/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala:21: error: type mismatch;
 found   : String
 required: ZincSymbolLoaders.this.symbolTable.TermName
        enterToplevelsFromSource(owner, classRep.name, src)
                                                 ^
/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala:27: error: type mismatch;
 found   : String
 required: ZincSymbolLoaders.this.symbolTable.TermName
          enterClassAndModule(owner, classRep.name, new ZincPickleLoader(bin, _, _))
                                              ^
/tmp/sbt_10394cb7/xsbt/ZincSymbolLoaders.scala:29: error: type mismatch;
 found   : String
 required: ZincSymbolLoaders.this.symbolTable.TermName
          enterClassAndModule(owner, classRep.name, new ClassfileLoader(bin, _, _))
                                              ^
5 errors
Compiled root (3394ms)

anyone knows what might be going on? Do we need to just update zinc?

@jvican jvican added bug A defect or misbehaviour. priority / high Any change that has a high priority to be fixed because of its immediate consequences. task / compile labels Jun 26, 2020
@jvican
Copy link
Contributor

jvican commented Jun 26, 2020

Looks like 2.13.3 broke this API compared to 2.13.2. I'll need to publish a specific version of the compiler bridge for Scala version greater than 2.13.3. I can look into this over the weekend.

@jvican
Copy link
Contributor

jvican commented Jun 26, 2020

Commit message that has broken this scala/scala@1c22f68

@tgodzik
Copy link
Contributor Author

tgodzik commented Jun 30, 2020

@jvican Any luck with that? We could try to fix it on our side, but we could use some pointers on how to approach it.

@jvican
Copy link
Contributor

jvican commented Jun 30, 2020

Fixed in #1331

@jvican jvican closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect or misbehaviour. priority / high Any change that has a high priority to be fixed because of its immediate consequences. task / compile
Projects
None yet
Development

No branches or pull requests

2 participants