简体   繁体   中英

vscode linters underlines entire class

I'm using vscode in two different environments - a cloud based VM (using remote-ssh) and a docker container (using remote-container). I have pylint set up on both.

For some reason, when the linter finds and issue on the VM it underlines the entire scope of that issue. For example if I have a class with an issue, the entire class would be underlined.

On the docker environment however only the first letter of the class is underlined. This is much better.

I tried to understand where the difference comes from... went through the settings.json file of both environments and both workspaces but I can't seem to find any difference.

Anyone have any idea what setting affects this?

In the image below, the top code is from the VM, the bottom is from the docker

在此处输入图像描述

There's an open issue in pylint regarding this: https://github.com/PyCQA/pylint/issues/5466 . It's scheduled to be in 2.13.0. Downgrading to 2.12.1 solve the issue but also remove other end of line end of column information introduced in https://github.com/PyCQA/pylint/issues/5336

downgrading from pylint==2.12.2 to pylint==2.12.1 seems to have solved the issue

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM