Eclipse Scala plug-in: "illegal cyclic inheritance" - eclipse

I just updated to the latest Scala-IDE version on Eclipse, and it's highlighting loads of spurious "illegal cyclic inheritance" errors in code I know to be OK (it was before, and it still compiles and runs OK).
Any way to fix this? If not, how do I roll back to the previous version? I don't see any options to roll back or download earlier versions on the Scala IDE website.
Thanks.
edit: Never mind, it spontaneously sorted itself out after about 10 minutes sitting there showing errors. Will leave question here in case else anyone gets this.

"Project -> Clean Project" always helps me when Scala-IDE is showing weird error messages.

Sometimes errors will show in the editor, but not in the package explorer. Things still appear to compile ok when that occurs.

Related

Eclipse crashing in PyDev with No Message gotten (null message)

I use Eclipse Luna with PyDev for Eclipse 4.0.0.201504132356.
My function returns a list, which is a list of objects from one class.
So i use it like this:
List = ListMaker()
print List[0].Stuff.Stuff
and this works(!); i see exactly what should be in the list.
However, when making a new new line of code and writing:
List[0].
i get immediately a Problem Occured Message:
No Message gotten (null message)
Java.lang.StackOverflowError
which is clearly wrong; since i see the output is fine and simply clicking the message away. I used the same project in Visual Studio with Python Tools for Visual Studio and never had this Problem either.
Clicking this message away is although pretty annoying. Does someone know how to fix this?
EDIT: The error occures in org.python.pydev.shared_core
I faced the same issue. I upgraded to Pydev 4.1.0 and it was resolved.
http://pydev.org/history_pydev.html
The the list of fixes that went in 4.1.0
This really seems like some recursion issue on the type inference analysis for PyDev.
Can you please report that as a bug at https://sw-brainwy.rhcloud.com/tracker/PyDev/ so that I can take a look to fix it?
If you could create a github repo with sources where I can reproduce the issue, that'd be awesome.
Also, your error log probably contains the stack trace where this happened... At http://pydev.org/faq.html#PyDevFAQ-HowdoIReportaBUG%3F there are instructions on how to get it (please include that in the bug report).

Mysterious compile error with groovy eclipse plugin

So, I am developing with eclipse 4.2 and groovy 2.3 / jdk 1.6.0_35.
I just worked on one of my classes when suddenly eclipse showed me a dozen compile errors in different classes out of nowhere. It says e.g. it can't find a class in an import statement, although the class is there. Running the code works fine even though the errors are shown. If I add a comment to one of the classes and save it, some errors go away but may come back as soon as I change another (totally different) class.
It also shows me some errors like these:
error description:
As you see, the error is totally unrelated (Optional is totally independent of any other class, also of course independend of the mentioned classes in the error message). If I add a comment somewhere and save Optional, the error goes away but comes back as soon as I save any other class.
I cleaned the project, deleted the bin-directory and restarted eclipse/computer but it didnt' help. Does anyone already experienced this behaviour? How to fix it?
I got similar problem and error was in file above one with compilation error. So try to comment file before and check if this solve problem.

Scala Eclipse plugin doesn't show mouse hover documentation

I just installed the Scala IDE Eclipse plugin with a fresh install of Eclipse Indigo. I followed the getting started youtube video on the scala-ide.org main page on a fresh installation of Indigo. Instead of showing the complete documentation for the String Java class, it shows "type String = String"
I did notice incidentally by looking at the project properties, that in the scala-library.jar and others in the project, under "javadoc location," they show "(None) - non modifiable." I'm not sure if this is the problem, or if the Scala editor gets its documentation somewhere else.
Has anyone else experienced this and/or figured out how to fix it? Thanks!
In addition to the bug that you've raised (Mouse hover doesn't show documentation), there
are the following issues:
Hovering on a type should show its javadoc
Javadoc view regression
As you can see, the issue is a real bug, so there aren't any workarounds at the minute. Sorry.
You could always fix it if you like :-)
So there are updates to this question
The issues stated above are fixed in the latest release.
Hovering on type should show fix
Scaladoc integration with code completion
Please use the latest release of ScalaIDE(post 3.0.4-211) to work with them

eclipse ganymede erroneous red underlining

i'm finding suddenly that eclipse, in a java project, is underlining references to uses of other class uses ive created in the same package. for another reason i reinstalled it today and the red underlinings went away. about an hour later, they popped up again. all classes have the package membership declaration.
anyone seen this before?
My guess is that your compilation is bad for one reason or another. To remedy this I usually do the following in order until one works:
Do a project clean (this should force a compile)
Close and reopen the project.
Close and reopen Eclipse.
I hope this helps.

Eclipse's WTP translation output

How can I view the intermediate translation done to JSP and JSPX pages by WTP? I'm getting weird syntax errors in my Problems tab of Eclipse in a project that has plenty of .jspx pages. They don't affect anything in the running application (Tomcat 6.0) and they appeared only over the last 2 weeks, after an update.
The reason why I'd like to view the output is that I'm using the Stripes framework at http://stripesframework.org and the errors disappear for a particular .jspx file after I remove the <stripes:errors /> line of that file. At the same time, the syntax errors only appeared after I did recent fresh install of Eclipse at work, but then an update of Eclipse at home shortly therafter. I'd like to see the output to determine whose problem this should be (WTP, Stripes, or maybe just me :).
Remember that this issue is somewhat cosmetic, as it doesn't affect anything functionally. It simply spams my Problems tab in Eclipse and shows the little red X icons in the project explorer.
Right now you'd have to add the separate automated tests download to do this, and only in the 3.1 branch, but it enables a "Show Translation" command through Ctrl+Shift+9. Beware that the translation generated isn't 100% the same as the server would create at runtime--it's not intended to be executed. Also, the most recent 3.0.3 builds contain fixes to the translator that should clear up these kinds of problems (NESTED variables + self-closing tags). 3.0.3 is due in November and should update cleanly into Ganymede SR1.
I've seen the eclipse JSP editor get really confused over almost nothing. You said the problem goes away if you remove the tag. Does it come back if you put the tag back? I know that Eclipse 3.3 sometimes had some issues with JSP files where opening them, and forcing a save would clear the file of error messages (I haven't tried 3.4 yet). Maybe that's what's happening to you. Other than that, do you have all the proper includes / xml namespaces defined in the files?
I'm having exactly same problem with JSP and <stripes:errors/> tag in Ganymede. With Europa, there were no errors. Now it displays a couple of weird syntax errors on the problems pane. But as Silvaran stated it's just cosmetic, since the project builds correctly and works. It's still annoying though.