sbt eclipse with-source=true

343 views
Skip to first unread message

Oliver Ruebenacker

unread,
Aug 1, 2014, 6:11:14 PM8/1/14
to scala-user

     Hello,

  I used to be able to do

  sbt eclipse with-source=true

  to pull in source codes, but now SBT complains:

[oruebenacker@localhost triplefu]$ sbt eclipse with-source=true
[info] Loading project definition from /home/oruebenacker/git/triplefu/project
[info] Set current project to TripleFu (in build file:/home/oruebenacker/git/triplefu/)
[info] About to create Eclipse project files for your project(s).
[info] Successfully created Eclipse project files for project(s):
[info] TripleFu
[error] Expected ID character
[error] Not a valid command: with-source
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: with-source (similar: watch-sources, watchSources, sources)
[error] with-source=true
[error]            ^

  What am I missing? Thanks!

     Best,
     Oliver

--
Oliver Ruebenacker
Be always grateful, but never satisfied.

Antoine Gourlay

unread,
Aug 1, 2014, 6:31:38 PM8/1/14
to Oliver Ruebenacker, scala-user

You are missing quotes somewhere. If this used to work, I am guessing you changed shell recently? ;)

$ sbt "eclipse with-plugin=true"

(every argument to sbt is considered a full command, with parameters and all)



--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oliver Ruebenacker

unread,
Aug 1, 2014, 7:18:44 PM8/1/14
to Antoine Gourlay, scala-user

     Hello,

  Oh, I just realized what I did in the past was actually this: first type "sbt" to enter the SBT shell, and then type the rest. And that still works.

  Thanks for the "shell" hint. :)

     Best,
     Oliver

Reply all
Reply to author
Forward
0 new messages