-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings disappear when opening files from the Error and Warnings quick box #2047
Comments
interesting... maybe the task framework should even do it since that sort of owns the resources... |
I just hit this in the smoke test:
|
@dbaeumer Is this maybe due to marker ownership conflicts between a task and a language worker? |
Not sure about @egamma case but @joaomoreno case is because of ownership. With Salsa we now validate the files with tsserver and no errors are produced. Since eslint-stylish uses the owner javascript Salsa clears all JS errors. May be for JS linters we should use a separate owner. |
My example is using .ts files and tslint. |
I can reproduce this problem in 0.10.14-insiders and with errors as well as warnings. In my case, I have written a custom problem matcher. In my project folder, I have a host application and a web application and they both use TypeScript and have their own
I experimented with various values for the |
Moving to May. This is more complicated then I thought and requires some more investigation. |
Colour me disappointed! This issue is causing me to waste hours scrolling up and down the output panel and manually eye-balling file names and line numbers - particularly when refactoring or renaming a variable or class member. Perhaps you could implement a "band-aid" fix in the interim: simply shelve the concept of problem ownership clear all "problems" when a build starts and register them from the new build's output when it finishes. For intellisense problems, just bung them in as duplicates - naively append the intellisense problems and build problems. |
@stephenmartindale sorry about that. There are several possible interim fixes for your specific problem:
"typescript.validate.enable": false This basically 'emulates' clearing all errors on build
"applyTo": "closedDocuments" This will do the following: if a document is open in the editor errors are taken from the internal TS server and external errors are dropped. However in this setup you need to set the owner of the problem matcher to 'typescript' to make this work. If this doesn't help, could you share your project. Then I have a quick look and see what I can do. |
I have written up a proposal for the new story here: #6973 |
A couple of fixes went into the June build:
I will close this issue. Any further discussion on how we proceed with project wide errors should be discussed here: #6973 |
To verify with TS:
Ensure: the error is still presented in the list of errors To verify with ESLint:
|
Please, when is this going to be fixed? |
I have a task defined that uses a problem matcher to create warnings.
Assume it creates 5 warnings for file A and 2 warnings for file B. The total warning count shown in the status bar is now 7.
Now follow these steps:
View>Show Errors and Warnings
View>Show Errors and Warnings
againAt this point the warning count in the status bar drops to 2. This is confusing since without doing anything the 5 warnings have disappeared.
The reason is that when I open file A from Errors and Warnings it isn't put into the working files. Then when I open file B, File A is closed and its markers get cleared.
To avoid this confusion I suggest that opening a file from Errors and Warnings puts the file into the 'Working files' section, that is, the file is kept open and the warnings do not disappear. So the effect would be the same as if I double clicked the file from the explorer.
Assigning to Jo as the owner of diagnostics and the Errors and Warnings quick box. @dbaeumer fyi.
The text was updated successfully, but these errors were encountered: