Expecting a nil or t value at key: :disable-index-on-startup

30 views
Skip to first unread message

richard emberson

unread,
Oct 9, 2012, 5:00:24 PM10/9/12
to ens...@googlegroups.com
I send

:disable-index-on-startup nil

to the Ensime server and see in the log file:

Configuration Format Error: Expecting a nil or t value at key:
:disable-index-on-startup

Should ProjectConfig.scala be changed from:

def getBool(m: KeyMap, name: String): Boolean = m.get(keyword(name))
match {
case Some(TruthAtom()) => true
case None => false
case _ => matchError("Expecting a nil or t value at key: " + name);
false
}

to:

def getBool(m: KeyMap, name: String): Boolean = m.get(keyword(name))
match {
case Some(TruthAtom()) => true
case Some(NilAtom()) => false
case None => false
case _ => matchError("Expecting a nil or t value at key: " + name);
false
}

Richard

--
Quis custodiet ipsos custodes

Aemon Cannon

unread,
Dec 6, 2012, 12:27:23 AM12/6/12
to ens...@googlegroups.com
Good catch!

richard emberson

unread,
Dec 6, 2012, 12:33:11 AM12/6/12
to ens...@googlegroups.com
Aemon,

Don't know if I mentioned this before, but I am in the
process of creating a Vim client for Ensime:

https://github.com/megaannum/vimside

Still pre-alpha; maybe 1/2 the commands are implemented.
Thats why I have been looking closely at Ensime's manual and
its code.

Aemon Cannon

unread,
Dec 6, 2012, 12:37:51 AM12/6/12
to ens...@googlegroups.com
Richard, 

I suspected ; )
Thanks for all your detailed feedback. It's really helpful.
And do feel free to ping me with any difficulties you run in to.
Reply all
Reply to author
Forward
0 new messages