question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Problems" re-appear and cannot be hidden after closing a file while it is being linted

See original GitHub issue

Environment data

  • VS Code version: 1.46.1
  • Extension version (available under the Extensions sidebar): 2020.6.90262
  • OS and version: Win 10 2004, Remote SSH into Linux
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): none
  • Relevant/affected Python packages and their versions: e.g., pylint==2.5.3
  • Relevant/affected Python-related VS Code extensions and their versions: none, I believe
  • Value of the python.languageServer setting: default (Jedi)

Expected behaviour

I think I observed that “Problems” are removed/hidden when a file is closed.

Actual behaviour

However, when I close a file while linting is running (especially if that takes a few seconds), the problems re-appear after the file is closed and cannot be hidden. If “Show Active File Only” is checked, then these problems are not actually shown, but still counted, compare this screenshot: image

Steps to reproduce:

  1. Create and save a long-linting .py file (the one below works great, takes many seconds)
  2. Make a change and save the file
  3. Wait for linting to start (you’ll notice the problems in the list disappear), then quickly close the file

I’d expect VS Code to ensure the expected behavior, but it seems to be up to the extenions to ensure this. https://github.com/microsoft/vscode/issues/100646

import humanize
import jstyleson
import matplotlib
import natsort
import nose
import numpy
import ordered_set
import pandas as pd
import psutil
import PyPDF2
import raster_geometry
import scipy
import seaborn
import SharedArray
import silence_tensorflow
import tensorboard
import tensorflow
import tensorflow_addons
import textract
import tf_explain
import tifffile
import toolz

import colour_science
import ExifRead
import Keras
import keras_vis
import opencv_contrib_python
import pynrrd
import python_pptx
import scikit_image
import scikit_learn
import scikit_plot
import Werkzeug


def hello():
    """
    Hello.
    """

    test_pdf = pd.DataFrame([[1, 2, 3]])

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bersbersberscommented, Jul 2, 2020

The behavior shown in the gif is certainly similar. Certainly the end result is the same: problems continue to be shown for a closed file.

My examples are a bit different in that problems disappear when the linter starts, then re-appear when it’s done. So in that case, it’s even more clear to see what is going on.

Your gif might also show a different, more general problem removing problems for a closing file irrespective of the linter running simultaneously. But assuming that the TS linter implementation is just a little more advanced and just does not hide the previous problems while the linter is running, I’d agree that your gif is compatible with what I describe.

0reactions
karthiknadigcommented, Nov 8, 2022

If you run into issue please file a bug on the pylint extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 pro missing title bar and part of the top of window
Hello, we are experiencing problems with certain application in windows 10 the top of teh window (the first inch)is missing... the title bar ......
Read more >
Visual Studio compiles fine, but it still shows red lines
Just delete this file, open you solution again, and IntelliSense will start rebuilding its indexfile. After that the problem will be gone. Share....
Read more >
Re: My Hard Drive Disappeared, How to Fix?
Fixes to Hard Drive Disappeared from File Explorer. Method 1. Run Hardware and Device Troubleshooter. Windows 10 comes with a troubleshooting ...
Read more >
Is the Taskbar Not Auto-Hiding on Windows? Try These Fixes
The problem arises when the Windows taskbar fails to hide automatically ... Close the PowerShell window, open File Explorer, and navigate to ...
Read more >
Windows: How To Unhide A Hidden Folder
o Best effort Limited Support by Phone and Chat. All Troubleshooting steps ... o General Here's how to display hidden files and folders....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found