Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception while commiting to hg Repo #73

Open
2 tasks done
Xtrem532 opened this issue Oct 1, 2020 · 3 comments
Open
2 tasks done

Exception while commiting to hg Repo #73

Xtrem532 opened this issue Oct 1, 2020 · 3 comments

Comments

@Xtrem532
Copy link

Xtrem532 commented Oct 1, 2020

Step 1: Are you in the right place?

  • I have verified there are no duplicate active or recent bugs, questions, or requests
  • I have verified that I am using the latest version of the plugin.

Step 2: Describe your environment

  • Plugin version: 0.12.2
  • PyCharm/IDEA version: PyCharm 2020.2.2 (Community Edition) Build #PC-202.7319.64, built on September 16, 2020
  • Pylint version: 2.6.0

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>
@Xtrem532 Xtrem532 mentioned this issue Oct 1, 2020
2 tasks
@seb-buch
Copy link

seb-buch commented Dec 7, 2020

Hi,

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

  • Plugin version: 0.12.2
  • PyCharm version: 2020.3 (Professional Edition), Build #PY-203.5981.165, built on December 7, 2020
  • OS: Windows 10 10.0
  • Pylint version: 2.6.0

@Magicbeanbuyer
Copy link

Magicbeanbuyer commented May 4, 2021

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants