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

CheckStyle threw an exception when scanning: .gitignore: Couldn't create Checker from Checkout #240

Closed
BorzdeG opened this issue Jun 24, 2016 · 2 comments

Comments

@BorzdeG
Copy link
Contributor

BorzdeG commented Jun 24, 2016

When you delete the configuration file for the selected plug-in Checkstyle without removing it from its plug-in settings, we get an error:

CheckStyle threw an exception when scanning: .gitignore: Couldn't create Checker from Checkout
org.infernus.idea.checkstyle.exception.CheckStylePluginException: Couldn't create Checker from Checkout
at org.infernus.idea.checkstyle.checker.CheckerFactory.checker(CheckerFactory.java:68)
at org.infernus.idea.checkstyle.checker.CheckerFactory.checker(CheckerFactory.java:47)
at org.infernus.idea.checkstyle.CheckStyleInspection.inspectFile(CheckStyleInspection.java:85)
at org.infernus.idea.checkstyle.CheckStyleInspection.lambda$checkFile$0(CheckStyleInspection.java:58)
at com.intellij.openapi.application.impl.ApplicationImpl$3.call(ApplicationImpl.java:330)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: File does not exist: CUT_PROJECT_PATH/checkstyle-configuration.xml
at org.infernus.idea.checkstyle.model.FileConfigurationLocation.resolveFile(FileConfigurationLocation.java:84)
at org.infernus.idea.checkstyle.model.ConfigurationLocation.getProperties(ConfigurationLocation.java:94)
at org.infernus.idea.checkstyle.checker.CheckerFactory.addEclipseCsProperties(CheckerFactory.java:94)
at org.infernus.idea.checkstyle.checker.CheckerFactory.getOrCreateCachedChecker(CheckerFactory.java:81)
at org.infernus.idea.checkstyle.checker.CheckerFactory.checker(CheckerFactory.java:61)
... 8 more

@jshiell
Copy link
Owner

jshiell commented Jun 25, 2016

Thanks for the report. I'll have a look, but it won't be immediately due to my country committing economic and political suicide.

@jshiell
Copy link
Owner

jshiell commented Jun 29, 2016

This should be in the next release, hopefully this weekend - thanks for your help and contributions!

@jshiell jshiell closed this as completed Jun 29, 2016
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

2 participants