pylint-pycharm icon indicating copy to clipboard operation
pylint-pycharm copied to clipboard

java.io.IOException: CreateProcess error=206, The filename or extension is too long

Open fabiopedrosa opened this issue 4 years ago • 2 comments

Whenever I try to run the plugin for the whole project, I always get this:

The scan failed due to an exception: 

Error creating Pylint process 

Root cause: CreateProcess error=206, The filename or extension is too long java.io.IOException: CreateProcess error=206, The filename or extension is too long   

at java.base/java.lang.ProcessImpl.create(Native Method)   
at java.base/java.lang.ProcessImpl. (ProcessImpl.java:478)   
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)   
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)   
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)   
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:457)   
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:422)  
at com.leinardi.pycharm.pylint.plapi.PylintRunner.scan(PylintRunner.java:274)   
at com.leinardi.pycharm.pylint.checker.ScanFiles.scan(ScanFiles.java:108)   at 

...

Where can I find more info on this?

fabiopedrosa avatar Nov 09 '20 18:11 fabiopedrosa

Any update on this?

gpcimino avatar Apr 15 '21 13:04 gpcimino

I had the same problem. Marking a virtual environment folder as excluded dictionary solved the problem for me. Maybe your project contains files with a very long path that you need to exclude.

heidenbloed avatar Jul 13 '21 10:07 heidenbloed