type inspector diffs due to different config files

8 views
Skip to first unread message

richard emberson

unread,
May 22, 2013, 11:19:28 PM5/22/13
to ens...@googlegroups.com
I have two different Ensime config files for the some
project (I can select which one I wish to use).
The first is auto-generated using the ensime sbt plugin.
The second config file I wrote by hand.
Right after getting the index-ready event I place the
cursor on a class name and issue a inspect-type-at-point
command.
For the ensime-sbt-plugin case, I get back:

(:return (:ok (:type (:name "Foo" :type-id 1 :full-name
"com.megaannum.util.Foo" :decl-as class :pos (:file
"/home/emberson/github/cl_options/src/main/scala/com/megaannum/util/Foo.scala"
:offset 110)) :info-type typeInspect :companion-id 2)) 3)

while for my hand written config file I get:

... well close to 6000 characters of type data (no need to
include it all).

I might note that if I re-issue the inspect-type-at-point
command for the ensime-sbt-plugin generated config file,
then I get the full (6000 char) response.

Now, for the ensime sbt config file the init-project message
from editor so ensime server contains:

(swank:init-project (:subprojects ((:name "CmdLineOptions"
:module-name "cmdlineoptions" :depends-on-modules () :package
"cmdlineoptions" :version "1.0" :compile-deps
("/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-library.jar"
"/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-compiler.jar"
"/home/emberson/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar")
:runtime-deps
("/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-library.jar"
"/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-compiler.jar"
"/home/emberson/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar"
"/home/emberson/github/cl_options/target/scala-2.10/classes"
"/home/emberson/github/cl_options/target/scala-2.10/classes") :test-deps
("/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-library.jar"
"/home/emberson/.sbt/boot/scala-2.10.0/lib/scala-compiler.jar"
"/home/emberson/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.0.jar"
"/home/emberson/github/cl_options/target/scala-2.10/classes"
"/home/emberson/github/cl_options/target/scala-2.10/test-classes")
:source-roots ("/home/emberson/github/cl_options/src/main/scala"
"/home/emberson/github/cl_options/src/main/java"
"/home/emberson/github/cl_options/target/scala-2.10/src_managed/main"
"/home/emberson/github/cl_options/src/test/scala"
"/home/emberson/github/cl_options/src/test/java"
"/home/emberson/github/cl_options/target/scala-2.10/src_managed/test")
:target "/home/emberson/github/cl_options/target/scala-2.10/classes"
:test-target
"/home/emberson/github/cl_options/target/scala-2.10/test-classes"))))

while the hand written one is smaller and contains:

(swank:init-project (:root-dir "/home/emberson/github/cl_options"
:name "test" :package "com.megaannum" :version "1.0" :compile-jars
("/home/emberson/github/cl_options/build/classes") :compiler-args
("-Ywarn-dead-code") :source-roots
("/home/emberson/github/cl_options/src/main/java"
"/home/emberson/github/cl_options/src/main/scala")
:reference-source-roots ("/usr/local/java/src"
"/home/emberson/scala//scala-2.10.1//src") :target
"/home/emberson/github/cl_options/build/src/classes/" :test-target
"/home/emberson/github/cl_options/build/test/classes/"
:only-include-in-index ("com\\.megaannum\\.\\*") :exclude-from-index
("com\\.megaannum\\.core\\.xmlconfig\\.compiler\\*") :formatting-prefs
(:alignParameters t :alignSingleLineCaseStatements nil
:compactStringConcatenation t :doubleIndentClassDeclaration t
:indentLocalDefs nil :indentPackageBlocks nil :indentSpaces 2
:indentWithTabs nil :multilineScaladocCommentsStartOnFirstLine nil
:preserveDanglingCloseParenthesis t :preserveSpaceBeforeArguments nil
:rewriteArrowSymbols nil :spaceBeforeColon nil :spaceInsideBrackets nil
:spaceInsideParentheses nil :spacesWithinPatternBinders t)))


So, I know this is a lot of stuff, but what could be causing
the ensime-sbt-plugin config file to not execute the
inspect type command the first time it is issued?

Thanks
Richard Emberson
Vimside


--
Quis custodiet ipsos custodes
Reply all
Reply to author
Forward
0 new messages