-
Notifications
You must be signed in to change notification settings - Fork 76
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
java.lang.IllegalStateException: Error while running 'flutter analyze --no-fatal-warnings --no-fatal-infos' (exit 1): 6632 issues found. (ran in 3.3s) #206
Comments
Hi, I've run in the exact same issue when running sonar-scanner from a docker container. I had to run EDIT: Strangely enough, I'm back on the problem even after flutter pub get. I'll keep you updated if I fix the issue EDIT 2: Found out.
|
I am also facing same issue
|
sonar.dart.analyzer.options.override=false |
I also got the same issue, no matter if I change the flag to TRUE or FALSE.
I'm using the SonarQube Common Edition 10.4. |
somethings that I noticed -- most of my problems went away when I switched the branch to the default branch of GIT. And I find that the sonarqube does not do much beyond what is already done by "flutter anallyze". I can share my sonar-project.properties if you DM me |
I repeated all the steps today, the only change was the use of the sonar-flutter-plugin-0.5.1-SNAPSHOT.jar instead of the previous sonar-flutter-plugin-0.5.0.jar and it seems to work now. I don't know if this is because I closed and opened the server to do this and maybe something cleaned up, anyway as far as I read the stats, it seems correctly analyzed now. |
Same experience with @AntonioZan. My pipeline succeeded without any additional changes in sonar.properties file |
it would be useful to generate new release with this change @zippy1978 |
How to run flutter pub get inside the container? |
Mshimaz --depending on how you run sonarqube, you can add that flutter pub get into your docker script. I usually run my scan from inside an azure devops pipeline (another form of CICD build system from azure) and use a flutter plugin from azure. https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter |
I tried to run the command in the script, but its saying the flutter command is missing. Should I need to install here. If so how can I do that?. Also is there something else I can do to solve the above mentioned error. |
Duplicate of #177 |
Fixed in new release: https://github.com/insideapp-oss/sonar-flutter/releases/tag/0.5.1 |
sonar-scanner command giving below error while scanning flutter application. why its giving this error, what should be the possible solution for the issue. i am using gitlab pipeline.
gitlab-ci
sonar-projects.properties files
The text was updated successfully, but these errors were encountered: