Comments (2)
Thanks for the feedback.
Often problems picked up by merlin in one file is fixed by altering a different file, but this isn't picked up so the problems go stale.
If I understand correctly what you are describing this might be hard to fix just due to how merlin itself operates. Merlin only provides feedback when you synchronize edits from the buffer for a particular file. It's not project based in a more general sense and is somewhat limited in what it will report. So if file B reports a problem due to an issue in file A, and then you go fix the issue in file A, merlin won't automatically refresh the feedback for file B.
One possibility might be to try and figure this out somehow on the editor side and then force merlin to do the refreshes for associated files automatically. But I'm not sure if that's a good idea. It would require adding some complicated logic that would likely be fragile and not always work as expected.
Another possibility might be to allow the option of building the project in the background between edits or saves (probably only saves) and using that to override what merlin reports if the feedback is different.
This is particularly annoying if you delete a file that had problems associated with it. Then you're pretty much screwed and have to restart vscode to fix it.
Is this in a scenario where the file you are deleting was previously opened in the editor? In that case, when you delete the file, I would have thought the problems associated with it would disappear when editor for the file is closed just prior to deletion.
from vscode-reasonml.
Another possibility might be to allow the option of building the project in the background between edits or saves (probably only saves) and using that to override what merlin reports if the feedback is different.
I actually do have a build task set up in tasks.json, and I think defining a problemWatcher on that instead of using merlin for problems would do the trick. But I also think this needs to be set up (semi-)manually per project, which is a bit inconvenient.
I would have thought the problems associated with it would disappear when editor for the file is closed just prior to deletion.
That would make sense. Unfortunately it does not, and they don't seem to think it's their problem to fix: microsoft/vscode#23010
from vscode-reasonml.
Related Issues (20)
- Error "connection got disposed off" (but not on save as in #247 and #142 but on start/load) HOT 5
- Error starting reason-vscode "expected string", fix error message for invalid bsconfig.json HOT 1
- Options for ReasonML formatting?
- BSC.exe: Wrong Argument. -bs-jsx expects an integer HOT 4
- Incorrect problem matcher for ocaml >= 4.09
- Wrong module for "go to definition" HOT 3
- merlin error reporting can be excessive
- [Feature] Completion on labelled arguments
- Unable to run first ocaml "hello world" program.
- Double error/warning dislayed
- WSL: opam local switch environment
- What does this highlighting of a whole function mean?
- Ternary Operators are Highlighted as bool
- Restart Merlin? HOT 1
- Why is the highlighting for OCaml so weird?
- Node module errors preventing extension from working
- Autocomplete not working HOT 1
- OCaml: Incorrect syntax highligthing if identifier starts with let
- Request textDocument/formatting failed
- VS Code: we have marked your extension as deprecated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-reasonml.