-
Notifications
You must be signed in to change notification settings - Fork 533
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
"java.lang.AssertionError: ... mkAttributedQualifier(Unit, <none>)" on 1.narrow
#674
Comments
I think here is the right place to post it. Can you confirm that this bug is REPL-only? |
Yes, it only occurs in the REPL:
|
Hi, just stumbled over this myself while going through Dave Gurnell's book and while I'm not sure where to start looking for a fix, I can add some more details After some playing this is reproducible outside of the REPL
This is the same error as @kevinmeredith gets Weirdly, this only seems to happen when
|
It must be a scalac cause the error appears only for scala version 2.12.1. There is no error for scala 2.11.8 and 2.10.6. |
And I think the found the part of scala to blame. Here it is. If we comment out this part the error disappears. The TODO: is interesting it says to "defer replacing ConstantTyped tree by the corresponding constant until erasure", which is exactly the reason that the assertion fails But I don't know what breaks after we comment this out. Should we open a scala issue? @milessabin |
In the idea 2017.2.3 has the different error: |
@lshoo how does that stack trace relate to this ticket? |
Is there any fix available for this issue or maybe some workarounds? It can be easily reproduced as follows:
|
I stumbled on the same error in my own library (not using shapeless) and not in REPL. I think this is a scalac issue. EDIT: further exploring the log, maybe not the same |
Hi -
Given:
The following compiler crash occurs within
sbt console
:I'm not sure if creating a
scalac
bug would've been more appropriate. However, I decided to post the bug here first.The text was updated successfully, but these errors were encountered: