Closed srasku closed 6 years ago
Here's the log file and the checkstyle configuration.
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?
I've exported the Eclipse error log and attached it. I didn't notice anything regarding eclipse-cs
.
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.
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.
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)
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.
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.
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.
Thanks, @rnveach. I didn't checkin my Checkstyle configuration. Restoring it is the final step to solving this problem.
It's working now.
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?
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."