Idean / sonar-swift

Open source Swift plugin for SonarQube (also supports Objective-C)
Other
895 stars 278 forks source link

Getting issue in sonar qube implementation #233

Open northoutaman opened 5 years ago

northoutaman commented 5 years ago

Apples-MacBook-Air:~ Aman$ cd /Users/Aman/Desktop/SonarDemoApp Apples-MacBook-Air:SonarDemoApp Aman$ ./run-sonar-swift.sh -v Running run-sonar-swift.sh... Project count is [1] Xcode project file is: SonarDemoApp.xcodeproj Xcode workspace file is: SonarDemoApp.xcworkspace Xcode application scheme is: SonarDemoApp Number version from plist is: 1.0 Destination simulator is: platform=iOS Simulator,name=iPhone 7,OS=12.2 Excluded paths from coverage are: Creating directory sonar-reports/ Extracting Xcode project information

Thanks in advance

davidy4ng commented 5 years ago

sonar-scanner: command not found

Have you installed sonar-scanner?

brew install sonar-scanner

northoutaman commented 5 years ago

Yes already installed

gaelfoppolo commented 5 years ago

What is your JDK version?

davidy4ng commented 5 years ago

Can you run $ sonar-scanner --version ?

northoutaman commented 5 years ago

on run $ sonar-scanner --version getting below result.

Apples-MacBook-Air:Wanna Aman$ sonar-scanner --version INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.0.0.1744/libexec/conf/sonar-scanner.properties INFO: Project root configuration file: /Users/Aman/Desktop/Wanna/sonar-project.properties INFO: SonarQube Scanner 4.0.0.1744 INFO: Java 12.0.1 Oracle Corporation (64-bit) INFO: Mac OS X 10.14.3 x86_64

gaelfoppolo commented 5 years ago

What is your JDK and JRE version?

Run java -version. Go to System Preferences, open Java Control Panel. You will find the version in General > About.

northoutaman commented 5 years ago

Apples-MacBook-Air:~ Aman$ java -version openjdk version "12.0.1" 2019-04-16 OpenJDK Runtime Environment (build 12.0.1+12) OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)

gaelfoppolo commented 5 years ago

I think your Java version is incompatible with sonar-scanner. Could you try downgrade to Java 8 (JDK & JRE) and test again?

thejaa commented 4 years ago

@northoutaman did you resolve this issue?

I am also facing the same issue.

Kishore-iOS-dev commented 3 years ago

run-sonar-swift.sh: line 101: slather: command not found

I am getting this error

Alokcbre commented 3 years ago

run-sonar-swift.sh: line 101: slather: command not found

  • returnValue=127

I am getting this error

I am also getting same issue. @Kishore-iOS-dev did you get the answer.

Sonar scanner is installed accurately as I checked twice.

azharuddinhk commented 3 years ago

run-sonar-swift.sh: line 101: slather: command not found

  • returnValue=127

I am getting this error

please run the command - sudo gem install slather