rescript-lang / rescript-lang/rescript-vscode
Error "Missing dependency …… in search path"
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
Hello
I'm using ReScript 11.1.4 and extension 1.63.6
I have several modules in the style of
module FooBar = {
let make = React.lazy_(() => Js.import(FooBar.make))
}
module App = {
@react.component
let make = () => {
<div>
{React.string("Foobar: ")}
<FooBar />
</div>
}
}
where FooBar is another (existing) module.
The compiler running in the terminal is perfectly happy. If I open the module containing the code above in VSCode it's fine. But as soon as I edit the module, I've got an error from the extension displaying "Missing dependency FooBar in search path" at the beginning of the file. If I reload the module, no extension error until I edit the module. And again, the compiler in the terminal shows zero problem.
It's more an annoying than a stopping issue, sure (it took me, err, months to open the issue)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VSCode using the module pattern shown: open the module, edit it, and observe the reported missing dependency while the terminal compiler succeeds. Compare the extension's diagnostics before and after editing; done means an existing dependency such as FooBar no longer produces a false error after edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100