Closed mglaze closed 3 years ago
Same problem happening with me.
@mglaze it's the same here. I've just come here to even send the same message as you wrote. 🥲 So, I can confirm what has been written by @mglaze.
Circumstances: SonarQube Scanner 1.0.8 Scanner CLI version 4.6.2.2472 (by default the latest) Java 8/Java 11
Interesting thing but when I tried to change the CLI version it didn't work for me.
Fix: The version of the SonarQube Scanner plugin has been downgraded to 1.0.7 Thanks.
Thanks for the report. Will check that.
@koral-- We are having same issue as well.
@mglaze it's the same here. I've just come here to even send the same message as you wrote. 🥲 So, I can confirm what has been written by @mglaze.
Circumstances: SonarQube Scanner 1.0.8 Scanner CLI version 4.6.2.2472 (by default the latest) Java 8/Java 11
Interesting thing but when I tried to change the CLI version it didn't work for me.
Fix: The version of the SonarQube Scanner plugin has been downgraded to 1.0.7 Thanks.
Hi, could you please share the steps for how to downgrade the version in bitrise?
Is there any option to select explicitly the version 1.0.7 on Bitrise? (while the 1.0.8 has problems)?
Also an alternative would be, when you have some new features, instead of increasing the patch version, you could increase the minor or major version. That would enable us to actually control with version change we are able to have on Bitrise configuration.
@mglaze it's the same here. I've just come here to even send the same message as you wrote. 🥲 So, I can confirm what has been written by @mglaze. Circumstances: SonarQube Scanner 1.0.8 Scanner CLI version 4.6.2.2472 (by default the latest) Java 8/Java 11 Interesting thing but when I tried to change the CLI version it didn't work for me. Fix: The version of the SonarQube Scanner plugin has been downgraded to 1.0.7 Thanks.
Hi, could you please share the steps for how to downgrade the version in bitrise?
Yeah, of course. If you can edit the bitrise.yml file, you can use a fix version: - sonarqube-scanner@1.0.7:
Is there any option to select explicitly the version 1.0.7 on Bitrise? (while the 1.0.8 has problems)?
Also an alternative would be, when you have some new features, instead of increasing the patch version, you could increase the minor or major version. That would enable us to actually control with version change we are able to have on Bitrise configuration.
Hi @dinisnunes1, My previous comment includes a solution how you can set an explicit version. I can agree with your opinion. It could have been better if the number of the minor version was changed because these version-changes are not correlated to each others. But there is a quick fix and @koral-- is on it. 👍😄
@koral-- I do have the same issue SonarQube Scanner plugin has been downgraded to 1.0.7 but it didn't work to me.
Should be fixed in 1.0.9 https://github.com/bitrise-io/bitrise-steplib/pull/3198
Hey everyone, the updated step version (1.0.9) is available in the step library and in workflow editor. Apologies for the inconvenience.
Hey everyone, the updated step version (1.0.9) is available in the step library and in workflow editor. Apologies for the inconvenience.
Hi @ofalvai & @koral-- , No worries, I've just tried and it is okay now. Thank you for your quick reaction.
Thanks guys for the quick fix. I can confirm it's working normally. 💯
This error just started for us this morning. I've tried updating to jdk11, same error. Any ideas? Was working fine on:
Sonar Scanner 4.3.0.2102. Xcode 12.5.x
inflating: sonar-scanner-4.6.2.2472/bin/sonar-scanner-debug.bat
inflating: sonar-scanner-4.6.2.2472/bin/sonar-scanner-debug
inflating: sonar-scanner-4.6.2.2472/bin/sonar-scanner
inflating: sonar-scanner-4.6.2.2472/conf/sonar-scanner.properties
inflating: sonar-scanner-4.6.2.2472/lib/sonar-scanner-cli-4.6.2.2472.jar
~/git Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:658) at org.sonarsource.scanner.cli.Cli.processNextArg(Cli.java:76) at org.sonarsource.scanner.cli.Cli.parse(Cli.java:68) at org.sonarsource.scanner.cli.Main.main(Main.java:59)