I have a weird issue with Scala IDE 4.1 useScopesCompiler and -Ybackend:GenBCode that result in compile errors; I observed that disabling/enabling useScopesCompiler with -Ybackend:GenBCode cause spurious compile errors.
Here are the steps to reproduce the issue:
1. Freshly Install and launch Scala IDE 4.1 with a fresh workspace
2. Add -Ybackend:GenBCode in the Scala compiler preference
3. Import the attached Team Project Set File
4. Disable useScopesCompiler (this triggers recompilation)
5. Enable useScopesCompiler (this triggers another recompilation)
After Step 5, some of the imported projects have compile errors (sometimes the compile errors also happen in Step 4); no amount of project cleaning help to rid of the errors.
To remove them, I have to (temporarily) take out -Ybackend:GenBCode, which then triggered another recompilation.
I can then add back -Ybackend:GenBCode without causing the compile errors to appear.
If I do Step 4 and 5 again, the errors reappear.
Here are the steps to reproduce the issue:
1. Freshly Install and launch Scala IDE 4.1 with a fresh workspace
2. Add -Ybackend:GenBCode in the Scala compiler preference
3. Import the attached Team Project Set File
4. Disable useScopesCompiler (this triggers recompilation)
5. Enable useScopesCompiler (this triggers another recompilation)
After Step 5, some of the imported projects have compile errors (sometimes the compile errors also happen in Step 4); no amount of project cleaning help to rid of the errors.
To remove them, I have to (temporarily) take out -Ybackend:GenBCode, which then triggered another recompilation.
I can then add back -Ybackend:GenBCode without causing the compile errors to appear.
If I do Step 4 and 5 again, the errors reappear.
Leave a comment
on 2015-10-13 14:46 *
By Simon Schäfer
on 2015-10-21 08:45 *
By wpopielarski769697
The -Ybackend:GenBCode alone is actually working from version 4.2.0
the combination of -Ybackend:GenBCode -Ydelambdafy:method needs a change in scala compiler. PR is open https://github.com/scala/scala/pull/4809
the combination of -Ybackend:GenBCode -Ydelambdafy:method needs a change in scala compiler. PR is open https://github.com/scala/scala/pull/4809
Let's keep this open until the upstream PR is actually merged. Then also please set the 'fixed in version' field ;-)
on 2015-10-22 01:08 *
By wpopielarski769697
sorry, I was too fast, anyway maybe set the status to 'test' as a notification that right now dev is done and ticket waits for a sort of confirmation?
No file chosen
You have an empty file field. Please select or remove it.
Name | Size | ||
---|---|---|---|
scalaide-test.psf | 461 Bytes | Added by robby@santoslab.org on 2015-05-31 - Upload new version |