Coder Social home page Coder Social logo

Comments (2)

 avatar commented on July 20, 2024

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.

glennsl avatar glennsl commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.