leinardi / pylint-pycharm

A plugin providing both real-time and on-demand scanning of Python files with PyLint from within PyCharm/IDEA.
Apache License 2.0
196 stars 35 forks source link

Exception while commiting to hg Repo #73

Open Xtrem532 opened 3 years ago

Xtrem532 commented 3 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Note: Plugin was manually downloaded (from https://plugins.jetbrains.com/) and installed

Step 3: Describe the problem:

Steps to reproduce:

  1. Have PyLint Toolbar open
  2. Commit to hg Repo using Commit Toolbar (Alt-0) (using default mercurial plugin version 202.7319.64)
  3. Receive Exception in eventlog (before the "X files committed" message from the VCS plugin)

Exception:

com.leinardi.pycharm.pylint.exception.PylintPluginException: Illegal state: filesToScan is empty   at 
com.leinardi.pycharm.pylint.plapi.PylintRunner.scan(PylintRunner.java:238)   at 
com.leinardi.pycharm.pylint.checker.ScanFiles.scan(ScanFiles.java:108)   at 
com.leinardi.pycharm.pylint.checker.ScanFiles.checkFiles(ScanFiles.java:100)   at 
com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:74)   at 
com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:46)   at 
com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:268)   at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)   at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)   at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)   at 
java.base/java.security.AccessController.doPrivileged(Native Method)   at 
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)   at 
java.base/java.lang.Thread.run(Thread.java:834) 

Eventlog:

01.10.2020
14:57   Unexpected Exception Caught
            The scan failed due to an exception: Illegal state: filesToScan is empty
            com.leinardi.pycharm.pylint.exception.PylintPluginException: Illegal state: filesToScan is empty

            at com.leinardi.pycharm.pylint.plapi.PylintRunner.scan(PylintRunner.java:238)

            at com.leinardi.pycharm.pylint.checker.ScanFiles.scan(ScanFiles.java:108)

            at com.leinardi.pycharm.pylint.checker.ScanFiles.checkFiles(ScanFiles.java:100)

            at com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:74)

            at com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:46)

            at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:268)

            at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

            at java.base/java.util.concurrent.ThreadPoolEx... (show balloon)

14:57   1 file committed: <redacted Commitmessage>
seb-buch commented 3 years ago

Hi,

same happens when commiting to a git repo. I suspect this hapens for virtually all the VCS.

Magicbeanbuyer commented 3 years ago

Hey,

I got the same problem. It seems the Error only pops up if I use PyCharm commit tool window. If I use terminal to commit, then everything is fine.

Version

pylint 2.8.2 Python 3.8.2 plugin 0.12.2

Event Log

Unexpected Exception Caught
The scan failed due to an exception: Illegal state: filesToScan is empty
com.leinardi.pycharm.pylint.exception.PylintPluginException: Illegal state: filesToScan is empty   at
com.leinardi.pycharm.pylint.plapi.PylintRunner.scan(PylintRunner.java:238)   at
com.leinardi.pycharm.pylint.checker.ScanFiles.scan(ScanFiles.java:108)   at
com.leinardi.pycharm.pylint.checker.ScanFiles.checkFiles(ScanFiles.java:100)   at
com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:74)   at
com.leinardi.pycharm.pylint.checker.ScanFiles.call(ScanFiles.java:46)   at
com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:265)   at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)   at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)   at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)   at
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)   at
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)   at
java.base/java.security.AccessController.doPrivileged(Native Method)   at
java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)   at
java.base/java.lang.Thread.run(Thread.java:834)
kavanase commented 1 year ago

Hi! I'm also getting the same error notifications, on PyCharm.2022.3.1 with pylint 2.15.0, plugin 0.14.0 and python 3.8. Is there any update or solution to this?