Comments (8)
If I remember correctly the difficulty on the LSP package side is about keeping track of diagnostics for files that aren't open. @jvican I recommend you create an issue on the LSP package so that we can discuss this issue and possible solutions there.
As for the didFocusTextDocument
notification just ping me for a review.
from metals-sublime.
I fixed this, will make a PR, but the diagnostics issue is still happening. @rwols Do you know what might be going on? I think the LSP server is sending the diagnostics and Sublime is not showing them because the file is not open. Is that possible?
from metals-sublime.
Thanks for for the fix @jvican.
As for the other issue, from my understanding it is a limitation of the LSP package on which this package rely. @rwols Is there an existing issue on the LSP repo ?
from metals-sublime.
Thanks for the answer. Now that you say it, it makes sense it's a problem on the LSP package. I think this is quite a severe limitation because it gives the impression that the changes the user is doing in the editor are OK when they are really not. Delaying or hiding diagnostics for other messages ends up getting in the way of my workflow. @rwols Would it be possible to get a fix for that in the plugin? How much would it take?
from metals-sublime.
Exactly what’s the problem?
from metals-sublime.
Oh the diagnostics. Yeah, we only show diags for open files. I don’t have any plans to change this, but we’re always open to pull requests.
from metals-sublime.
I will do that, will elaborate on why this is important for languages such as Scala.
from metals-sublime.
The underlying pain described in this issue has been fixed in sublimelsp/LSP#1868 (comment) and it will be released soon.
from metals-sublime.
Related Issues (20)
- Improve Documentation
- metals-sublime plugin does not show worksheet output HOT 1
- Sublime Text editor crashes when evaluating large verbose output on worksheet
- Handle new doctor format
- Detect jdk 17 and start metals with specific flags HOT 1
- Implement shellCommand to run main methods
- In the completions widget, a lot of duplicated information is shown for every entry HOT 5
- add copy-worksheet-output command
- Add Rename file as class
- the import prompt doesn't show up automatically in sublime HOT 1
- Add new-java-file command
- Add target-info-display command
- Activate plugin in Java files HOT 3
- Metals Doctor opens regularly HOT 5
- Implement metals/doctorVisibilityDidChange HOT 1
- Handle new doctor format HOT 3
- support new 2.13 artifacts
- Update embeded coursier to support Apple Silicon (M1)
- Handle the Inline argument in decoration protocol
- add support for scalafix-run command
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 metals-sublime.