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 execution failed due to an internal error. Please check the error log for details. #94

Closed
srasku opened this issue Aug 2, 2018 · 11 comments

Comments

@srasku
Copy link

srasku commented Aug 2, 2018

I am running Eclipse Photon (4.8.0) with Checkstyle 8.11.0 plugin.

When I right-click my file and select "Checkstyle >> Check Code with Checkstyle" I get "Checkstyle execution failed due to an internal error. Please check the error log for details."

@srasku
Copy link
Author

srasku commented Aug 2, 2018

Here's the log file and the checkstyle configuration.

@rnveach
Copy link
Member

rnveach commented Aug 2, 2018

From the CLI checkstyle, your configuration is fine for version 8.11 .

The metadata log file doesn't really say any errors for eclipse-cs. It is just showing errors for jgit and gradle.

java.lang.ClassNotFoundException: org.eclipse.jgit.lfs.BuiltinLFS cannot be found by org.eclipse.egit.core_5.0.0.201806131550-r
org.gradle.api.UncheckedIOException: Cannot download published Gradle versions.
java.net.UnknownHostException: dev.eclipse.org: nodename nor servname provided, or not known

can you see any error for eclipse-cs in the error log view?

@srasku
Copy link
Author

srasku commented Aug 7, 2018

I've exported the Eclipse error log and attached it. I didn't notice anything regarding eclipse-cs.

@romani
Copy link
Member

romani commented Aug 7, 2018

Looks like it is unrelated to checkstyle plug-in.
@srasku , is it happening all the time ? Please share so other details of your eclipse (os type and version, Java version, other plug-in version). Looks like problem with git plugin in eclipse.

@srasku
Copy link
Author

srasku commented Aug 7, 2018

It always happens. Checkstyle never works.

I'm running on macOS 10.13.5.

$ javac -version
javac 1.8.0_144

I've removed the Git plugins but the problem still occurs.

eclipse plugin versions

@romani
Copy link
Member

romani commented Aug 8, 2018

Is it still the same problem java.lang.ClassNotFoundException: org.eclipse.jgit.lfs.BuiltinLFS cannot be found by org.eclipse.egit.core_5.0.0.201806131550-r ?

Try to update jgit plugin, I see it in your plugin list.
I mite be good to look at sources of such plugin in case smth is changed ( class is renamed or moved to diff package)

@srasku
Copy link
Author

srasku commented Aug 8, 2018

I've updated egit and I don't see that error any more.

I also reconfigured my proxy which allowed me to connect to Eclipse Marketplace. I wasn't able to do that before. Unfortunately, Checkstyle is still not working.

@romani
Copy link
Member

romani commented Aug 9, 2018

From your log :

!MESSAGE Checkstyle-Plugin: SuppressionCommentFilter is not allowed as a child in Checker
!STACK 0
com.puppycrawl.tools.checkstyle.api.CheckstyleException: SuppressionCommentFilter is not allowed as a child in Checker

Looks like your confirmation need to be updated as you updated version of checkstyle.
Take a look at breacking changes in http://checkstyle.sourceforge.net/releasenotes.html#Release_8.1 for SuppressionCommentFilter and follow migration recommendations.

@rnveach
Copy link
Member

rnveach commented Aug 9, 2018

checkstyle.txt
com.puppycrawl.tools.checkstyle.api.CheckstyleException: SuppressionCommentFilter is not allowed as a child in Checker

The configuration you gave us has no SuppressionCommentFilter. Either you gave us the wrong configuration or your eclipse isn't using the configuration you think it is.

@srasku
Copy link
Author

srasku commented Aug 9, 2018

Thanks, @rnveach. I didn't checkin my Checkstyle configuration. Restoring it is the final step to solving this problem.

It's working now.

@srasku srasku closed this as completed Aug 9, 2018
@msaifusmani
Copy link

Screen Shot 2020-03-24 at 11 42 31 PM

I am also getting the same error with regards to Checkstyle, @srasku how did you fix it? How did you restore it as you said in your last response?

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