Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method completion doesn't work #598

Open
hackwaly opened this issue Nov 7, 2016 · 1 comment
Open

Method completion doesn't work #598

hackwaly opened this issue Nov 7, 2016 · 1 comment

Comments

@hackwaly
Copy link

hackwaly commented Nov 7, 2016

On my macOS 10.12.1

Merlin version:

The Merlin toolkit version 2.5.1, for Ocaml 4.03.0

Test code:

let o = object
  method print_a = print_endline "a";
  method print_b = print_endline "b";
end

let () =
  o#

Conversation:

> ["tell","start","end","let o = object\n  method print_a = print_endline \"a\";\n  method print_b = print_endline \"b\";\nend\n\nlet () =\n  o#\n"]
< ["return",true]
> ["complete","prefix","","at",{"line":7,"col":4},"with","doc"]
< ["return",{"entries":[{"name":"()","kind":"Constructor","desc":"unit","info":""},{"name":"at_exit","kind":"Value","desc":"(unit -> unit) -> unit","info":" Register the given function to be called at program\n   termination time. The functions registered with [at_exit]\n   will be called when the program executes {!Pervasives.exit},\n   or terminates, either normally or because of an uncaught exception.\n   The functions are called in 'last in, first out' order:\n   the function most recently added with [at_exit] is called first. "}, ...]}]

image

Ref: hackwaly/vscode-ocaml#71

@let-def
Copy link
Contributor

let-def commented Nov 11, 2016

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants