[VS code] Pylint not work in Windows 10

Python-pylint running in Visual Studio Code has a limitation with length of file path. When we are using WSL on Windows, it's easy to reach the limitation. In this situation, VS code is not availavle to elther enable or run the pylint with no error messages.

My workspace on Windows is:


We can use something like hard link in Linux, called Junction in Windows

You can use the mklink command like :

mklink /H <link> <target>

If you want to link to a directory instead of a file, use the following command:

mklink /J <link> <target>

Fir example:

cd  C:\Users\Charlie
mklink /J  test C:\Users\Charlie\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\root\src\
cd  C:\Users\Charlie\test

Back to VS code and see pylint is work like a charm!


Inline Feedbacks
View all comments