-
Notifications
You must be signed in to change notification settings - Fork 26
Method completion doesn't work #71
Comments
As for |
Maybe I was not clear enough in my last comment: method completion still does not work as expected (with merlin 2.3.1). Can you reproduce the problem in your environment? |
Looks like it's a missing or incomplete feature of merlin. I can't get it works in merlin. |
I still have no idea about how to issue commands to merlin to get correct results of method completion. I am not familiar with debugging on vim or emacs script. |
@hcarty, can you provide some additional details on how merlin completion works in vim. When do you see the completion list for the first time: right after typing |
OK, I'have installed VIM myself and tried to use merlin auto-completion there. Indeed, it works as expected for methods. The differences from vscode-ocaml I see:
|
@db4 , if I use empty prefix at cursor, merlin result us all the global namespace entities. Maybe there are some commands I missed that to select which document to complete. I'll also try to change the sync mode to deltas. |
Hmm, I tried empty prefix and it worked. The cursor position was right after |
BTW, you can easily see the whole vim/merlin conversation using env variable MERLIN_LOG (set it to the log file name) |
This is the merlin conversation I've got in vscode-ocaml. Wasn't the cursor right after
|
Here is a fresh merlin conversation (merlin is started directly the from command line):
|
@hackwaly, why |
Yes, the Please try v0.6.8, It use empty prefix instead of including |
My dev env seems broken after updated to macOS Sierra previously. I'm going to reinstall macOS and then solve this issue. |
Merlin still doesn't work on my fresh installed macOS. I'll report it to merlin project. @db4 , the async problem looks like a bug of VS Code self. Currently, I'm mainly work on the ocaml-language-server. I plan to make this extension use it at next major version. |
Could you file a bug report to vscode team?
This is great news! I definitely know OCaml better than TypeScript, so I will submit PRs more frequently :) And a standalone language server can be used in other IDEs, such as Eclipse |
In the following code snippet
I expected that typing
#
would trigger completion list with availabletest
class methods. I doesn't work. Typing#
doesn't trigger completion at all and explicit Ctrl-tab just shows all available OCaml keywords.The text was updated successfully, but these errors were encountered: