megaannum / vimside

Vim Scala IDE (VimSIde) built upon ENSIME
150 stars 18 forks source link

Problem with starting vimside #28

Closed badeleux closed 10 years ago

badeleux commented 10 years ago

I've encountered such a problem during launching vimside:

Starting Ensime Engine ...
Error detected while processing function vimside#StartEnsime..vimside#PreStart..vimside#options#manager#Load..vimside#options#manager#LoadUser..<SNR>74_UserOptionsFile..g:VimsideOptionsUserLoad..vimside#options#manager#SetOptionP
rivate..<SNR>74_CheckDefinedFunc..vimside#options#option#CheckValue..<SNR>76_CheckColorKind:
line    2:
E121: Undefined variable: value
E116: Invalid arguments for function forms#color#util#ConvertName_2_RGB(value) == ''
E15: Invalid expression: forms#color#util#ConvertName_2_RGB(value) == ''
E121: Undefined variable: value
E116: Invalid arguments for function forms#color#util#ConvertName_2_RGB(value) == ''
E15: Invalid expression: forms#color#util#ConvertName_2_RGB(value) == ''
Error detected while processing /Users/kamilbadyla/.vim/bundle/vimside/autoload/vimside/sexp.vim:
line   33:
E706: Variable type mismatch for: g:SEXP_VALUE_TO_NAME
line   35:
E706: Variable type mismatch for: g:SEXP_NAME_TO_VALUE
line   36:
E689: Can only index a List or Dictionary
line   37:
E689: Can only index a List or Dictionary
line   38:
E689: Can only index a List or Dictionary
line   39:
E689: Can only index a List or Dictionary
line   40:
E689: Can only index a List or Dictionary
line   41:
E689: Can only index a List or Dictionary
line  364:
E706: Variable type mismatch for: g:SEXP_TO_STRING
line  409:
E706: Variable type mismatch for: g:SEXP_TO_READABLE_STRING
line  450:
E706: Variable type mismatch for: g:SEXP_TO_VIM
line  510:
E706: Variable type mismatch for: g:SEXP_TO_DEBUG
ENSIME-ReferenceServer 0.8.6
Error detected while processing function vimside#StartEnsime..vimside#swank#rpc#init_project#Run..vimside#ensime#swank#dispatch..g:InitProjectCaller..vimside#sexp#ToWireString..vimside#sexp#ToReadableString:
line    2:
E15: Invalid expression: g:SEXP_TO_READABLE_STRING[a:sexp.sexp_type](a:sexp)
Error detected while processing function vimside#StartEnsime..vimside#swank#rpc#init_project#Run..vimside#ensime#swank#dispatch..vimside#ensime#swank#asynchronous:
line   75:
E121: Undefined variable: dic
-- More --

my ensime_config.vim


" full path to this file
let s:full_path=expand('<sfile>:p')
" full path to this file's directory
let s:full_dir=fnamemodify(s:full_path, ':h')
" file name
let s:file_name=fnamemodify(s:full_path, ':t')

let s:scala_home = '/usr/local/Cellar/scala/2.10.3'
if s:scala_home == ''
  throw "SCALA_HOME not set in file " . s:full_path
endif
let s:java_home = '/usr/local/jdk'
if s:java_home == ''
  throw "JAVA_HOME not set in file " . s:full_path
endif

let compile_jars = g:SExp(
                     \ g:Str(s:full_dir . "/build/classes")
                     \ )
let source_roots = g:SExp(
                \ g:Str(s:full_dir . "/src/main/java"),
                \ g:Str(s:full_dir . "/src/main/scala")
                \ )
let reference_source_roots = g:SExp(
                \ g:Str(s:java_home . "/src"),
                \ g:Str(s:scala_home . "/src")
                \ )

let compiler_args = g:SExp(
                      \ g:Str("-Ywarn-dead-code")
                      \ )

" :alignSingleLineCaseStatements_maxArrowIndent 20
let formatting_prefs = g:SExp(
              \ Key(":alignParameters"), g:Bool(1),
              \ Key(":alignSingleLineCaseStatements"), g:Bool(0),
              \ Key(":compactStringConcatenation"), g:Bool(1),
              \ Key(":compactControlReadability"), g:Bool(1),
              \ Key(":doubleIndentClassDeclaration"), g:Bool(1),
              \ Key(":indentLocalDefs"), g:Bool(0),
              \ Key(":indentPackageBlocks"), g:Bool(0),
              \ Key(":indentSpaces"), g:Int(2),
              \ Key(":indentWithTabs"), g:Bool(0),
              \ Key(":multilineScaladocCommentsStartOnFirstLine"), g:Bool(0)
              \ )

call vimside#sexp#AddTo_List(formatting_prefs,
              \ Key(":placeScaladocAsterisksBeneathSecondAsterisk"), g:Bool(0),
              \ Key(":preserveDanglingCloseParenthesis"), g:Bool(1),
              \ Key(":preserveSpaceBeforeArguments"), g:Bool(0),
              \ Key(":rewriteArrowSymbols"), g:Bool(0),
              \ Key(":spaceBeforeColon"), g:Bool(0),
              \ Key(":spaceInsideBrackets"), g:Bool(0),
              \ Key(":spaceInsideParentheses"), g:Bool(0),
              \ Key(":spacesWithinPatternBinders"), g:Bool(1)
              \ )

"  \ Key(":package"), g:Str("com.megaannum"),

"  \ Key(":only-include-in-index"), include_index,
" \ Key(":exclude-from-index"), exclude_index,
let g:ensime_config = g:SExp([ 
  \ Key(":root-dir"), g:Str(s:full_dir),
  \ Key(":name"), g:Str("test"),
  \ Key(":version"), g:Str("1.0"),
  \ Key(":compile-jars"), compile_jars,
  \ Key(":compiler-args"), compiler_args,
  \ Key(":disable-index-on-startup"), g:Bool(0),
  \ Key(":source-roots"), source_roots, 
  \ Key(":reference-source-roots"), reference_source_roots, 
  \ Key(":target"), g:Str(s:full_dir . "/build/classes"),
  \ Key(":formatting-prefs"), formatting_prefs
  \ ] )

Do you have an idea, where is the problem?