Using scala-2.8.0.RC1 with Maven and Intellij 9.0.1 - scala

I am trying to build a project using the newest release candidate of Scala (scala-2.8.0.RC1) and Maven in Intellij CE (9.0.1) -- I cannot upgrade to 9.0.2 because it breaks the La Clojure plugin.
If I change my pom.xml to use the scala-2.8.0.RC1, Intellij tells me that Array is not defined (highlights in red). If I change to scala-2.8.0.Beta1, everything is fine.
Is there a (known) problem with scala-2.8.0.RC1 and Intellij?
Thanks, Ralph

I think IDEA 9.0.1 just does not work with RC1. I may be wrong but my guess is that this is due to changes in the pickling format between the Beta1 and RC1 scala releases.
I have found few issues with 9.0.2 and RC1 but obviously if this breaks a vital plugin for you then you have learned an important lesson: there are costs associated with being at the bleeding edge

Related

Why does IDEA mark certain parts of Play code red?

I'm pretty new to the Play framework. I've been trying to configure it so I can use it with IntelliJ Ultimate.
I use following:
IntelliJ Ultimate 14.03
Scala plugin for IntelliJ 1.2.1
Play Framework 2.3.7 (the one that works online 1,2MB)
Scala 2.11
JDK 1.7
Windows 7
My problem is all about the fact that i can't make the errors disappear. Below is a simple example. When I create something more complicated (mapping etc.) I get entire blocks of red (also it does not suggest any code for the more complicated code).
What I've tried to fix it:
- deleting .idea folder and generating it again
- cleaning sbt
- generating a Play app from inside activator and also from IntelliJ
- re-installing IntelliJ
This is how I create the app from inside IntelliJ
I'm new both to Scala and Play, but I've done some research and I didn't end up with working solution. The same project works on Eclipse, but I would like to stick with IntelliJ.
The Scala plugin 1.2.1 is fairly outdated (given the development stage/pace of the Scala support in IntelliJ IDEA).
As of today, Jan, 29th, you should really be using the latest version of the Scala plugin 1.3.

possibility of scala-virtualized in Eclipse with Scala >=2.11

I followed this guide: http://lamplmscore.epfl.ch/mediawiki/index.php/Eclipse_IDE_with_Scala-virtualized
in order to use the virtualized (-Yvirtualize ) plugin inside the eclipse compiler. This works for a nightly build of Scala 2.10 which is old and lacks features like implicit classes. Does anyone know of a way to work with newer versions of Scala with the virtualize plugin AND eclipse?
Sorry to be bringing bad news:
The Eclipse IDE for Scala-virtualized has not been updated in the last 2 years, so it's not expected to be usable (Source: I maintained the EclipseIDE for scala-virtualized) -- I updated the wiki.
Regarding 2.11, please see Alexey's comment (and answer) below.
Scala-virtualized has been updated to 2.11.2 now. You can definitely use it in IDEA, at least (just make sure the Scala-virtualized scala-{library,reflect,compiler}.jar are above the non-virtualized versions in Dependencies tab under Project Settings -> Modules). I don't know if you can use it in Eclipse, but it might be possible using Scala installations support (see under BYOS (Bring Your Own Scala)).

Eclipse plugin version conflict

I'm suffering from the version conflict on Eclipse.
I want to use the following two plugins in one Eclipse instance.
org.abc.plugin1a
has a dependency on org.eclipse.plugin1b_1.0.0
(works well only with version 1.0.0, not work with the newer version!)
impossible to be maintained because of a certain reason
org.eclipse.plugin2a
has a dependency on org.eclipse.plugin1b_2.0.0 (or newer)
Actually org.abc.plugin1a was developed experimentally by an ex-employee, not by me. The source codes are available but too complicated.
I found there are huge differences between org.eclipse.plugin1b_1.0.0 and 2.0.0.
So it is almost impossible for me to update org.abc.plugin1a to work with org.eclipse.plugin1b_2.0.0
Is there any answer to solve my problem?
Specify both the minimum and maximum version of the plugin in the Require-Bundle:
Require-Bundle: org.eclipse.plugin1b_1.0.0;bundle-version="[1.0.0,1.0.0]"
This will not work if plugin org.eclipse.plugin1b is marked as a singleton since in that case Eclipse will only load one version of the plugin.

Problem on error highlight using IntelliJ 10 CE with the scala plug-in

I'm having some strange behavior in the IntelliJ editor when editing scala sources. It continuously report problem of kind "cannot resolve symbol" on various Predef functions like "require" and "->".
It seems to be only an editor problem because I am able to run scala code in Intellij and compile the sources using maven.
Am I the only one having this kind of problem ?
I'm using the Intellij version 10.0.3 CE and scala plugin version 0.4.735.
Thanks.
I would recommend using the latest IntelliJ IDEA EAP together with the latest Scala Plugin. This is known to solve a lot of problems.
Please, check the project configuration guide. It's likely that you forgot to add Scala standard library to the module dependencies.

Stable Scala 2.8 plugin

Does anyone know if there exists a stable version of the Scala plugin for eclipse, running with Scala 2.8 (any version of scala 2.8...RC or beta or whatever).
I like the fact that it compiles 10 times faster than the netbeans plugin, but it is very unstable, and auto-imports doesnt work. Also, sometimes it cant find classes when I hit "run", then I have to clean it again. This is with some random nightly build of the 2.8 eclipse scala plugin.
Is there a stable version? If so, can you link me to it?
Thanks in advance :)
The main web site for Scala Eclipse plugin is now at www.scala-ide.org
You can try the plugin for 2.8.0 RC2 with this update p2 site
(not browsable: copy http://www.scala-lang.org/archives/downloads/distrib/files/scala-plugin-rc/)
As for a truly stable version, that plugin is not there yet, but as Miles Sabin once told me (Sept. 2009): "Looking forward to receiving your contributions."
And he was quite snappy about it too ;) But that was enough to convince my hierarchy that is was too early to invest in Scala at the time: too large eclipse user-base in our department, and no real Scala support/documentation at the time on Eclipse.
In all fairness, the contribution and developer documentation is now much richer than it once was.
I have been using it since release, and found 2.8.0 RC2 (link given by VonC) to be quite stable (certainly a lot more than 2.7.7).
I was using eclipse 3.5.2 with the 2.8.0 RC2 plugin which created a lot of problems with compiling. I had to unistall the plugin and still the problems would remain. Only after a numbers of attempts to clean/build/delete/re-import the project and restart eclipse solved the problems...