Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Reference to scalaVersion is ambiguous #31

Closed
tutnixzursache opened this Issue Sep 12, 2011 · 3 comments

Comments

Projects
None yet
2 participants

Hi,

I try to use your plugin for a new sbt-project. However I get always the following error:


tnzs$ sbt
[info] Loading global plugins from /home/tnzs/.sbt/plugins
[info] Loading project definition from /home/tnzs/workspace/test/project/plugins
/home/tnzs/workspace/test/build.sbt:5: error: reference to scalaVersion is ambiguous;
it is imported twice in the same scope by
import com.typesafe.sbteclipse.SbtEclipsePlugin._
and import Keys._
scalaVersion := "2.9.0"
^
/home/tnzs/workspace/test/build.sbt:5: error: reassignment to val
scalaVersion := "2.9.0"
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q


test/build.sbt:

$ cat build.sbt
name := "My Project"

version := "1.0"

scalaVersion := "2.9.0"

libraryDependencies += "junit" % "junit" % "4.8" % "test"


plugins/build.sbt:

$ cat project/plugins/build.sbt

resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse" % "1.4.0-RC2")


I used the sbt Version 0.11.0-RC0.

Contributor

hseeberger commented Sep 12, 2011

Thanks for reporting.

I think this is a sbt bug, though: harrah/xsbt#180

Contributor

hseeberger commented Sep 13, 2011

Update: According to Mark Harrah (sbt author) this behavior is expected. But I disagree and opened this thread on the sbt mailing list: http://groups.google.com/group/simple-build-tool/browse_thread/thread/157fef6e886ac18f

In any case it is not a sbteclipse issue.

@hseeberger hseeberger closed this Sep 13, 2011

@hseeberger hseeberger reopened this Sep 13, 2011

I've just tested it again and it works as expected.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment