These are chat archives for ensime/ensime-atom

Dec 2015
Jeff Wilde
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( at java.util.regex.Matcher.reset( at java.util.regex.Matcher.( at java.util.regex.Pattern.matcher( at java.util.regex.Pattern.split( at java.util.regex.Pattern.split( 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$ 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 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$ at at java.util.concurrent.Executors$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at [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
Dec 01 2015 16:29
For giggles, I just tried the same project from emacs, and the ensime server starts-up fine.
Doug Clinton
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
Dec 01 2015 20:27
Jeff Wilde
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
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.