Skip to content

Instantly share code, notes, and snippets.

@jvican
Created November 12, 2019 13:33
Show Gist options
  • Save jvican/bd2385b5b46a326a7e238faa0acc28f6 to your computer and use it in GitHub Desktop.
Save jvican/bd2385b5b46a326a7e238faa0acc28f6 to your computer and use it in GitHub Desktop.

Here's an error that I got spuriously but rerunning the compilation made it go away.

[E] [E1] config/src/main/scala-2.11-13/bloop/config/ConfigCodecs.scala:119:42
[E]      Cannot evaluate a parameter of the 'make' macro call for type 'bloop.config.Config.JvmConfig'. It should not depend on code from the same compilation module where the 'make' macro is called. Use a separated submodule of the project to compile all such dependencies before their usage for generation of codecs. Cause:
[E]      java.lang.AssertionError: assertion failed: pkgClass = package <root>, sym = package com, existing = package com (depth=0)
[E]      L119:     JsonCodecMaker.make[Config.JvmConfig](CodecMakerConfig.withTransientEmpty(false))
[E]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[E] config/src/main/scala-2.11-13/bloop/config/ConfigCodecs.scala: L119 [E1]

Here's another kind of error that no matter if i restarted the compilation didn't go away. I had to restart the compiler.

[E] [E7] config/src/main/scala-2.11-13/bloop/config/ConfigCodecs.scala:194:40
[E]      Cannot evaluate a parameter of the 'make' macro call for type 'bloop.config.Config.Project'. It should not depend on code from the same compilation module where the 'make' macro is called. Use a separated submodule of the project to compile all such dependencies before their usage for generation of codecs. Cause:
[E]      java.lang.AssertionError: assertion failed: import failure: cannot determine unique overloaded method alternative from
[E]       final package com
[E]      final package com
[E]       that matches package com:com.type
[E]      L194:     JsonCodecMaker.make[Config.Project](CodecMakerConfig.withTransientEmpty(false))
[E]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The root of the problem seems the same, related issue is fthomas/refined#260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment