Git Product home page Git Product logo

sbt-eclipse's Introduction

sbt-eclipse

Build Status Repository size Scala Steward badge

Plugin for sbt to create Eclipse project definitions. Please see below for installation details and the Documentation for information about configuring sbt-eclipse. Information about contribution policy and license can be found below.

Installation and Basic Usage

  • Open your plugin definition file (or create one if doesn't exist). You can use either:

    • the global file (for version 1.0 and up) at ~/.sbt/SBT_VERSION/plugins/plugins.sbt
    • the project-specific file at PROJECT_DIR/project/plugins.sbt
  • Add sbt-eclipse to the plugin definition file:

    • Version 6.x+ only supports SBT 1.4+. Use 5.2.4 or older for previous versions of SBT
addSbtPlugin("com.github.sbt" % "sbt-eclipse" % "6.0.0")

// For older sbt versions (< 1.4.0)
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")
  • In sbt use the command eclipse to create Eclipse project files

    > eclipse

  • In Eclipse use the Import Wizard to import Existing Projects into Workspace

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author.

License

This code is open source software licensed under the Apache 2.0 License. Feel free to use it accordingly.

Maintainers

Releases

Maintainers must run git tag or use the GitHub UI to tag a release. As soon as a tag gets pushed to the repository (or created via the GitHub UI) a release will be pushed to the Maven Central repository. Also on each push to the main branch snapshots will be published.

sbt-eclipse's People

Contributors

benmccann avatar blaisorblade avatar corruptmemory avatar daenenk avatar dlandis avatar dnadolny avatar domizei385 avatar dotta avatar dragos avatar earldouglas avatar eed3si9n avatar er1c avatar etorreborre avatar gkossakowski avatar godenji avatar guymers avatar huitseeker avatar hyviquel avatar jroper avatar jsuereth avatar kebeda avatar mageswaran1989 avatar mkurz avatar mseddon avatar philippus avatar philwalk avatar retronym avatar scala-steward avatar spangaer avatar teldosas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sbt-eclipse's Issues

Add option to specify extra scopes for Eclipse buildpath

According to several howtos on Lift + sbt 0.10 [1] the jetty dependency has to have it's scope set to "jetty".

"org.mortbay.jetty" % "jetty" % "6.1.22" % "jetty"

This prevents the "eclipse" command from including the jetty jar-file in Eclipses Referenced Libraries folder.

Is it possible to add an argument to eclipse command for specifying extra scopes? Or is this achievable in some other way?

Just now I work around it by adding an extra line at the end of my build.sbt that looks like this:

libraryDependencies += "org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default"

[1] http://moreindirection.blogspot.com/2011/06/migrating-to-sbt-010-lift.html

unresolved dependency

Heiko,

Apologies if this is not a bug, but following the instruction I added the following to my global .sbt:

resolvers += Classpaths.typesafeResolver

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

When I launch sbt, I get the following error:

unresolved dependency: com.typesafe.sbteclipse#sbteclipse;1.4.0-RC4: not found

with-sources not re-updating SNAPSHOT sources

While sbt updates SNAPSHOT dependencies to their latest versions, eclipse with-sources doesn't seem to be pulling down the corresponding sources. Notice the date discrepancies (this is after running eclipse with-sources):

$ ll ~/.ivy2/cache/org.scalatra/scalatra_2.9.0-1/jars/scalatra_2.9.0-1-2.0.0-SNAPSHOT.jar
-rw-r--r-- 1 yang yang 362520 2011-08-18 14:48 /home/yang/.ivy2/cache/org.scalatra/scalatra_2.9.0-1/jars/scalatra_2.9.0-1-2.0.0-SNAPSHOT.jar

$ ll ~/.ivy2/cache/org.scalatra/scalatra_2.9.0-1/srcs/*
-rw-r--r-- 1 yang yang 24028 2011-07-21 11:11 scalatra_2.9.0-1-2.0.0-SNAPSHOT-sources.jar

Add support for execution environments

Execution environments are the recommended way to configure the JRE/JDK used by Eclipse projects. As such, sbteclipse should support a way to do it and a SettingKey seems like the obvious approach.

Transitive Project dependencies not included.

If you have a multi-module project, all the dependencies must be specified for the modules:

Given:
module1
module2
module3

Module2 depends on Module1
Module3 depends on Module2 (and transitively, module1).

sbteclipse will not include module1 (and potentially its library dependencies) as part of the generated project for module3.

The only workaround is to explicitly name module1 as a dependency of Module3.

missing dependency and workaround: org.antlr stringtemplate 3.2.1

Using sbt 0.11 with Scala 2.9.1 with sbteclipse 1.4.0 in Ubuntu 11.04.

Attempted:

sbt "eclipse with-sources same-targets"

Got error:

[info] About to create an Eclipse project for you.
[info] Please hang on, because it might be necessary to perform one or more updates and this might take some time ...
[error] impossible to get artifacts when data has not been loaded. IvyNode = org.antlr#stringtemplate;3.2.1
[error] {file:/home/eric/src/query_face_com/make-metadata-database/}default-142448/*:update-classifiers: java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = org.antlr#stringtemplate;3.2.1
[error] Error running updateClassifiers task for default-142448

Workaround is to add org.antlr stringtemplate 3.2.1 manually:

// Added to build.sbt in project root
libraryDependencies ++= Seq(
"org.antlr" % "stringtemplate" % "3.2.1"
)

Reference to scalaVersion is ambiguous

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.

Dependency on scala compiler should be treated in special way

Hi,

If you add dependency on a compiler like this:

libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)

then you end up with compiler dependency being added as a normal jar to .classpath file as any other. However, we should be using the same kind of mechanism that is being used for Scala library dependency.

Duplicate project dependency in Eclipse if normal and test dependency

If one has a normal project dependency and a test->test dependency, sbteclipse creates a duplicate project dependency causing a build path error in Eclipse. Something like the following should trigger it:

lazy val foo = Project("foo", file("foo"), settings = ...)
lazy val fooTestDep = foo % "test->test"
lazy val bar = Project("bar", file("bar"), settings = ...) dependsOn(foo, fooTestDep)

A single project dependency should be created as Eclipse has no concept of a test dependency.

Tested with 1.3-RC2.

Installation description in README.textile is a little short

It took me a while to find out what is meant with the line
"... First add the plugin to your global plugins project ~/.sbt/plugins. Pay attention to add the resolver and libraryDependency like shown below! ..." in the README.textile.

I propose to give a little more instructions - e.g. as follows (that at least worked for me) :

  • install git (anyway a good idea)
  • in your homefolder create folder .sbt with subfolder plugins (mkdir ~/.sbt/plugins)
  • install the plugin by
    downloading (git clone https://github.com/typesafehub/sbteclipse.git)
    and
    creating a file nambed build.sbt with that content:
    resolvers += {
    val typesafeRepoUrl = new java.net.URL("http://repo.typesafe.com/typesafe/releases")
    val pattern = Patterns(false, "[organisation]/[module]/[sbtversion]/[revision]/[type]s/module-[revision].[ext]")
    Resolver.url("Typesafe Repository", typesafeRepoUrl)(pattern)
    }

libraryDependencies <<= (libraryDependencies, sbtVersion) { (deps, version) =>
deps :+ ("com.typesafe.sbteclipse" %% "sbteclipse" % "1.1" extra("sbtversion" -> version))
}

Best Regards,
Marcus

Customization of generated files

There are situations when due to strange requirements in project generated Eclipse files need some non stanadard customization.
It would be nice to have simple extension points that would allow customization of generated Eclipse project files.

Remove restriction to Scala 2.9

Now that there is already an Eclipse plugin for 2.8.2 and 2.9.0 the restriction to Scala 2.9 should be removed. Instead, the "success message" should make clear which Scala version was used and ask the user to pay attention to pick the matching Eclipse installation.

Use relative path for local libraries

When the sbt option retrieveManaged is 'true', then it would be nice for the classpaths set in .classpath to be relative to the project root. This allows the .classpath to be shared by more than one user when devs check out code.

Multi-module library dependencies support broken

I try 1.2 and 1.3-RC1, both set all module's eclipse classpath to the current selected module's classpath(after "project module-name" and run "eclipse skip-root"), if the current project is root than all module's classpath set to empty.

Enable remote (git) project dependencies

renamed from "external dependency is not referenced" by hseeberger

if I have the following in: base/project/Build.scala

import sbt._
import Keys._

object MyBuild extends Build {
  lazy val a = Project("myProject", file(".")).dependsOn(uri("git://github.com/someone/dependency.git"))
}

and then I run 'sbt eclipse'

I get the following eclipse error, and I am missing 'dependency.jar' in my 'Referenced Libraries'

  Project 'myProject' is missing required Java project: 'dependency'

Minimise dependencies

Given the simplicity of the plugin, does it justify the dependency on Scalaz? I think it's good practice to avoid dependencies in simple SBT plugins as it avoids situations where the user has a conflict due to different plugins requiring different versions of the dependencies.

Error following the example

I am tried to follow the example you gave, but it doesn't work for me:

scalatest@cm-dev-3:$ mkdir test
scalatest@cm-dev-3:
$ cd test
scalatest@cm-dev-3:~/test$ sbt
Getting net.java.dev.jna jna 3.2.3 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/9ms)
Getting Scala 2.8.1 (for sbt)...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
4 artifacts copied, 0 already retrieved (15296kB/16ms)
Getting org.scala-tools.sbt sbt_2.8.1 0.10.0 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
34 artifacts copied, 0 already retrieved (6012kB/25ms)
[info] Set current project to default (in build file:/home/scalatest/.sbt/plugins/)
[info] Set current project to default (in build file:/home/scalatest/test/)

eclipse create-src skip-root
[error] java.util.NoSuchElementException: head of empty list
[error] Use 'last' for the full log.

last
[info] Set current project to default (in build file:/home/scalatest/test/)
[debug] Args = List(create-src, skip-root)
[debug] Trying to create an Eclipse project for you ...
java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:386)
at scala.collection.immutable.Nil$.head(List.scala:383)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2$$anonfun$apply$13.apply(SbtEclipsePlugin.scala:193)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2$$anonfun$apply$13.apply(SbtEclipsePlugin.scala:193)
at sbt.MultiLogger.log(MultiLogger.scala:28)
at sbt.Logger$class.info(Logger.scala:72)
at sbt.AbstractLogger.info(Logger.scala:8)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2.apply(SbtEclipsePlugin.scala:193)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2.apply(SbtEclipsePlugin.scala:36)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$.process(Command.scala:91)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:72)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:72)
at sbt.State$$anon$1.process(State.scala:54)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:72)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:72)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:13)
at sbt.MainLoop$.next(Main.scala:72)
at sbt.MainLoop$.run(Main.scala:63)
at sbt.xMain.run(Main.scala:33)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:24)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.util.NoSuchElementException: head of empty list
[error] Use 'last' for the full log.

If I just run "eclipse create-src", it says it succeeded.

create separate main and test projects

Because different libraries are put on the test classpath, it would be nice to create separate eclipse projects for the main and test configurations. That way tests can be edited in eclipse with all the realtime feedback and typechecking goodness of the IDE.

external sources not attached

If I have the following in my build.sbt file:

"net.liftweb" %% "lift-webkit" % liftVersion % "compile->default" withSources()

It'd be awesome if the >sbt eclipse command would attach the sources to the library jar.

Add managed source directories

renamed from "Scalaxb/generated sources?" by hseeberger

Hi,

I'm using sbteclipse on a project that uses the scalaxb plugin to turn XSD schema files into Scala source code. The resulting Eclipse project does not compile because the generated code ends up in src_generated/..., which is not exported as a source folder in the Eclipse project. Is there a recommended way to fix this? I assume I'd keep running the XSD -> .scala conversion from sbt manually, but the resulting source files would need to be included in the Eclipse build.

thanks,
Thomas

sbt 0.11.0 support

Alas, there's so much compatibility breakage in the Scala ecosystem. Thanks in advance for keeping this handy plugin up to date.

SBT sub project not recognized by Scala-IDE

Not sure if this is an issue with the plugin or with scala-ide, here goes :

I have an SBT build definition with multiple sub projects under a root project.

I create the eclipse project files with :

eclipse same-targets with-sources

I then import the project into eclipse with "import existing projects into workspace"

I notice that the eclipse project consists of a single project, if I go in project/properties/Java Build Path/
there are two things that seem wrong :

  • there are no source folders defined (in the Source tab)
  • the project tab is empty

Is this expected ?

I notice that there is a .project and a .classpath that gets created for each sub project, so
it seems that the plugin at least tries to create eclipse sub projects.

Thanks

Add skip-parents option

The new option should inhibit creation of project files in any parent folder, in order to enable convenient import-all in the case that parent projects do not contain any code (as is the case in Akka for example).

README instructions not working, can't find sbteclipse in repository

I'm interested in using sbteclipse to debug my Scala 2.9.0/sbt 0.10 project in Eclipse (3.7), but after adding the lines specified in the README to my build.sbt and running sbt update, I see the following.

> update
[info] Updating...
[warn]  module not found: com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1
[warn] ==== local: tried
[warn]   /home/yang/.ivy2/local/com.typesafe.sbteclipse/sbteclipse_2.9.0/1.1/ivys/ivy.xml
[warn]   -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]   /home/yang/.ivy2/local/com.typesafe.sbteclipse/sbteclipse_2.9.0/1.1/jars/sbteclipse_2.9.0.jar
[warn] ==== Sonatype OSS Snapshots: tried
[warn]   http://oss.sonatype.org/content/repositories/snapshots/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]   -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]   http://oss.sonatype.org/content/repositories/snapshots/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn] ==== Typesafe Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com.typesafe.sbteclipse/sbteclipse_2.9.0/0.10.0/1.1/ivys/sbteclipse_2.9.0-1.1.xml
[warn]   -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]   http://repo.typesafe.com/typesafe/releases/com.typesafe.sbteclipse/sbteclipse_2.9.0/0.10.0/1.1/jars/sbteclipse_2.9.0-1.1.jar
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]   -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]   http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn]   http://scala-tools.org/repo-releases/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]   -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]   http://scala-tools.org/repo-releases/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[info]
[warn] :: problems summary ::
[warn] :::: WARNINGS
[warn]          module not found: com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1
[warn]  ==== local: tried
[warn]    /home/yang/.ivy2/local/com.typesafe.sbteclipse/sbteclipse_2.9.0/1.1/ivys/ivy.xml
[warn]    -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]    /home/yang/.ivy2/local/com.typesafe.sbteclipse/sbteclipse_2.9.0/1.1/jars/sbteclipse_2.9.0.jar
[warn]  ==== Sonatype OSS Snapshots: tried
[warn]    http://oss.sonatype.org/content/repositories/snapshots/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]    -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]    http://oss.sonatype.org/content/repositories/snapshots/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn]  ==== Typesafe Repository: tried
[warn]    http://repo.typesafe.com/typesafe/releases/com.typesafe.sbteclipse/sbteclipse_2.9.0/0.10.0/1.1/ivys/sbteclipse_2.9.0-1.1.xml
[warn]    -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]    http://repo.typesafe.com/typesafe/releases/com.typesafe.sbteclipse/sbteclipse_2.9.0/0.10.0/1.1/jars/sbteclipse_2.9.0-1.1.jar
[warn]  ==== public: tried
[warn]    http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]    -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]    http://repo1.maven.org/maven2/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn]  ==== Scala-Tools Maven2 Repository: tried
[warn]    http://scala-tools.org/repo-releases/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.pom
[warn]    -- artifact com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1!sbteclipse_2.9.0.jar:
[warn]    http://scala-tools.org/repo-releases/com/typesafe/sbteclipse/sbteclipse_2.9.0/1.1/sbteclipse_2.9.0-1.1.jar
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          ::          UNRESOLVED DEPENDENCIES         ::
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[warn]          :: com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1: not found
[warn]          ::::::::::::::::::::::::::::::::::::::::::::::
[info]
[info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[error] Incomplete tasks (run 'last <task>' for the full log):
[error]   {file:/home/yang/pod/sales/web/}default/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.sbteclipse#sbteclipse_2.9.0;1.1: not found
[error] Total time: 20 s, completed Jul 12, 2011 11:33:12 PM

blog example doesn't work for me

I went through your blog post and got the following runtime exception:

[debug] Args = List(create-src, skip-root)
[debug] Trying to create an Eclipse project for you ...
java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:386)
at scala.collection.immutable.Nil$.head(List.scala:383)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2$$anonfun$apply$13.apply(SbtEclipsePlugin.scala:193)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2$$anonfun$apply$13.apply(SbtEclipsePlugin.scala:193)
at sbt.MultiLogger.log(MultiLogger.scala:28)
at sbt.Logger$class.info(Logger.scala:72)
at sbt.AbstractLogger.info(Logger.scala:8)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2.apply(SbtEclipsePlugin.scala:193)
at com.typesafe.sbteclipse.SbtEclipsePlugin$$anonfun$2.apply(SbtEclipsePlugin.scala:36)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$.process(Command.scala:91)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:72)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:72)
at sbt.State$$anon$1.process(State.scala:54)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:72)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:72)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:13)
at sbt.MainLoop$.next(Main.scala:72)
at sbt.MainLoop$.run(Main.scala:63)
at sbt.xMain.run(Main.scala:33)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:24)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.util.NoSuchElementException: head of empty list

Not a valid command: eclipse (similar: help, alias)

Following the instructions in https://github.com/typesafehub/sbteclipse#readme I get the following:

eclipse create-src skip-root
[error] Not a valid key: eclipse (similar: deliver, clean)
[error] eclipse create-src skip-root
[error] ^

eclipse
[error] Not a valid command: eclipse (similar: help, alias)
[error] Not a valid project ID: eclipse
[error] Not a valid configuration: eclipse
[error] Not a valid key: eclipse (similar: deliver, clean)
[error] eclipse
[error] ^

Happens on Windows 7 (64bit) with Java 1.6.0_26 (64bit)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.