Open skyluc opened 10 years ago
Looking at the code, it has a few ways it can throw a NoSuchElementException
, but not so much NPE.
I tried with a non-workspace file, but found a different problem #179.
Luc,
Thanks for looking into this. I could not find anything unusual with this worksheet or product. The worksheet is located in a simple Scala project.
The only difference I noticed is that .scala files have a J icon in front of them in the Kepler Eclipse that has the problem, while my older Helios Eclipse has an S icon in front of .scala files. Both worksheets have the proper Eclipse icon in front of them and open in the Scala Script editor properly. In the Kepler preferences the Scala source code type hangs directly under the Java type. I tried to change that, but could not find out how. Uninstalling all Scala IDE components and reinstalling them did not help.
Maybe this gives you a hint.
Thanks, Markus
Hmm. It sounds like Scala IDE is not correctly installed.
Can you check in the 'Setup Diagnostics' (`Scala > Run Setup Diagnostics' from the Scala perspective), the check box in the first block (JDT Weaving) is set and grayed out? Also, which flavor of Eclipse and other plugins are you using? It is possible that it is caused by some bad interaction.
That is really interesting. I had run the diagnostics a couple times before, but when I ran it now and tested the spreadsheet again right after, the inline comments got added properly, like in the Helios IDE.
I am using a regular Eclipse:
Eclipse Standard/SDK Version: Kepler Service Release 1 Build id: 20130919-0819
with Scala, PHP, and Java development tools added.
So I guess for me the issue is fixed now and the NullPointerException does not occur in the log file anymore.
I tried to reproduce your environment to reproduce the problem, but no luck.
When you have some time, it would great if you could create a second install of Eclipse, install the worksheet, and see if it works out-of-the-box.
(Reported in assembla #1002052)
This line produces an NPE: