The snapshot of the Scala plugin for Eclipse that I posted a few days ago had a couple of annoying bugs. Here’s a new one build (note that it’s an Eclipse update site, so no point in trying to access it with a browser) from revision 17139 of the trunk of the plugin with the compiler and standard libraries from the 2.7.x branch.
Miles has been busy once again and fixes included since the last build are 1717, 1233, 1636, 1662, 1716, 1627, 1534, 1410, 1516, 1483 and 1253.
Update: New build published that includes fix for ticket 1741. Uninstallation followed by installation may be required if p2 starts giving cryptic errors (it seems like it doesn’t handle well the case where the update site is replaced). Sorry about that.
Update 2: With the release of Scala 2.7.4-rc1, this backport is obsolete.
[…] 2: See here for a newer build with mentioned issues fixed. […]
Awesome! Thanks for taking the time to port back Miles’ excellent effort.
Since this time, you didn’t mention annoying bugs, I gave it a try.
I noticed quite some improvements, but I rapidly ran into this :
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
at scala.tools.eclipse.wizards.NewResourceWizard$Page.createControl(NewResourceWizard.scala:83)
…
Seems you are building with Java 6 (which introduces String#isString()) so the plugin is using it directly and not RichString#isEmpty().
Could you rebuild for Java 5 ?
The scala plugin is supposed to require Java 5 or later.
Good catch, I will do it as soon as possible.
David,
I’ve uploaded a new build compiled with JDK5u17. That is the only change from the previous build. Let me know if you still have problems.
Ismael
Ismael,
I didn’t manage to update to the new version, I get the infamous ‘No repository found containing: ch.epfl.lamp.sdt/org.eclipse.update.feature/2.7.3.r17139-b20090218162429’.
David
Finally managed to get it (retries paid off).
No longer gets the errors I had previoulsy.
Seems OK now.
Thank you for your reactivity.
The wonders of p2 (the Eclipse Provisioning System). Anyway, great that it worked after a few retries. :)
Ismael
thanks
Are you sure it’s fixed ?
I updated to r17139-b20090219…, and it doesn’t seem to copy the resources.
(Luckily for me, the maven builder does, so I am not burned by the bug)
David
Yes, you’re not using the latest. It should be r17139-b20090223…
Indeed.
I am seeing that one now.
But this morning, I was seeing only the one from the 19th.
Most likely a case where p2 was using stale information. I uploaded it and updated my installation from it before I updated the blog.
Could you consider making a new build of your backport ?
I know Miles Sabin promised an official one, but it doesn’t looks like it’s coming anytime soon.
Hi David,
There will be a Scala 2.7.4 release next week or so (including the plugin). It’s still unclear what will be backported to that release. I suggested that trunk could be used but Miles didn’t think it would be wise[1].
I am unsure about doing a new backport for the reason he gives in that message, so I suggest we wait for 2.7.4 to see what it will contain.
If it’s not satisfactory, then I’ll look into creating a build of the plugin from trunk with the compiler and standard libraries from the 2.7.4 tag. How does that sound?
Best,
Ismael
[1] http://twitter.com/milessabin/status/1477406970
That sounds great.
I wasn’t aware 2.7.4 was coming around the corner.
If it could just have autocompletion working, I would be so happy.
Otherwise, you mean using 2.8.0 plugin + 2.7.4 compiler.
I didn’t realize it was an option.
If it can be made to work, it certainly seems easier to stay up to date that way.
David
[…] generics, but the big change is the improved Scala plugin Scala IDE for Eclipse. This means that my backport is now […]