question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

“Go to Definition” from inside *.ml library file doesn't work

See original GitHub issue

From 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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bobzhangcommented, Nov 13, 2017

I will try to see if I can reproduce it

0reactions
chengloucommented, Nov 14, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found