Error when switching to version 2.12.2: ClassBType.info not yet assigned

192 views
Skip to first unread message

Silvio

unread,
Jun 22, 2017, 10:59:56 AM6/22/17
to Scala IDE User
After uninstalling 2.11 and installing 2.12.2 rebuilds fail with a ton of identical errror messages:

Error while emitting XXXX.scala assertion failed: ClassBType.info not yet assigned: xxx/xxx/xxx  Unknown Scala Problem

Reverting to 2.11 helps. I found a thread somewhere that said adding scaa-compiler.jar to the dependencies would solve the issue but it doesn't.

Any ideas?



Rafał Krzewski

unread,
Jun 22, 2017, 1:12:00 PM6/22/17
to Scala IDE User
Which version of Scala IDE are you using? What do you mean by "uninstalling" and "installing"? 

Adding scala-compiler.jar to project dependencies is not a good idea, unless you are developing a compiler plugin or some tool that embeds the compiler.

cheers,
Rafał

Silvio

unread,
Jun 22, 2017, 5:35:20 PM6/22/17
to Scala IDE User
Sorry, I mixed up the Scala versions with the IDE versions. I uninstalled Scala IDE 4.5.0 (that uses Scala 2.11) and installed version 4.6.1 (that uses Scala 2.12).

I would not normally add scala-compiler.jar but Googling the error message I found some posts that suggested this is a Scala compiler bug that needed this as a workaround. As said it did not work for me.

Back to Scala IDE 4.5 en Scala 2.11 for now until this is resolved.

Cheers,

Silvio

Rafał Krzewski

unread,
Jun 23, 2017, 5:44:47 AM6/23/17
to Scala IDE User
Can you try importing your project into a fresh workspace created with Scala IDE 4.6.1?
I have a hunch that the error you saw was the incremental compiler tripping up on cache files created by the old version of IDE.

Cheers,
Rafał

Silvio

unread,
Jun 26, 2017, 7:26:52 AM6/26/17
to Scala IDE User
Thanks for the suggestion Rafal. Unfortunately it did not lead to a different result. I want to add that I just tried running my Ant build-script with Scala 2.12 and that also fails with a spurious compiler error:

no-symbol does not have a type constructor (this may indicate scalac cannot find fundamental classes)

so there seems to be some fundamental problem in the Scala 2.12 compiler that prevents it from compiling my code.

Cheers,

Silvio

Rafał Krzewski

unread,
Jul 3, 2017, 7:52:54 AM7/3/17
to Scala IDE User
While it's possible that you've run into a regression in scalac 2.12, the message you quote below suggests an incorrect/incomplete classpath which could be a problem in your build script.

Scalac team and may power users hang out on https://gitter.im/scala/scala - they can help you out better than I do.

Cheers,
Rafał
Reply all
Reply to author
Forward
0 new messages