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.

Opening an OCaml project before having dependencies in .merlin file keeps giving errors even after adding the dependency

See original GitHub issue

How to reproduce:

  • Open an OCaml project that has a file that imports any module (for example core open Core)
  • The project should have no .merlin file or has the file but the .merlin file doesn’t have PKG core at the time of opening it
  • Add PKG core to the .merlin file
  • The error keeps printing to the console with every edit to the document until restarting VSCode

The error messages: (the first one keeps repeating with edits - also they don’t show what’s wrong)

(node:65198) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: <unreachable>: error
(node:65198) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Feb 6, 2018

This should be fixed now that the merlin auto-refresh functionality is enabled.

1reaction
sharnocommented, Oct 9, 2017

@jchavarri Mac Sierra

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get merlin to do a good job on project dependencies ...
My question is how to I get merlin to reliably work with with source code of project dependencies? Ideally they should point to...
Read more >
Merlin complains about a missing module in the same project
I am new to Ocaml and just setting up my dev environment with emacs, merlin and flycheck. Everything works more or less expected...
Read more >
load project error · Issue #56 · reasonml-editor/vscode ...
I ran across this issue in OCaml. It manifests as the extension remaining as "loading" perpetually. I didn't have merlin installed, so I ......
Read more >
Dune Documentation - Read the Docs
When using Dune, you give very little, high-level information to the ... you have Dune, opam, and OCaml installed, but you get an...
Read more >
Developer Manual - Frama-C
2.4.9 Getting your plug-in Usable in a Multi Projects Setting . ... and the generated .merlin file will be automatically used when opening...
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