First of all, I'm using the latest versions of everything:
IDEA 10.5.1
sbt 0.10.1
scala 2.9.0-1
Lift 2.4M-3
Jrebel 4.0.2
I assume you already have the scala, SBT, and Jrebel plugins installed
in IDEA. In IDEA, open the settings window and select the 'SBT'
settings. Set VM parameters to (in place of $HOME I have the full
path, don't know that $HOME will work):
-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M
-noverify -javaagent:$HOME/jrebel/jrebel.jar -jar
$HOME/bin/sbt-launcher.jar
Next you'll need to set up the sbt plugin that generates Idea configs.
Start by creating $HOME/.sbt/plugins/project/Build.scala
$cat ~/.sbt/plugins/project/Build.scala
import sbt._
object MyPlugins extends Build {
lazy val root = Project("root", file(".")) dependsOn
(uri("git://github.com/ijuma/sbt-idea.git#sbt-0.10"))
}
according to https://github.com/ijuma/sbt-idea/tree/sbt-0.10
Then change to your project directory and start sbt from the command
line. It will churn for a while and build the plugin you just
specified.
Once it's done, type
update
gen-idea
It should generate the Idea config files so Idea will recognize your
project. Open it with Idea.
You should be able to start up the sbt console from Idea and run you
app from there.
One note, I am having some trouble getting it working on Windows, but
it does work on unix-y systems.
Hopefully this is at least semi-coherent and helpful.
Thanks,
Eric
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/SEuomyJ6Jb8J.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
-XX:+CMSClassUnloadingEnabled -Xss2M -Xmx512M -XX:MaxPermSize=256M
-noverify -javaagent:/Applications/bin/JRebel/jrebel.jar
the -jar gets added by the plugin and /Applications/bin/sbt-launch.jar
is from the 'SBT launcher JAR file' setting.
Hope that helps,
Eric
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/liftweb/-/9wWK7hfwSysJ.
to give me an OSS license
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/Zou82fHC0HYJ.