Setup: IntelliJ + Sbt + liftweb (Spanish)

65 views
Skip to first unread message

Juan Jose Olivera

unread,
Dec 14, 2011, 5:46:09 PM12/14/11
to lif...@googlegroups.com
I dont know if this is the right place to put this, if no sorry :(, I have write a small "how to" setup a Lift project usign IntelliJ Idea Community Edition and Sbt but it is in Spanish

A los listeros de habla castellana de la lista he escrito un pequeño manualcito(que quizas pueda ser util a alguien más) de que pasos hay que seguir para crear un proyecto Lift si se quiere usar Sbt e IntelliJ Community Edition(Ademas de las depencias para postgres y squeryl y el archivo .hgignore para mercurial), la versión de IntelliJ con la que he probado es la 10.5.2, en si es el manualcito es una mezcla de cosas que hay en el wiki de liftweb.net y en otros lados más voy a ver de poner las referencias en un cacho más.

http://jotajota.posterous.com/creacion-de-un-proyecto-lift-con-sbt-e-intell

saludos

--
Juan Jose Olivera Rodriguez
Director General
Genso Iniciativas Web
+591.44505438

David Pollak

unread,
Dec 15, 2011, 2:37:21 PM12/15/11
to lif...@googlegroups.com
Yay Spanish speakers (and Portugese and Japanese and German and ...)  If the community of any language gets too big, I'll vote for splitting it off to a separate group, but in general, seeing lots of languages on this list.

2011/12/14 Juan Jose Olivera <ju...@genso.com.bo>
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro
Lift, the simply functional web framework http://liftweb.net


Diego Medina

unread,
Dec 15, 2011, 3:25:05 PM12/15/11
to lif...@googlegroups.com
Gracias Jose por el articulo detallado.

(Now in English as it may be interesting for others): You set
override def scanDirectories = Nil
I usually see that when people use jRebel, but as you are using the
sbt idea plugin, (to run sbt from inside idea), does intelliJ restart
jetty for you, or do you restart jetty manually after a scala code
change?

My work flow is a bit different than yours, I use the idea plugin for
sbt to generate the intellij project, but then I run a new terminal
and there I do


sbt> ~jetty-run

so after a scala code change, sbt reloads the project into jetty.

Thanks

Diego

2011/12/14 Juan Jose Olivera <ju...@genso.com.bo>:

> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code

--
Diego Medina
Web Developer
di...@fmpwizard.com
http://www.fmpwizard.com

Juan Jose Olivera

unread,
Dec 15, 2011, 3:47:13 PM12/15/11
to lif...@googlegroups.com
Hi Diego

2011/12/15 Diego Medina <di...@fmpwizard.com>

Gracias Jose por el articulo detallado.

(Now in English as it may be interesting for others): You set
override def scanDirectories = Nil
I usually see that when people use jRebel, but as you are using the
sbt idea plugin, (to run sbt from inside idea), does intelliJ restart
jetty for you, or do you restart jetty manually after a scala code
change?


To be honest, my workflow until yesterday was the one that you are using, so I will test the new way today and tomorrow and see how it works(Because yesterday and today the designer is working on html+css).

Juan Jose Olivera

unread,
Dec 15, 2011, 4:41:27 PM12/15/11
to lif...@googlegroups.com
Hi again Diego, I have tested and it recompiles, but it fails with the following message:

 Error running jetty-run: This instance of Jetty is already running

2011/12/15 Juan Jose Olivera <ju...@genso.com.bo>

Diego Medina

unread,
Dec 15, 2011, 10:55:56 PM12/15/11
to lif...@googlegroups.com
On Thu, Dec 15, 2011 at 4:41 PM, Juan Jose Olivera <ju...@genso.com.bo> wrote:
> Hi again Diego, I have tested and it recompiles, but it fails with the
> following message:
>
>  Error running jetty-run: This instance of Jetty is already running
>

I get that too when I run the terminal, but the changes are reloaded
on the jetty that is running, can you see if the same applies to your
new setup? Also, it may be worth noting on your blog post that you are
using sbt version 0.7.7. Because there are people who are new to the
scala ecosystem and may start with sbt 0.12 or some other version and
may not know why your example is not working for them (even though you
say to use ./sbt which calls the 0.7.7, they may just use sbt and use
the one installed on their classpath.
But great post and I'll be giving the idea-sbt a try (I already use
the sbt-idea and it is great.

Diego

j...@webmaster.ms

unread,
Dec 24, 2011, 2:50:21 PM12/24/11
to lif...@googlegroups.com


пятница, 16 декабря 2011 г. 7:55:56 UTC+4 пользователь fmpwizard написал:
On Thu, Dec 15, 2011 at 4:41 PM, Juan Jose Olivera <ju...@genso.com.bo> wrote:
> Hi again Diego, I have tested and it recompiles, but it fails with the
> following message:
>
>  Error running jetty-run: This instance of Jetty is already running
>

I get that too when I run the terminal, but the changes are reloaded
on the jetty that is running, can you see if the same applies to your
new setup? Also, it may be worth noting on your blog post that you are
using sbt version 0.7.7. 


No. I see the changes are not reloaded in this case :( 

Diego Medina

unread,
Dec 25, 2011, 3:49:28 PM12/25/11
to lif...@googlegroups.com

Diego
Sent from my android cell

Oh, in that case starting jetty from sbt seems better.
Thanks for checking


Reply all
Reply to author
Forward
0 new messages