-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Problems in .py file do not disappear when closing a file which is checked into source control #2085
Comments
From @vscodebot[bot] on June 29, 2018 8:53 (Experimental duplicate detection) |
@jan11011977 problems are owned by the extension that generate them and hence an extension is responsible for cleaning them up. In addition as outlined in #52348 it depends on the language whether problems should be cleared on file closed or not. In general the VS Code recommendation for languages extensions ares:
It sounds like you are seeing this independent of the language used (e.g. even for HTML). Could you provide me with a reproducible test case best a GitHub repository to clone. This would ease to understand why the problem always stay for you. |
From @jan11011977 on July 2, 2018 10:50 Thanks for the reply. I am using Python and Perforce for version control. It looks like for a python file (unlike, say Javascript), the problems do get cleared from the list when the file is closed. However there seems to be a bug where if a .py file is checked into Perforce, the problems for it stay around after closing it. If the file isn't checked into Perforce, then the problems do disappear. I have attached a .zip file to help reproduce the problem:
(note: you will need install Python + Pylint manually, they were too big to fit in the .zip file) |
Hi @dbaeumer, thanks for the report!
and:
Could you please try uninstalling/disabling the Perforce extension and reproduce the issue? |
@d3r3kk the report came originally from @jan11011977 I moved it here. As @jan11011977 pointed out the problems do not stay if the file is not checked into Perforce. So disabling it will very likely not reproduce it anymore. @d3r3kk were you able to reproduce it? |
I've not installed the Perforce dependencies to reproduce it here yet, no. It's quite likely that the Perforce extension is interacting with our extension in some negative way. I'll see if I can get up and running on a Windows VM to try it out later. |
@d3r3kk the zip even containes the perforce server. No need to install anything :-) besides some Python tools |
Ok, this turns out to have nothing at all to do with the perforce extension. I can reproduce it simply by enabling the Python Language Server. Reproduction steps:
Expected resultNo problems will be reported in the problems pane. Observed resultThe problem: |
cc: @DonJayamanne, @brettcannon, @ericsnowcurrently: I'm set up for anything to do with Perforce now, should there be a need for it. |
From @jan11011977 on June 29, 2018 8:52
Issue Type: Bug
If you open a file, and then close it again, the problems for that file stay in the Problems window. Over time the number of problems in the list grows, eventually causing me to have to restart Visual Studio Code just to clear the list.
I am using the Python extension, but this is also happening for the Go extension, for Javascript, etc. So it's not specific to a particular plugin. It's a problem with VSCode itself.
The behaviour I expect would be that problems generated by a Task hang around permanently, but that problems generated when opening a file will disappear again when that file is closed.
This issue has been reported numerous times before:
microsoft/vscode#29169
microsoft/vscode#15524
microsoft/vscode-go#1036
trixnz/vscode-lua#32
microsoft/vscode#52348
microsoft/vscode#23010
microsoft/vscode#50448
angular/vscode-ng-language-service#185
Pretty much all of these have been closed for one reason or another, without a fix,. This is still clearly a serious usability problem for a lot of people, so I am opening another bug for it. I am hoping this will draw attention to underlying problem.
Thanks!
VS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.17134
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (3)
Copied from original issue: microsoft/vscode#53310
The text was updated successfully, but these errors were encountered: