These are chat archives for ensime/ensime-atom

1st
Dec 2015
Jeff Wilde
@jeffwilde
Dec 01 2015 16:00

It’s my first time trying out ensime, and I not getting past “go”. Starting with a very basic sbt project after generating the .ensime file, when i try to start the server within atom I get the following error in the "Ensime server update" tab:

[info] Loading global plugins from /Users/jnorman/.sbt/0.13/plugins
java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1746) at java.util.regex.Matcher.reset(Matcher.java:402) at java.util.regex.Matcher.(Matcher.java:244) at java.util.regex.Pattern.matcher(Pattern.java:1100) at java.util.regex.Pattern.split(Pattern.java:1213) at java.util.regex.Pattern.split(Pattern.java:1280) at sbt.IO$.pathSplit(IO.scala:744) at sbt.IO$.parseClasspath(IO.scala:859) at sbt.compiler.CompilerArguments.extClasspath(CompilerArguments.scala:62) at sbt.compiler.MixedAnalyzingCompiler$.withBootclasspath(MixedAnalyzingCompiler.scala:189) at sbt.compiler.MixedAnalyzingCompiler$.searchClasspathAndLookup(MixedAnalyzingCompiler.scala:167) at sbt.compiler.MixedAnalyzingCompiler$.apply(MixedAnalyzingCompiler.scala:177) at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138) at sbt.Compiler$.compile(Compiler.scala:128) at sbt.Compiler$.compile(Compiler.scala:114) at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:829) at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:820) at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:818) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:235) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:265) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [error] (compile:compileIncremental) java.lang.NullPointerException
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

Anybody seen this before? Google and the github issues don’t seem to reference it at all.

Jeff Wilde
@jeffwilde
Dec 01 2015 16:29
For giggles, I just tried the same project from emacs, and the ensime server starts-up fine.
Doug Clinton
@DougC
Dec 01 2015 20:11
@jeffwilde odd one. from the stack trace it appears that the sbt code that is parsing the classpath is somehow ending up passing null into Pattern.split
hard to tell how or why without seeing the particular project
Jeff Wilde
@jeffwilde
Dec 01 2015 20:27
Jeff Wilde
@jeffwilde
Dec 01 2015 20:35
@DougC, are there any debug setup instructions that’d get me info on what atom is actually telling sbt to do before it fails? (from what i gather using ensime emacs, a temporary sbt project is created or something like that; a flow i’m not easily following from within atom to see where it differs)
Viktor Hedefalk
@hedefalk
Dec 01 2015 21:31
@jeffwilde Should be in ~/.atom/packages/Ensime/ensimeupdate. There's a build.sbt there.
Could you try running sbt manually there?
Maybe something about path separator. : vs ; maybe or / vs . I thought I had it covered, what system are you on?
/ vs \. And also ~/.atom/packages/Ensime/ensime_update_.
It generates a build.sbt and runs "sbt saveClasspath clean" on it.