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

Could not startup process 'flutter analyze --no-fatal-warnings --no-fatal-infos' #190

Closed
msaad2110 opened this issue Aug 2, 2023 · 4 comments

Comments

@msaad2110
Copy link

I have installed Sonar Scanner on my GitLab server, along with Flutter and Dart, but I keep getting this error log while trying to run Job using Sonar Scanner,

ERROR: Error during SonarScanner execution org.buildobjects.process.StartupException: Could not startup process 'flutter analyze --no-fatal-warnings --no-fatal-infos'. at org.buildobjects.process.Proc.<init>(Proc.java:91) at org.buildobjects.process.ProcBuilder.run(ProcBuilder.java:205) at fr.insideapp.sonarqube.dart.lang.issues.dartanalyzer.executable.AnalyzerExecutable.analyze(AnalyzerExecutable.java:88) at fr.insideapp.sonarqube.dart.lang.issues.dartanalyzer.DartAnalyzerSensor.execute(DartAnalyzerSensor.java:67) at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:64) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:88) at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:61) at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:79) at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:61) at org.sonar.scanner.scan.SpringModuleScanContainer.doAfterStart(SpringModuleScanContainer.java:82) at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188) at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)

The flutter analyze seems to be working fine in the pipeline, If I issue the command directly but with the sonar scanner it keeps getting failed.

@msaad2110
Copy link
Author

Fixed this was related to Sonar-Scanner permissions

@roofiq
Copy link

roofiq commented Aug 23, 2023

Hey @msaad2110, I'm facing the same issue. How to change permission for sonar-scanner?

@jagadeesh7860
Copy link

Hey @msaad2110, Can you please explain how to solve this issue?

@jasonred8
Copy link

@jagadeesh7860 you can have a try #177 (comment)
It has solved my issue.

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