Can't get tab completion to work…

28 views
Skip to first unread message

Viktor Hedefalk

unread,
Apr 15, 2015, 11:49:40 AM4/15/15
to ens...@googlegroups.com
Hi,

I'm trying the Emacs client as a reference, but can't seem to get tab completion to do anything. If I have a class with:


  def foo(x: Int, y: Int) = x + y
  def bar = fo

and hit tab, I see in the sever log:

Protocol - Received msg: (:swank-rpc (swank:completions (:file "/Users/viktor/dev/projects/kostbevakningen2/src/main/scala/se/kostbevakningen/snippet/EditIngredient.scala" :contents "package se.kostbevakningen.snippet\n\nimport se.kostbevakningen.model.record.{ Ingredient => Ingr, Unit, UnitInfo }\nimport se.kostbevakningen.model.view.admin.DataSourceDropdown\nimport DataSourceDropdown._\nimport net.liftweb.http.RequestVar\nimport net.liftweb.http.StatefulSnippet\nimport net.liftweb.http.S\nimport net.liftweb.util.Helpe...
17:46:05.659 [default-akka.actor.default-dispatcher-13] DEBUG o.e.core.RichPresentationCompiler - Completing at tree:Ident(fo)
17:46:05.784 [default-akka.actor.default-dispatcher-13] INFO  o.e.core.RichPresentationCompiler - Found 1028 members.
17:46:05.785 [Scala Presentation Compiler []] INFO  o.e.core.RichPresentationCompiler - Filtered down to 4.
17:46:05.786 [default-akka.actor.default-dispatcher-13] INFO  o.e.s.protocol.swank.SwankProtocol - Writing: (:return (:ok (:prefix "fo" :completions ((:name "foo" :type-sig (((("x" "Int") ("y" "Int"))) "Int") :type-id 28 :is-callable t :relevance 90 :to-insert nil) (:name "formattedTimeNow" :type-sig (nil "String") :type-id 30 :is-callable nil :relevance 90 :to-insert nil)))) 15)

but down in *Messages* I only see "no completions found".

Shouldn't that method turn up?

Thanks,
Viktor

Aemon Cannon

unread,
Apr 15, 2015, 12:09:49 PM4/15/15
to ens...@googlegroups.com
Curious. Maybe try upgrading your company-mode?

--
You received this message because you are subscribed to the Google Groups "ENSIME" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ensime+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Viktor Hedefalk

unread,
Apr 15, 2015, 4:06:03 PM4/15/15
to ens...@googlegroups.com
Sorry, I'm a total Emacs noob. I did meta-x list-packages and then installed company version 20150405.1148. Had 20150326.1136 which is now marked as obsolete in a seperate row. Do I need to remove this one? If I hit enter on that row the 20150405 version pops up under *Help* so it seems a bit buggy.

Do I need to do something in my ensime.el?

Thanks,
Viktor

Sam Halliday

unread,
Apr 16, 2015, 5:01:28 AM4/16/15
to ens...@googlegroups.com
If you do `M-x list-packages` then type `U` then `x` it'll upgrade everything that's been installed via MELPA.
Reply all
Reply to author
Forward
0 new messages