|
IntegrationSupport
sbt has movedsbt has now completely moved to GitHub. See https://github.com/harrah/xsbt/wiki/sbt-0.10-plugins-list. IntroductionThis page describes approaches to using sbt with third-party tools. It is a work in progress. EmacsThere is a script to run sbt as an inferior-mode process from within emacs. It uses compile.el, allowing one to migrate through the compiler errors. On Windows, disable the native JLine interface using by adding the system property -Djline.WindowsTerminal.directConsole=false to your sbt startup script or disable JLine support completely with the system property: -Djline.terminal=jline.UnsupportedTerminal You may want to make your sbt startup script look something like the following: if "%TERM%"=="emacs" set jlineopt=-Djline.WindowsTerminal.directConsole=false java -Xmx512M %jlineopt% -jar ... (From the comments in #63) VimSee http://github.com/MarcWeber/vim-addon-sbt Alternatively: In Vim, you can add the following to your .vimrc file to support building via :make and navigating to errors and warnings: set makeprg=sbt\ compile
set efm=%E\ %#[error]\ %f:%l:\ %m,%C\ %#[error]\ %p^,%-C%.%#,%Z,
\%W\ %#[warn]\ %f:%l:\ %m,%C\ %#[warn]\ %p^,%-C%.%#,%Z,
\%-G%.%#You'll need to cd into your project root to issue the :make command. TextMateSee http://www.sidewayscoding.com/2010/08/using-textmate-for-scala-development.html. IDEAsbt plugin/processor: https://github.com/mpeltonen/sbt-idea IDEA plugin: http://plugins.intellij.net/plugin/?idea&id=5007 Netbeanshttps://github.com/remeniuk/sbt-netbeans-plugin EclipseThere are currently three options for Eclipse integration.
IvyDE approachInitial Setup
Updating
JenkinsJenkins plugin: http://wiki.jenkins-ci.org/display/JENKINS/sbt+plugin. JEditJEdit plugin: https://github.com/StefanE/SBT4jEdit ScalaEditA text editor for Scala programmers with support for sbt: http://code.google.com/p/scala-edit/ | |
If you are an emacs use, well of course you are, here is a small script to run sbt as an inferior-mode process from within emacs. It uses compile.el as well allowing one to migrate through the compiler errors.
http://github.com/RayRacine/scallap/tree/master/tools/emacs
Added, thanks!
-Mark
A quick note for those trying to use Emacs + SBT + sbt.el on Windows. Be sure to disable JLine support by adding the system property -Djline.terminal=jline.UnsupportedTerminal? to your SBT invocation.
For whatever reason, Emacs can't handle subprocess I/O that goes through the Windows CON: device, which is what JLine seems to do.
Thanks for that tip. I've updated the page.
-Mark
Any luck for Aquamacs Emacs users on OS X? The only good results I've had are to disable formatting with the property -Dsbt.log.noformat=true in my sbt script.
I tried: (ansi-color-for-comint-mode-on)
in my .emacs -- no joy.
The stuff on integration via IvyDE works, but doesn't include test dependencies. Based on this list posting:
http://groups.google.com/group/simple-build-tool/msg/0cf2afcea582a8d2
...I've added this to my project file:
def ivyPublishConfiguration = new DefaultPublishConfiguration("local", "release") { override protected def deliveredPathPattern = outputPath / "[artifact].[ext]" override def configurations = Some(List(Configurations.Compile, Configurations.Test)) } lazy val deliverIvy = deliverTask(deliverIvyModule, ivyPublishConfiguration, false)deliver-ivy creates a scala-version-specific ivy.xml in target/SCALA-VER
There is another way to run sbt wihtin Vim now: http://github.com/MarcWeber/vim-addon-sbt
On scala I got the tip that there is a plugin for IDEA as well: http://github.com/mpeltonen/sbt-idea-plugin
Vim users don't miss this: http://github.com/romanroe/codefellow
There is a sbt plugin for sbt that works along with the Scala bundle at: http://www.sidewayscoding.com/2010/08/using-textmate-for-scala-development.html
It basically is a shell window next to your editing window, which works pretty well.
Thanks, updated.
Is there bash-completion support for sbt?
The sbt plugin for hudson should be probably be mentioned on this page as well. Here is the link. http://wiki.hudson-ci.org/display/HUDSON/sbt+plugin
Done, thanks.
Just for notes, I have recently started developing a plugin for jEdit. It is quickly improving, and is available at https://github.com/StefanE/SBT4jEdit
added, thanks.
To get the errorformat (efm) for vim to work correctly, I had to tell sbt not to output any color by changing the makeprg to include the -Dsbt.log.noformat=true switch, like
I have created a text editor with sbt integration. It is useful if you want to set up a lightweight programming environment for Scala quickly. http://scala-edit.googlecode.com
Interesting thanks!
New SBT Eclipse plugin for SBT 0.10.x: https://github.com/typesafehub/sbteclipse