“Go to Definition” from inside *.ml library file doesn't work
See original GitHub issueFrom a SomeFile.re I can right click -> “Go to Definition” on a standard library function that I use (in this case Format.printf(...)
) and it will jump to the definition as I expect (in this case ./node_modules/bs-platform/lib/ocaml/format.ml
)
But inside format.ml, “Go to Definition” doesn’t work for me. In this case, in format.ml, printf
calls fprintf
. When I try to "Go to Definition on fprintf, it says “No definition found for fprintf”
Not sure if this a bug / missing feature? Or I simply miss some settings?
TIA
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
ReasonML on VSCode - "Go to Definition" from inside *.ml ...
I'm trying out ReasonML on VSCode. But have a little problem with "Go to Definition" feature. From a SomeFile.re I can right click...
Read more >Jump-to-definition not working on Windows · Issue #98 - GitHub
Given the following in a file Demo.res where Test is the module ... sweet alltests working fixing some definitions fix go-to-definition for ...
Read more >Functional Programming Lecture 9: Compiler
Browsing of identifiers: show type and comment, go to definition. ◦ local and whole-program refactoring: renaming identifiers and compi- lation units, open ......
Read more >Practical OCaml - DEV Community
Finally, you will need to install an editor plugin to get support features like syntax highlighting, type on hover, go to definition, etc....
Read more >VSCode OCaml Platform - Visual Studio Marketplace
Open your OCaml/ReasonML project ( File > Add Folder to Workspace. ... Build your project with Dune to get go-to-definition, auto-completion ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will try to see if I can reproduce it
Can repro. Not sure why. Afaik jump-to-definition requires putting the correct .merlin file at the root of bucklescript’s folder (right now bs ships with a wrong one that contains @bobzhang’s local paths), but that didn’t work either