[Lift] Thoughts/questions regarding getting started with Lift, Intellij, sbt, and Maven

160 views
Skip to first unread message

Alex Averbuch

unread,
Oct 2, 2010, 9:51:12 AM10/2/10
to lif...@googlegroups.com
Hey,
I'm quite new to Scala and Maven, and even more so to Lift and sbt. 

As I'm using Intellij IDEA I followed this link http://www.assembla.com/wiki/show/liftweb/Using_IntelliJ_IDEA_to_develop_Lift_applications to start a new, blank Lift project. The archetype I used was:

mvn archetype:generate \
 -DarchetypeGroupId=net.liftweb \
 -DarchetypeArtifactId=lift-archetype-basic_2.8.0 \
 -DarchetypeVersion=2.1 \
 -DarchetypeRepository=http://scala-tools.org/repo-snapshots \
 -DremoteRepositories=http://scala-tools.org/repo-snapshots \
 -DgroupId=com.alex \
 -DartifactId=helloLif

I then followed the Getting Started guide at http://liftweb.net/getting_started to get the basic Chat application running.

Below are the problems I encountered:
  1. In the index.html I get "Namespace lift is not bound" & "Namespace chat is not bound" where ever a binding (e.g. <chat:input/>) appears. Any idea why this happens? Is it a clue that something bigger is going wrong, or just Intellij getting confused? For the record, the application still runs despite these error messages.
  2. Is sbt necessary when working with Lift? If not, what do I gain over just using Maven? Maybe this is a dumb question. I'm not a Maven pro and completely new to sbt... maybe they solve different problems and I just don't realize it.
  3. I think the example given at http://liftweb.net/getting_started should be modified to mention that the following imports are required: "import net.liftweb.util.TimeSpan" to allow use of TimeSpan(500), "import net.liftweb.util.TimeSpan" to allow use of Helpers.nextFuncName
  4. The last step of the example at http://liftweb.net/getting_started (even after fixed with the imports above) gives me the following error:
    1. error: type mismatch; found   : Chat.this.TheStrBindParam required: scala.xml.MetaData case e: Elem => e % ("id" -> id)
    2. This occurs at the private def addId(in: NodeSeq, id: String): NodeSeq function
Any help/comments greatly appreciated.

Cheers,
Alex

Alex Averbuch

unread,
Oct 2, 2010, 9:55:22 AM10/2/10
to lif...@googlegroups.com
Small fix to point 3:

I think the example given at http://liftweb.net/getting_started should be modified to mention that the following imports are required: "import net.liftweb.util.TimeSpan" to allow use of TimeSpan(500), "import net.liftweb.util.Helpers" to allow use of Helpers.nextFuncName

TylerWeir

unread,
Oct 2, 2010, 11:18:20 AM10/2/10
to Lift
I'm confused, did you create an app using maven and then follow the
chat app tutorial?
The chat app tutorial asks you to get the SBT example app.
Would you follow the chat app tutorial without using Maven?

If the issues still exist, we'll fix them. It appears the imports
need to be added.

As for Maven vs. SBT, it comes down to taste. If you prefer to write
all of your project config using scala, use SBT. If you love XML
choose mvn.
We all lean towards SBT as it's much more scala friendly and seems to
not suffer from "dependency hell" that is associated with mvn.
I would get SBT a shot, it's a real pleasure to use.

For point one, which file is claiming an unbound namespace? Can you
show us the full code? Toss it up on github.



On Oct 2, 9:55 am, Alex Averbuch <alex.averb...@gmail.com> wrote:
> Small fix to point 3:
>
> I think the example given athttp://liftweb.net/getting_startedshould be
> modified to mention that the following imports are required: "import
> net.liftweb.util.TimeSpan" to allow use of TimeSpan(500), "*import
> net.liftweb.util.Helpers*" to allow use of Helpers.nextFuncName
>
> On Sat, Oct 2, 2010 at 3:51 PM, Alex Averbuch <alex.averb...@gmail.com>wrote:
>
> > Hey,
> > I'm quite new to Scala and Maven, and even more so to Lift and sbt.
>
> > As I'm using Intellij IDEA I followed this link
> >http://www.assembla.com/wiki/show/liftweb/Using_IntelliJ_IDEA_to_deve...to
> > start a new, blank Lift project. The archetype I used was:
>
> > mvn archetype:generate \
> >  -DarchetypeGroupId=net.liftweb \
> >  -DarchetypeArtifactId=lift-archetype-basic_2.8.0 \
> >  -DarchetypeVersion=2.1 \
> >  -DarchetypeRepository=http://scala-tools.org/repo-snapshots\
> >  -DremoteRepositories=http://scala-tools.org/repo-snapshots\
> >  -DgroupId=com.alex \
> >  -DartifactId=helloLif
>
> > I then followed the Getting Started guide at
> >http://liftweb.net/getting_startedto get the basic Chat application
> > running.
>
> > Below are the problems I encountered:
>
> >    1. In the index.html I get "Namespace lift is not bound" & "Namespace
> >    chat is not bound" where ever a binding (e.g. <chat:input/>) appears. Any
> >    idea why this happens? Is it a clue that something bigger is going wrong, or
> >    just Intellij getting confused? For the record, the application still runs
> >    despite these error messages.
> >    2. Is sbt necessary when working with Lift? If not, what do I gain over
> >    just using Maven? Maybe this is a dumb question. I'm not a Maven pro and
> >    completely new to sbt... maybe they solve different problems and I just
> >    don't realize it.
> >    3. I think the example given athttp://liftweb.net/getting_startedshould
> >    be modified to mention that the following imports are required: "import
> >    net.liftweb.util.TimeSpan" to allow use of TimeSpan(500), "import
> >    net.liftweb.util.TimeSpan" to allow use of Helpers.nextFuncName
> >    4. The last step of the example athttp://liftweb.net/getting_started(even
> >    after fixed with the imports above) gives me the following error:
> >       1. error: type mismatch; found   :
> >       Chat.this.TheStrBindParam required: scala.xml.MetaData case e: Elem => e %
> >       ("id" -> id)
> >       2. This occurs at the private def addId(in: NodeSeq, id: String):

Jimmy

unread,
Oct 2, 2010, 1:34:40 PM10/2/10
to Lift

> As for Maven vs. SBT, it comes down to taste.  

With a Maven generated project I can import them it into IDE's such as
Eclipse, is this possible with SBT?

TylerWeir

unread,
Oct 2, 2010, 1:36:22 PM10/2/10
to Lift
You'll have to check, there are some plugins for IDEs.

Alex Averbuch

unread,
Oct 2, 2010, 1:46:32 PM10/2/10
to lif...@googlegroups.com
Sorry, I didn't explain it clearly. I was able to get the example running by following the instructions exactly. 
But... then I wanted to see if I could make the same application without downloading any code.

Here's what I did:

--1--
mvn archetype:generate \
 -DarchetypeGroupId=net.liftweb \
 -DarchetypeArtifactId=lift-archetype-basic_2.8.0 \
 -DarchetypeVersion=2.1 \
 -DarchetypeRepository=http://scala-tools.org/repo-snapshots \
 -DremoteRepositories=http://scala-tools.org/repo-snapshots \
 -DgroupId=com.alex \
 -DartifactId=helloLift

--2--
sbt

--3--
Added class Chat.scala to the comet directory, along with code from 
http://liftweb.net/getting_started

--4--
Modified index.html as instructed in http://liftweb.net/getting_started


Regarding the unbound variables, everywhere in index.html where "lift:" or "chat:" appeared is where the error was reported.
<lift:surround with="default" at="content">
    <lift:comet type="Chat">
        <ul id="ul_dude">
            <chat:line>
                <li>
                    <chat:msg/>
                    <chat:btn/>
                </li>
            </chat:line>
        </ul>
        <lift:form>
            <chat:input/>
            <input type="submit" value="chat"/>
        </lift:form>
    </lift:comet>
</lift:surround>

I've put the code (and every single file, in case it's useful) on github temporarily, but will pull it down as soon as I can.

Thanks for your help,
Alex

--
You received this message because you are subscribed to the Google Groups "Lift" group.
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.


TylerWeir

unread,
Oct 2, 2010, 8:11:53 PM10/2/10
to Lift
Alex,

I have not looked through the repo you put up yet, but coincidentally,
dpp just tweeted about a new chat example, located here:
http://tunaforcats.com/chat_done.tgz

Unpack that, then run "sbt" and wait for the console. Run "update" to
grab what it needs (this can take a bit of time) then run "jetty-run"

That should give you a working example to start playing with.



On Oct 2, 1:46 pm, Alex Averbuch <alex.averb...@gmail.com> wrote:
> Sorry, I didn't explain it clearly. I was able to get the example running by
> following the instructions exactly.
> But... then I wanted to see if I could make the same application without
> downloading any code.
>
> Here's what I did:
>
> --1--
>
> mvn archetype:generate \
>
>  -DarchetypeGroupId=net.liftweb \
>
>  -DarchetypeArtifactId=lift-archetype-basic_2.8.0 \
>
>  -DarchetypeVersion=2.1 \
>
>  -DarchetypeRepository=http://scala-tools.org/repo-snapshots\
>
>  -DremoteRepositories=http://scala-tools.org/repo-snapshots\
>
>  -DgroupId=com.alex \
>
>  -DartifactId=helloLift
>
> --2--
>
> sbt
>
> --3--
>
> Added class Chat.scala to the comet directory, along with code fromhttp://liftweb.net/getting_started
>
> --4--
>
> Modified index.html as instructed inhttp://liftweb.net/getting_started
>
> Regarding the unbound variables, everywhere in index.html where "lift:" or
> "chat:" appeared is where the error was reported.
>
> <lift:surround with="default" at="content">
>     <lift:comet type="Chat">
>         <ul id="ul_dude">
>             <chat:line>
>                 <li>
>                     <chat:msg/>
>                     <chat:btn/>
>                 </li>
>             </chat:line>
>         </ul>
>         <lift:form>
>             <chat:input/>
>             <input type="submit" value="chat"/>
>         </lift:form>
>     </lift:comet>
> </lift:surround>
>
> I've put the code (and every single file, in case it's useful) on github
> temporarily, but will pull it down as soon as I can.http://github.com/alexaverbuch/HelloLift
>
> Thanks for your help,
> Alex
>
> > > > start a new, blank Lift project. The archetype I used was:
>
> > > > mvn archetype:generate \
> > > >  -DarchetypeGroupId=net.liftweb \
> > > >  -DarchetypeArtifactId=lift-archetype-basic_2.8.0 \
> > > >  -DarchetypeVersion=2.1 \
> > > >  -DarchetypeRepository=http://scala-tools.org/repo-snapshots\
> > > >  -DremoteRepositories=http://scala-tools.org/repo-snapshots\
> > > >  -DgroupId=com.alex \
> > > >  -DartifactId=helloLif
>
> > > > I then followed the Getting Started guide at
> > > >http://liftweb.net/getting_startedtoget the basic Chat application
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .

Alex Averbuch

unread,
Oct 3, 2010, 6:19:26 AM10/3/10
to lif...@googlegroups.com
Hi Tyler,
Thanks but what I'm trying to do is create a project from scratch, that does the same as the Chat application.

By downloading them I can get this example running, and I can get the previous one running too.
But there are a few problems with this:

  1. Intellij can't find the Scala (I don't want to use the local scala version), Lift, etc libraries and I don't know how to remedy this using sbt. Usually I would get them all using Maven, which worked alright in my example on github until the final stage of the tutorial (as mentioned previously). I tried adding this line, "org.scala-lang" % "scala-compiler" % scalaVersion % "compile->default", to LiftProject.scala but Scala still wasn't found.
  2. It doesn't teach me how to set up a Lift project from scratch (after reading your last email, I would like to create a project entirely without Maven or Ivy, only using sbt).

Hope that gives you a better idea of the problems I'm having.

Thanks in advance!

To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.

Timothy Perrett

unread,
Oct 3, 2010, 7:10:22 AM10/3/10
to lif...@googlegroups.com
lol, im not sure anyone loves xml; but rather, I still use maven on projects that require a complex set of post-build operations like bundling and so-forth. SBT just yet doesn't have all the plugins that maven has, so its a case of understanding what your needs are.

Cheers, Tim

Timothy Perrett

unread,
Oct 3, 2010, 7:11:01 AM10/3/10
to lif...@googlegroups.com
Yes, here:

http://github.com/frank06/sbt-eclipse-plugin

Cheers, Tim

Alex Averbuch

unread,
Oct 3, 2010, 8:05:31 AM10/3/10
to lif...@googlegroups.com
One more point...

This may be an Intellij IDEA problem. As I've said, the IDE just doesn't see any of the downloaded JARs for some reason.

When I go into "File->Project Structure->Libraries" I see them all, but in the code editor I get a million compile errors because none of the libraries are being used.

Does anyone use Intellij + Lift + sbt?
If so, a tip on how to get this running would be great.

Once I get it all sorted I'll be happy to write a short blog post to help others who have had similar problems.

Thanks,
Alex

TylerWeir

unread,
Oct 3, 2010, 9:32:29 AM10/3/10
to Lift
I don't use IntelliJ, I use Emacs and Ensime.
So I can't help with that setup.

As far as starting a lift app from scratch, I'm not sure why you'd
want to do that, but clone the git repo here:
http://github.com/lift/lift_21_sbt
Then inspect the directory structure and sbt config and you should be
able to do it.

But the point of setting up a skeleton starting point is so you don't
waste time creating directories and writing the same config over and
over.




On Oct 3, 8:05 am, Alex Averbuch <alex.averb...@gmail.com> wrote:
> One more point...
>
> This may be an Intellij IDEA problem. As I've said, the IDE just doesn't see
> any of the downloaded JARs for some reason.
>
> When I go into "File->Project Structure->Libraries" I see them all, but in
> the code editor I get a million compile errors because none of the libraries
> are being used.
>
> Does anyone use Intellij + Lift + sbt?
> If so, a tip on how to get this running would be great.
>
> Once I get it all sorted I'll be happy to write a short blog post to help
> others who have had similar problems.
>
> Thanks,
> Alex
>
> On Sun, Oct 3, 2010 at 1:11 PM, Timothy Perrett <timo...@getintheloop.eu>wrote:
>
> > Yes, here:
>
> >http://github.com/frank06/sbt-eclipse-plugin
>
> > Cheers, Tim
>
> > On 2 Oct 2010, at 18:34, Jimmy wrote:
>
> > >> As for Maven vs. SBT, it comes down to taste.
>
> > > With a Maven generated project I can import them it into IDE's such as
> > > Eclipse, is this possible with SBT?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > > To post to this group, send email to lif...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/liftweb?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lif...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .

Jimmy

unread,
Oct 3, 2010, 12:16:47 PM10/3/10
to Lift
Cool, will give it a try.
Thanks,
Jimmy

Alex Averbuch

unread,
Oct 3, 2010, 12:58:06 PM10/3/10
to lif...@googlegroups.com
Hey,
So thanks for all the help.
In the end, I haven't been able to get sbt working well with Intellij so I've switched to using purely Maven (no sbt).

And then added the code from the Getting Started http://liftweb.net/getting_started

I'd like to eventually move away from Maven and use only sbt, but maybe that will have to wait until someone is able to help me get Intellij & sbt playing nice.

For the record, I've only started using Intellij recently, and I only did so because I really disliked the Eclipse Scala plugin.
It sounds as though Emacs + Ensime is the best Scala dev setup right now, but I'm one of those people that haven't seen the light in Emacs (yet?).

Thanks anyway, seems to be working as advertised now.
Alex

TylerWeir

unread,
Oct 3, 2010, 1:51:16 PM10/3/10
to Lift
I've been a Vim user for 12 years, and the quality of Ensime made me
switch to Emacs. It's very, very good.

If you try it and need help, let me know, either here or tyler DOT
weir AT gmail.


On Oct 3, 12:58 pm, Alex Averbuch <alex.averb...@gmail.com> wrote:
> Hey,
> So thanks for all the help.
> In the end, I haven't been able to get sbt working well with Intellij so
> I've switched to using purely Maven (no sbt).
>
> I did that usinghttp://www.assembla.com/wiki/show/liftweb/Using_Maven
> <http://www.assembla.com/wiki/show/liftweb/Using_Maven>And then added the
> code from the Getting Startedhttp://liftweb.net/getting_started
>
> <http://liftweb.net/getting_started>I'd like to eventually move away from
> Maven and use only sbt, but maybe that will have to wait until someone is
> able to help me get Intellij & sbt playing nice.
>
> For the record, I've only started using Intellij recently, and I only did so
> because I really disliked the Eclipse Scala plugin.
> It sounds as though Emacs + Ensime is the best Scala dev setup right now,
> but I'm one of those people that haven't seen the light in Emacs (yet?).
>
> Thanks anyway, seems to be working as advertised now.
> Alex
>
> On Sun, Oct 3, 2010 at 6:16 PM, Jimmy <jimmy.co...@gmail.com> wrote:
> > Cool, will give it a try.
> > Thanks,
> > Jimmy
>
> > On Oct 3, 12:11 pm, Timothy Perrett <timo...@getintheloop.eu> wrote:
> > > Yes, here:
>
> > >http://github.com/frank06/sbt-eclipse-plugin
>
> > > Cheers, Tim
>
> > > On 2 Oct 2010, at 18:34, Jimmy wrote:
>
> > > >> As for Maven vs. SBT, it comes down to taste.
>
> > > > With a Maven generated project I can import them it into IDE's such as
> > > > Eclipse, is this possible with SBT?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "Lift" group.
> > > > To post to this group, send email to lif...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/liftweb?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to lif...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .

Jon-Anders Teigen

unread,
Oct 3, 2010, 4:10:11 PM10/3/10
to lif...@googlegroups.com
Hi Alex.

IntelliJ and Sbt works great together with the sbt-idea-plugin
Just follow the instructions at http://github.com/mpeltonen/sbt-idea-plugin and you should be up and running in no time.

If you are creating a Lift project from scratch I can really recommend Lifty http://github.com/Lifty/Lifty
The complete steps to create and set up a lift project in IntelliJ would then be (assuming sbt-idea-plugin installed as processor  "idea", and lifty installed as "lifty")

$ sbt
> lifty create project
> update
> idea

open the generated idea project files and enjoy

(btw, don't put explicit dependencies on scala in your sbt config. Sbt treats scala as a special dependency and keeps it in project/boot instead of lib_managed)

/ Jon-Anders

Alex Averbuch

unread,
Oct 3, 2010, 4:32:23 PM10/3/10
to lif...@googlegroups.com
Hi Tyler,
Thanks.
If I'm going to stick with Scala I'll need a good dev environment sooner or later, so I'll give Emacs a chance.

I just made my first attempt but had a few problems. Here's what I did...

Installed: 
  • Emacs 23.1.1 
  • scala-mode (from 2.8.0.final distribution) 
  • yasnippet 0.6.1c 
  • ensime_2.8.0-0.3.0 (I know latest is ensime_2.8.1.RC2-0.3.4, but I use 2.8.0.final & not sure about compatibility)
Downloaded: 

-------------------------
-- ATTEMPT 1 ---
-------------------------
M-x ensime-config-gen
Find project root: ~/path-to-chat/chat/
Your project seems to be of type 'sbt', continue with this assumption? yes
What is your project's name? chat
Where did you unpack the ENSIME distribution? <-- WHY DOES IT ASK ME THIS? ~/path-to-chat/chat/
What is the name of your project's main package? e.g. com.project: code (CAN I SAY ANYTHING, OR MUST IT MATCH PROJECT STRUCTURE?)
Your project config has been written to /home/alex/path-to-chat/chat//.ensime

M-x ensime
ENSIME project file: ~/path-to-chat/chat/.ensime
Searching for program: no such file or directory, bin/server.sh

-------------------------
-- ATTEMPT 2 ---
-------------------------
M-x ensime-config-gen
Find project root: ~/path-to-chat/chat/
Your project seems to be of type 'sbt', continue with this assumption? yes
What is your project's name? chat
Where did you unpack the ENSIME distribution? <-- ~/bin/ensime_2.8.0-0.3.0/
What is the name of your project's main package? e.g. com.project: code
Your project config has been written to /home/alex/path-to-chat/chat//.ensime

M-x ensime
ENSIME project file: ~/path-to-chat/chat/.ensime
Polling, Connecting, Connected.
Initializing Analyzer. Please wait... <-- NEVER PROGRESSES FROM THIS POINT


Any idea about what could be going wrong?
I've attached my .emacs file. Not sure if it will work with the mailing list, but I've BCC'd you so you'll be able to check it out.

Thanks again,
Alex
.emacs

TylerWeir

unread,
Oct 3, 2010, 4:36:31 PM10/3/10
to Lift
Check out the ".ensime" file for your project, which is here: *~/path-
to-chat/chat/.ensime*

Mine looks like this:

(:server-root "~/code/ensime" :project-package "ca.tylerweir" :use-sbt
t :formatting-prefs (:alignParameters t :indentSpaces 2))

What does yours looks like? And does is make sense?

Also, depending on how pimp your computer is, the analyzer can churn
for a bit.


On Oct 3, 4:32 pm, Alex Averbuch <alex.averb...@gmail.com> wrote:
> Hi Tyler,
> Thanks.
> If I'm going to stick with Scala I'll need a good dev environment sooner or
> later, so I'll give Emacs a chance.
>
> I just made my first attempt but had a few problems. Here's what I did...
>
> Installed:
>
>    - Emacs 23.1.1
>    - scala-mode (from 2.8.0.final distribution)
>    - yasnippet 0.6.1c
>    - ensime_2.8.0-0.3.0 (I know latest is ensime_2.8.1.RC2-0.3.4, but I use
>    2.8.0.final & not sure about compatibility)
>
> Downloaded:
>
>    - Chat example that you linked to above (
>    http://tunaforcats.com/chat_done.tgz)
>
> *-------------------------*
> *-- ATTEMPT 1 ---*
> *-------------------------*
> *M-x ensime-config-gen*
> Find project root: *~/path-to-chat/chat/*
> Your project seems to be of type 'sbt', continue with this assumption? *yes*
> What is your project's name? *chat*
> Where did you unpack the ENSIME distribution? <-- *WHY DOES IT ASK ME THIS?
> **~/path-to-chat/chat/*
> What is the name of your project's main package? e.g. com.project: *code *(*CAN
> I SAY ANYTHING, OR MUST IT MATCH PROJECT STRUCTURE?)*
> Your project config has been written to
> /home/alex/path-to-chat/chat//.ensime
>
> *M-x ensime*
> ENSIME project file: *~/path-to-chat/chat/.ensime*
> Searching for program: no such file or directory, bin/server.sh
> *
> *
> *-------------------------*
> *-- ATTEMPT 2 ---*
> *-------------------------*
> *M-x ensime-config-gen*
> Find project root: *~/path-to-chat/chat/*
> Your project seems to be of type 'sbt', continue with this assumption? *yes*
> What is your project's name? *chat*
> Where did you unpack the ENSIME distribution? <--* **~/bin/**
> ensime_2.8.0-0.3.0/*
> What is the name of your project's main package? e.g. com.project: *code*
> Your project config has been written to
> /home/alex/path-to-chat/chat//.ensime
>
> *M-x ensime*
> ENSIME project file: *~/path-to-chat/chat/.ensime*
> Polling, Connecting, Connected.
> Initializing Analyzer. Please wait... *<-- NEVER PROGRESSES FROM THIS POINT*
> *
> *
>
> Any idea about what could be going wrong?
> I've attached my .emacs file. Not sure if it will work with the mailing
> list, but I've BCC'd you so you'll be able to check it out.
>
> Thanks again,
> Alex
>
>  .emacs
> 1KViewDownload

Alex Averbuch

unread,
Oct 3, 2010, 4:42:23 PM10/3/10
to lif...@googlegroups.com
Hey, .ensime looks like this:

(:project-name "chat"
:server-root "/home/alex/bin/ensime_2.8.0-0.3.0/"
:project-package "code"
:use-sbt t)

Really not sure about the "making sense" part, but everything is as I would expect (for what that's worth).

My laptop rates quite low on the pimp scale, but this Initializing Analyzer business has been going for over 15 minutes now... so either Ensime is slower than Ecplise, or there's something else going wrong here (besides the low pimp factor)

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.

Alex Averbuch

unread,
Oct 3, 2010, 4:44:11 PM10/3/10
to lif...@googlegroups.com
Hi Jon-Anders,
Thanks for the tips. I'll give it a go after I've tried this Emacs + Ensime combo

Alex Averbuch

unread,
Oct 3, 2010, 4:51:24 PM10/3/10
to lif...@googlegroups.com
Sweet!
Emacs says: "Alex, this could be the start of a beautiful program"

The problem was that I had download that Chat program so many times I had forgotten to do "sbt update" this time. Once I did that, everything seemed to run fine.

I'm a complete Emacs noob though, so no doubt I'll have more hurdles finding my way around. But at least I'm onto that stage now.

Thanks again. I'll report back later

On Sun, Oct 3, 2010 at 10:36 PM, TylerWeir <tyler...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.

TylerWeir

unread,
Oct 3, 2010, 4:57:38 PM10/3/10
to Lift
Try this... stop ensine with M-x ensime-disconnect and kill off emacs.

Open a file in your project in emacs and check out the status line, if
will say [ENSIME: No Connection] somewhere.
modify the file in some way and save, it should complain about a save-
hook failing.

Then issue M-x ensime and get it a couple of minutes, you'll either
get "connected" or "analyzer ready"

I don't remember if the first analysis took ages, but all subsequent
connections are quick.
15 minutes sounds suspiciously long though.

On Oct 3, 4:42 pm, Alex Averbuch <alex.averb...@gmail.com> wrote:
> Hey, .ensime looks like this:
>
> (:project-name "chat"
> :server-root "/home/alex/bin/ensime_2.8.0-0.3.0/"
> :project-package "code"
> :use-sbt t)
>
> Really not sure about the "making sense" part, but everything is as I would
> expect (for what that's worth).
>
> My laptop rates quite low on the pimp scale, but this Initializing Analyzer
> business has been going for over 15 minutes now... so either Ensime is
> slower than Ecplise, or there's something else going wrong here (besides the
> low pimp factor)
>
> > liftweb+u...@googlegroups.com<liftweb%2Bunsu...@googlegroups.com>
> > .

Alex Averbuch

unread,
Oct 3, 2010, 5:05:08 PM10/3/10
to lif...@googlegroups.com
Hey,
Yeah just tried this (after fixing the sbt update bug, see last email) and it behaved exactly as you described.

I now need to learn the 1001 shortcuts and get acquainted with this...

To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages