Re: [sbt] [sbteclipse] Compiler warning for Scala IDE 3.0.0

122 views
Skip to first unread message

Heiko Seeberger

unread,
Mar 21, 2013, 10:31:34 AM3/21/13
to simple-b...@googlegroups.com
sbt 0.12.x is on Scala 2.9.

If you want Scala 2.10 you have to use the yet unreleased sbt 0.13 (there is a milestone M1).

Heiko

On Mar 21, 2013, at 10:59 AM, Ricardo Gladwell <ricardo....@gmail.com> wrote:

Hi Guys

First time posting here, I'm trying to use sbteclipse to generate project files for my Eclipse install with the new Scala IDE 3.0.0. For my sbtplugin project using sbt 0.12.2. However, despite the fact I'm specifying Scala version as 2.10.1 in my build.sbt for some reason the sbteclipse plugin keeps adding the sbinary_2.9.0-0.4.0.jar to the Referenced Libraries classpath container.

I keep getting the following error message:

sbinary_2.9.0-0.4.0.jar is cross-compiled with an incompatible version of Scala (2.9.0). In case of errorneous report, this check can be disabled in the compiler preference page.

scalaVersion := "2.10.1"

Am I doing something wrong?

TIA...

-- Ricardo

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
To post to this group, send email to simple-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Iulian Dragoș

unread,
Mar 25, 2013, 7:05:23 AM3/25/13
to simple-b...@googlegroups.com
As Heiko mentioned, Sbt 0.12.2 is using Scala 2.9. If your plugin targets 0.12.2, it should be compiled with 2.9 (please correct me if I'm wrong, I haven't been writing Sbt plugins). In that case, just install the Scala IDE for 2.9 instead (or download a pre-packaged one from Typesafe).

iulian

Ricardo Gladwell

unread,
Mar 27, 2013, 2:39:25 PM3/27/13
to simple-b...@googlegroups.com
Thanks, using sbt 0.13 M1 works much better. Although I note there is still patchy support for SBT plugins for Scala 2.10.

Is there an upgrade for the sbteclipse plugin? Should I use Scala 2.9?

Heiko Seeberger

unread,
Mar 27, 2013, 2:53:41 PM3/27/13
to simple-b...@googlegroups.com
On Mar 27, 2013, at 7:39 PM, Ricardo Gladwell <ricardo....@gmail.com> wrote:

Is there an upgrade for the sbteclipse plugin?

Not yet.

Should I use Scala 2.9?

Please understand that you can use more or less any Scala version for your project regardless of the sbt version. sbt uses one Scala version "for itself", but can work with various Scala versions for your project.

I recommend you use sbt 0.12.2 (soon 0.12.3) unless you have a very specific use case for sbt 0.13.

Heiko

Ricardo Gladwell

unread,
Mar 28, 2013, 6:56:58 AM3/28/13
to simple-b...@googlegroups.com
Thanks for the feedback, I'll downgrade for now.
Reply all
Reply to author
Forward
0 new messages