On Feb 14, 2012, at 11:54 PM, John Nestor wrote:
> I am new to sbt and sbteclipse.
Welcome!
> I am using sbt 0.11.2
>
> My build.sbt file contains
>
> name := "test"
>
> version := "1.0"
>
> scalaVersion := "2.9.1"
>
> resolvers += Classpaths.typesafeResolver
>
> addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0-
> RC1")
The last two lines have to go into a different file: Plugins have to be defined in project/plugins.sbt or in ~/plugins/plugins.sbt (the name does not matter, but the directory and the suffix).
For details see the excellent getting started guide:
https://github.com/harrah/xsbt/wiki/Getting-Started-Basic-Def
https://github.com/harrah/xsbt/wiki/Getting-Started-Using-Plugins
Heiko
> I first tried putting the file in ~/plugins/plugins.sbt.
Sorry, my fault. It has to be ~/.sbt/plugins/plugins.sbt
I forgot the .sbt/ directory.
Please try it again, because that's the preferred location for IDE related stuff.
> I am running on OSX.
Of course ;-)
Heiko
> I get the following output when I type "eclipse" at the sbt prompt:
>
> sbt
> [info] Set current project to default-c2e48d (in build file:/Users/bferguson/.sbt/plugins/)
This looks like you try to start sbt in the folder ~/.sbt/plugins. This cannot work. Please create some other empty folder, e.g. ~/projects/foo and start sbt there. Then the eclipse command should be available.
Heiko
On 20 mrt, 22:37, Bruce wrote:
> In ~/.sbt/plugins the name must be build.sbt
The name does not matter, as long as it ends with .sbt.
I actually prefer plugins.sbt, in order not to mix it up with ~/.sbt/build.sbt
Heiko
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/bgsdhLRAO9AJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
I think you have to search in your sbt and project file tree where
string "1.3-RC2" comes from.
Maybe "reload clean update eclipse" helps
On 21 mrt, 14:19, Bruce wrote:
--
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.