-
Notifications
You must be signed in to change notification settings - Fork 143
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
IllegalStateException during analyze #1038
Comments
Update: I've dropped Flex plugin manually and restarted server. Now I'm getting error from PHP plugin
|
Similar problem when upgrading to previous LTS https://community.sonarsource.com/t/the-field-format-does-not-exist-or-is-not-annotated-with-ruleproperty/29633 |
Hello @jincod Could you please provide the verbose logs (all of them - you can attach them in a file on the community forum https://community.sonarsource.com/c/help/8)? To do so please run
as the begin step, and please attach the output of the BEGIN and END steps. Do you have files with the Thanks, |
Hello @andrei-epure-sonarsource,
No, we don't. |
I am a bit puzzled by the logs you gave. The Even more, I see at the end Could you help me understand what's happening here? |
Hi @andrei-epure-sonarsource , Exception was lost. Here the full log. |
Is ok that different languages have the same rule id? |
Yes, the same rules are implemented in multiple languages. The rule repository differs (the fully qualified name for the rule is given by rule repository name + rule id). Can you verify that all language plugins are only in |
@andrei-epure-sonarsource correct |
great, I am glad everything works now |
No, I'm mean folder is empty. Plugins aren't duplicated. The error is still presenting |
could you please share the system info file with us? (https://support.microsoft.com/en-us/topic/description-of-microsoft-system-information-msinfo32-exe-tool-10d335d8-5834-90b4-8452-42c58e61f9fc ) |
At production environment we have Docker based installation. My local information:
|
Oops sorry I gave the wrong link - we'd need the SQ System Info https://docs.sonarqube.org/latest/instance-administration/system-info/#header-1 |
Thanks. To check if something went wrong with the update, could you do the analysis with a local fresh SQ 8.9 install (with the out-of-the-box in-memory database for testing purposes)? |
I've updated Server to 9.0.1 version, dropped flex plugin manually and restarted server. Now it works Shall I close the issue? Thank you for your support |
Thanks for letting us know. This looks like an issue with SQ or its plugins that cannot be fixed in this repo so I'll close this. |
Description
I've done upgrade SonarQube 8.4 -> 8.9 LTS.
Repro steps
If possible then please create a git repository with a repro sample or attach a zip to the issue.
Expected behavior
Works without errors
Actual behavior
Getting error.
java.lang.IllegalStateException: The field 'threshold' does not exist or is not annotated with @RuleProperty in the class org.sonar.flex.checks.ClassNameCheck
Known workarounds
No
Related information
Did some research and found out https://github.com/SonarSource/sonar-flex/blob/52600cc15ea25bcf82ef57083c40f29a1b4ab0a8/flex-checks/src/main/java/org/sonar/flex/checks/ClassNameCheck.java. For some reason scanner use Flex plugin.
At SonarQube Flex Language settings page we had suffix 'as' instead of '.as'. Changed to '.as' - didn't help.
The text was updated successfully, but these errors were encountered: