I've been writing code in Scala using Eclipse now for just over a week, and my conclusion is that it does work, but is not production ready.
Background on my setup:
- Scala 2.7.7 final
- Eclipse for Java Developers, 3.5.1
- Ubuntu Desktop 9.04 x64
- Maven 2.2.1
- JUnit 4.7
I created a brand new project which I am using just Scala in, no Java:
- Created the project, using maven, referencing the scala-archetype-simple
- I generated an eclipse project for it using "mvn eclipse:eclipse"
- I then opened it in Eclipse
Here are some of the problems I face:
- I lose syntax highlighting all the time... closing and reopening the file helps
- Often, out of now where I get tons of compile errors, cannot find my classes, doing a CLEAN in eclipse solves this
- Eclipse crashes hard sometimes, requires me to kill -9 the java process, then start Eclipse again, see it complain about the workspace, then start it again
- I'm writing vanilla JUnit tests, and have a lot of trouble running them, most of the time Eclipse can't find them, restarting Eclipse and then opening each test file usually resolves this temporarily, the error I often get is No tests found with test runner 'JUnit 4'
- Lots of erroneous squigles appear under lines of code, they can be ignored it seems
- Intellisense works maybe 10% of the time, cleaning and/or reopening files seems to bring it back temporarily
- Sometimes I lose the ability to type in the text editor in Eclipse, if I fiddle enough it might come back, or I just close and re-open the file
- Sometimes basic things like highlighting and deleting a line of code fail, with errors like "Delete" did not complete normally. Please see the log for more information.
So I push through all these issues, and the end result is that I restart Eclipse many times a day, and constantly close and re-open files in Eclipse, and clean often.