This repository was archived by the owner on Sep 21, 2019. It is now read-only.

Description
Steps to reproduce
- Check out https://github.com/jqno/EnsimeVimCompletionIssue
- Open
CompletionTest.scala
- Write
print
and invoke completion; choose println
.
- Write
(
- Write
he
and invoke completion
Expected behaviour
The line is expanded to println(hello)
Actual behaviour
The line is expanded to hello)
More info
I tried to fix this bug and offer a PR, but unfortunately I couldn't figure it out. I have noticed that fun_en_complete_func
is invoked with a base
parameter of println(he
, where I would have expected just he
. However, it seems to come directly from VIM that way, so I'm not sure what the intended approach should be:
- Try to get VIM to send
he
to ensime-vim instead of println(he
- Adapt ensime-vim to return
println(hello
instead of just hello
- Another approach entirely?
It seems to make sense to combine this with #271. I'd like to take a stab at that too, if you can give me some pointers :).