-
- Notifications
You must be signed in to change notification settings - Fork 86
Replies: 1 comment · 7 replies
-
| i think so your dart sdk is not properly defined |
Beta Was this translation helpful? Give feedback.
All reactions
-
| I did this... See below command output: [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [✗] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2023.3) [✓] Connected device (1 available) [✓] Network resources And I used android-studio to install the flutter and dart plugin: |
Beta Was this translation helpful? Give feedback.
All reactions
-
| Note the following issues that need to be resolved before starting the coding process. Ensure that all items are checked and green, otherwise, you will encounter errors:
Always make sure these items are resolved and green before beginning any coding work to avoid errors. |
Beta Was this translation helpful? Give feedback.
All reactions
-
| As I want to run only Sonarqube (I am an architect, not a develop), I do think I do not need them (Chrome at least definitively). Now, if you tell me I need the Linux toolchain to run SonarQube, I would be surprised, but I can try to install it to see if this solve the problem. So, obvious my dart installation is ok as the pluging is able to run dart analyze... |
Beta Was this translation helpful? Give feedback.
All reactions
-
| Also try these things:- Update SonarQube and Dart Plugin: Configure Environment Variables: export PATH="$PATH:/path/to/dart-sdk/bin"Check SonarQube Logs: Specify Dart Version Manually: Ensure Compatibility: Reinstall Dart SDK: sudo apt-get remove dart sudo apt-get update sudo apt-get install dartRun SonarQube with Debug Mode: sonar-scanner -XThis might provide more insight into what’s causing the issue. |
Beta Was this translation helpful? Give feedback.
All reactions
-
| The above lines "11:26:53.907 DEBUG: Co..." come from running sonar-scanner -X..
So from these two lines: Here is the plugin code: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
When I use your plugin to run on some dart/flutter code, I get at some point in the log, the following message:
WARN: Could not determine Dart version from output: '' - defaulting to legacy modeHowever, in the same shell, I can run:
dart --versionand get an output (see below),which by the way does not match the regex (on line 235) in AnalyzerExecutable.java.Output:
Dart SDK version: 3.4.3 (stable) (Tue Jun 4 19:51:39 2024 +0000) on "linux_x64"I am currently running the check on Windows/WSL (this will be a real Linux machine when integrated within our CI/CD tool)
Any idea what is going on?
Best regards
PS: uname retuns "Linux"
Beta Was this translation helpful? Give feedback.
All reactions