-
Notifications
You must be signed in to change notification settings - Fork 54
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
cannot initialize module - but Eclipse can find the extension #541
Comments
Do we have same problem with this extension https://github.com/sevntu-checkstyle/sevntu.checkstyle ? |
I have not been able to find the time to upgrade the plugin and setup a new project with some rules from that extension. I will let you know the results when I get around to it. |
I've done the following:
My Eclipse log now contains the following error:
Maven on the other hand works just fine, with |
@robtimus, so it works on eclipsecs 9.3 and not working on eclipsecs 10.0 (next release after 9.3)? https://checkstyle.org/eclipse-cs/#!/releasenotes we changed min required Eclipse at 10.0.0 . f80470f Issue #340: change minimum Eclipse version to 2019-06 . No big updates from library, except for min jdk bump. |
@romani I had only tested with versions 9.3.0 (no error), 10.7.0 (auto-updated or something, error) and 10.9.3 (reinstall, error). I have just finished testing with more versions, starting with 9.3.0 and going through the following procedure:
Version 10.0.0 through 10.5.0 showed no errors, and the violation was correctly displayed. After the upgrade from 10.5.0 to 10.6.0 the error returned. I've used the latest Eclipse (2023-06, 4.28.0) with the default JDK (Java 17). |
https://checkstyle.org/releasenotes.html#Release_10.5.0.
|
@rnveach , do you experience any issues with sevntu usage in Eclipse? |
I don't use sevntu in eclipse. |
That change seems to be more lenient, and it should not block my custom checks. Besides, that change got introduced in Checkstyle 10.5.0, a version that can load my checks just fine. Maven can also load them just fine. |
I have a Checkstyle extension, https://github.com/robtimus/checkstyle-extension. This works great in Maven. It used to work great in Eclipse as well, by simply adding it to the
dropins
folder. However, recently it stopped working. The thing is, Eclipse recognizes the plugin just fine. It's available under thePlug-ins
tab of theInstallation Details
dialog, and it's also available for global Checkstyle configurations - if I create a new one, then configure it, theCheckstyle Extension
category with my custom checks shows up, and I can add and configure these as needed. Actually performing the checks upon changing code doesn't work though: Eclipse shows an error ("Checkstyle execution failed due to an internal error. Please check the error log for details..."), and the logs show the following error:However, one of the attempted classes is
com.github.robtimus.checkstyle.checks.LicenseCommentCheck
, and that class exists in my extension.This problem started occurring a few days ago. I was still using Eclipse 2022-12 at the time, but upgrading to Eclipse 2023-06 didn't solve anything. I've tried running
eclipse -clean
, also after removing and re-adding my extension, but nothing has been working so far.I've now downgraded the Checkstyle plugin to version 9.3 https://checkstyle.org/releasenotes.html#Release_9.3 , and it now works again, so I'm fairly confident that this is caused by something in the plugin.
The text was updated successfully, but these errors were encountered: