These are chat archives for ensime/ensime-atom

22nd
Apr 2016
Seth Bromberger
@sbromberger
Apr 22 2016 01:09
I can’t figure out how to get ensime-atom to work properly :(
I’ve opened up issues #226 and #227. Help would be greatly appreciated.
Richard Dallaway
@d6y
Apr 22 2016 08:10
@eamelink that sounds pretty weird. If you alt+cmd+i to bring up the console, any errors in there that might give a hint?
Richard Dallaway
@d6y
Apr 22 2016 08:23
@sbromberger I’m looking at your tickets, and will put comments there.
Seth Bromberger
@sbromberger
Apr 22 2016 14:27
@d6y thank you
I’m still trying to figure out what ensime-atom is supposed to do. Things that I expect to be included… don’t appear to work. (Hover tooltips, for example)
I’m trying to move off of scala-ide
Seth Bromberger
@sbromberger
Apr 22 2016 14:34
Just opened #228 as well. I’m wondering whether my install is somehow hosed.
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:21
@sbromberger (moving from ensime-server) can you maybe take a step back from your project and try to get ensime-atom working for a simple project?
something you can share with us on github
Seth Bromberger
@sbromberger
Apr 22 2016 15:21
working on it.
Seth Bromberger
@sbromberger
Apr 22 2016 15:29
ok
I’ve looked through my .ensime file and it looks good (correct version, etc) but the issues I filed are still unresolved.
this is a brand-new project.
I created a build.sbt
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:29
honestly, we can't really help unless you can share a project on github.
Seth Bromberger
@sbromberger
Apr 22 2016 15:29
there’s literally no code yet.
just a val x = 6
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:30
that's probably enough to go on
Seth Bromberger
@sbromberger
Apr 22 2016 15:31
I did a mkdir test3 and then, in there, created a one-line build.sbtand then did sbt gen-ensime, then opened up a new file.
ensime said it started up
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:31
look, honestly, please just push whatever minimal project you have to github. It's incredibly frustrating having to work off the bits and pieces you're sharing.
Seth Bromberger
@sbromberger
Apr 22 2016 15:31
and I get the “Full typecheck finished!” status in blue in the atom status bar
ok
you want all the dirs (project/ and target/)?
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:31
also push your .ensime file
you can skip target directories, put that in your .gitignore
Seth Bromberger
@sbromberger
Apr 22 2016 15:32
ok, standby
there’s nothing in project/ so it wasn’t added
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:36
sigh
ok, so you basically didn't follow the troubleshooting guide because this is one of the FAQs
I realise you're in a hurry to complete on a deadline, but there is a lot to learn to use ENSIME and Scala at the same time
Seth Bromberger
@sbromberger
Apr 22 2016 15:37
where are teh FAQs?
Seth Bromberger
@sbromberger
Apr 22 2016 15:37
I’m there.
There’s nothing for step 5
and in step 6, I didn’t see anything that was relevant
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:38
oh, my bad, it might be in the ensime-emacs tracker
TL;DR is that ensime doesn't support scala files in the base directory
Seth Bromberger
@sbromberger
Apr 22 2016 15:38
I didn’t read the other editor faqs
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:39
you need to use the maven file structure src/{main,test}/scala etc
this should be clear in the .ensime and the warning message that gen-ensime outputs
Seth Bromberger
@sbromberger
Apr 22 2016 15:39
I only got 2 warnings from gen-ensime
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:39
so mkdir src/main/scala
and move your .scala into there, and try again
including sbt gen-ensime
Seth Bromberger
@sbromberger
Apr 22 2016 15:40
same two warnings on gen-ensime
different text. n/m
restarting atom
erm
do I do the sbt gen-ensime in the src/main/scala directory?
or in the project root?
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:42
always from the base
I added this to the FAQ ensime/ensime-server#1432
Seth Bromberger
@sbromberger
Apr 22 2016 15:42
I did that
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:43
I think we have a ticket somewhere but it's not flagged as FAQ
Seth Bromberger
@sbromberger
Apr 22 2016 15:43
now ensime-atom is complaining that there’s no .ensime file found
.ensime is in the project root
let me restart atom and open the project root instead of the scala/ dir
different errors now, but some progress
“no declpos in …” (disappeared before I could copy it)
ok, if I could suggest you include this info in the ensime-atom docs, that’d be awesome. I can propose some text if that would help.
Richard Dallaway
@d6y
Apr 22 2016 15:56
Hmm maybe we need a happy-path example sbt project on the ensime git hub. A project we know works. Probably will save people lots of time.
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 15:57
@d6y I'd love to have this actually ensime/ensime.github.io#109
@sbromberger would be happy to accept docs, but we'll need to be careful that it goes in the right place and also that we weed out general problems with getting scala up and running... that would be best in a section of its own
@sbromberger can you update the project?
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 16:54
oh dear, I think we scared him off
Seth Bromberger
@sbromberger
Apr 22 2016 17:42
no, sorry
I was afk in a meeting
will be back in an hour or so
Ghost
@ghost~540393fe163965c9bc2018ce
Apr 22 2016 17:43
I'm clocking off for the weekend
you'll get most help if you keep updating your repo as you discover new things. Saying what you're seeing is basically useless info unfortunately. The only thing that matters is the input.