-
Notifications
You must be signed in to change notification settings - Fork 1.2k
pylint errors stay around after deleting code file #1235
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
Comments
Can I ask why you would want linting results for a file that you deleted? I'm not seeing the use-case. |
Oh my, I have mixed up actual and expected behavior. Sorry for that! The bug is that the messages do stay around, and I would expect them to disappear. |
I can't reproduce, so this seems to have been fixed. |
@brettcannon if you say you cannot reproduce: are you using some internal build that I might not have? Because I can still repro this in 1.22.2 (and 1.23.0). I should add that I usually use folder mode, so maybe this is one requirement to reproduce this. |
@bersbersbers Please confirm you have the latest version of the extension 2018.4.0. |
Yes, I am using ms-python.python 2018.4.0. I am still getting this error, but I agree it's harder to repro than I thought. For example, this is how it does NOT reproduce:
During testing, I have noticed that the same happens with a .tex file, so I assume this is a general VS Code bug. I will report it in their repo. |
@bersbersbers so are you saying that you don't save the file prior to deletion? |
@brettcannon good point: yes, I do save the file in both cases, the one that does reproduce the issue and the one that does not. |
Hmm, I can't reproduce the issue, unfortunately. We can try one more time to trigger, but if we can't reproduce we won't be able to fix it (if it's our fault). |
I am finally able to reproduce this in a new workspace. It seems the Subversion extension is involved. According to microsoft/vscode#49187 (comment), this is not an issue of VS Code, but extensions. Are you able to reproduce and figure out whether this issue is one of vscode-python or svn-scm? Steps:
In VS Code:
This is my current system info: Version 1.23.1 latex-workshop Jam 5.4.0 CPUs Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz (32 x 3193) |
Cannot reproduce on vscode insiders 1.24.0-insider with the latest vscode-python extension installed. You may want to uninstall each extra extension you have installed one at a time to discover the culprit here. |
@d3r3kk just for my information, did you try with the Subversion extension installed? Because I do know that this extension is required to reproduce the issue. My current question is "whether this issue is one of vscode-python or svn-scm". |
For the record, this problem was fixed in JohnstonCode/svn-scm@fd090c4 |
@bersbersbers Thanks for letting us know, that's good news! |
Uh oh!
There was an error while loading. Please reload this page.
Environment data
pylint 1.8.3,
astroid 1.6.2
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)]
Actual behavior
After deleting bug.py, pylint errors for bug.py stay around.
Expected behavior
After deleting bug.py, pylint errors for bug.py are discarded. (This works for .cpp files, for example.)
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)Upon deleting bug.py:
The text was updated successfully, but these errors were encountered: