These are chat archives for ensime/ensime-atom

28th
Aug 2016
Ryan Berckmans
@ryanberckmans
Aug 28 2016 14:35
Recently got ensime-atom working by manually adding .ensime's directory to source-roots, since I have a couple test.scala files in top-level dir for this test project. Now that Ensime is working, it often gets stuck and I have to Ensime: Stop / Start to make it work again. The logs have thousands of messages; no warnings or errors. Often see "Ensime compiler restarted" which unsure if related. Is this a known issue? Could it be related to me having src files in a non-canonical location (I think not)?
Ensime stops working within ~5 minutes of bouncing it. Seems to be correlated to when I break my build
I have a "sbt ~compile" running in another shell
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 16:04
@ryanberckmans move your scala files into a maven style directory and things will get a lot better
Ryan Berckmans
@ryanberckmans
Aug 28 2016 16:04
Thanks, I'll do that soon
Sam, when starting a new sbt project, how do you generate the directory structure?
"sbt new" doesn't exist
not even sure what the canonical structure is
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 16:05
mkdir -p src/{main,test}/{scala, java, resources}
Ryan Berckmans
@ryanberckmans
Aug 28 2016 16:05
okies.
src/main/scala/my-package/yay-subpackage/Amazing.scala ?
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 16:05
yup
Ryan Berckmans
@ryanberckmans
Aug 28 2016 16:06
ty
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 16:06
if you add the root directory to .ensime then all the file watchers will fire every time they see class files and sbt cache files appear in target and project, which is an excessive strain
Viktor Hedefalk
@hedefalk
Aug 28 2016 16:09
@ryanberckmans See discussion yesterday above. Basically, tldr is that ensime-server doesn't support script style projects and you should always do what Sam says :)
Ryan Berckmans
@ryanberckmans
Aug 28 2016 16:10
sounds good!
Thanks again to both you and Sam for support over last week
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 16:11
I'm going to get that on a T-Shirt "you should always do what Sam says"
(and my wife will throw it in the bin)
Rafal Wachol
@charafau
Aug 28 2016 16:12
mine has thrown away my xkcd sudo tshirt...
Viktor Hedefalk
@hedefalk
Aug 28 2016 18:11
:)
Ghost
@ghost~540393fe163965c9bc2018ce
Aug 28 2016 19:20
I hope you got to keep the sandwich, at least.