Open gambheera88 opened 7 years ago
Even i am having the same issue
Hi friends,
I solved the problem. Here I upgraded my Sonarserver 6.1 to 6.4 and sonar-typescript-plugin-1.1.0. So it worked for me.
Thanks
Make sure that blame information issue is coming for uncommitted files, So run sonar-scanner command with -X option, to view full debug log. Then you can identify what the exact problem is.
tried both still no luck
C:\sonar\SonarTsPlugin-master\samples\using-existing-tslint-output>c:\sonar\sona r-scanner-3.0.3.778-windows\bin\sonar-scanner.bat -X -e 00:43:27.837 INFO: Option -e/--errors is no longer supported and will be ignored
00:43:27.840 INFO: Scanner configuration file: c:\sonar\sonar-scanner-3.0.3.778- windows\bin..\conf\sonar-scanner.properties 00:43:27.840 INFO: Project root configuration file: C:\sonar\SonarTsPlugin-maste r\samples\using-existing-tslint-output\sonar-project.properties 00:43:27.860 INFO: SonarQube Scanner 3.0.3.778 00:43:27.860 INFO: Java 1.8.0_121 Oracle Corporation (64-bit) 00:43:27.860 INFO: Windows 7 6.1 amd64 00:43:27.951 DEBUG: keyStore is : 00:43:27.951 DEBUG: keyStore type is : jks 00:43:27.951 DEBUG: keyStore provider is : 00:43:27.951 DEBUG: init keystore 00:43:27.951 DEBUG: init keymanager of type SunX509 00:43:29.045 INFO: User cache: C:\Users\vgopalakrishnan.sonar\cache 00:43:29.045 DEBUG: Extract sonar-scanner-api-batch in temp... 00:43:29.045 DEBUG: Get bootstrap index... 00:43:29.045 DEBUG: Download: http://localhost:9000/batch/index 00:43:29.095 DEBUG: Get bootstrap completed 00:43:29.095 DEBUG: Create isolated classloader... 00:43:29.105 DEBUG: Start temp cleaning... 00:43:29.105 DEBUG: Temp cleaning done 00:43:29.105 DEBUG: Execution getVersion 00:43:29.115 DEBUG: Execution start 00:43:29.819 DEBUG: Publish global mode 00:43:29.906 INFO: Load global settings 00:43:29.931 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=19ms 00:43:29.982 INFO: Load global settings (done) | time=77ms 00:43:29.992 INFO: User cache: C:\Users\vgopalakrishnan.sonar\cache 00:43:30.172 INFO: Load plugins index 00:43:30.182 DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | tim e=10ms 00:43:30.183 INFO: Load plugins index (done) | time=11ms 00:43:30.184 DEBUG: Load plugins 00:43:30.195 DEBUG: Load plugins (done) | time=11ms 00:43:30.205 DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (bu ilt with API lower than 5.2) 00:43:30.207 DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (bu ilt with API lower than 5.2) 00:43:30.287 DEBUG: Plugins: 00:43:30.287 DEBUG: C# 5.10.1.1411 (csharp) 00:43:30.287 DEBUG: Python 1.7.0.1195 (python) 00:43:30.287 DEBUG: SonarJava 4.9.0.9858 (java) 00:43:30.287 DEBUG: Flex 2.3 (flex) 00:43:30.287 DEBUG: Git 1.2 (scmgit) 00:43:30.287 DEBUG: SonarXML 1.4.2.885 (xml) 00:43:30.287 DEBUG: SonarPHP 2.10.0.2087 (php) 00:43:30.287 DEBUG: TypeScript 1.1.0 (typescript) 00:43:30.287 DEBUG: SVN 1.4.0.522 (scmsvn) 00:43:30.287 DEBUG: SonarJS 3.0.0.4962 (javascript) 00:43:30.307 DEBUG: Execution getVersion 00:43:30.307 INFO: SonarQube server 6.4.0 00:43:30.307 INFO: Default locale: "en_US", source code encoding: "UTF-8" 00:43:30.307 DEBUG: Work directory: C:\sonar\SonarTsPlugin-master\samples\using- existing-tslint-output.scannerwork 00:43:30.307 DEBUG: Execution getVersion 00:43:30.307 DEBUG: Execution execute 00:43:30.593 INFO: Process project properties 00:43:30.603 DEBUG: Process project properties (done) | time=10ms 00:43:30.695 INFO: Load project repositories 00:43:30.705 DEBUG: GET 200 http://localhost:9000/batch/project.protobuf?key=com .pablissimo.sonar%3Ausing-existing-tslint-output | time=10ms 00:43:30.730 INFO: Load project repositories (done) | time=35ms 00:43:30.800 DEBUG: Available languages: 00:43:30.800 DEBUG: C# => "cs" 00:43:30.800 DEBUG: Python => "py" 00:43:30.800 DEBUG: Java => "java" 00:43:30.800 DEBUG: Flex => "flex" 00:43:30.800 DEBUG: XML => "xml" 00:43:30.800 DEBUG: PHP => "php" 00:43:30.800 DEBUG: TypeScript => "ts" 00:43:30.800 DEBUG: JavaScript => "js" 00:43:30.800 INFO: Load quality profiles 00:43:30.814 DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.pro tobuf?projectKey=com.pablissimo.sonar%3Ausing-existing-tslint-output | time=14ms
00:43:33.114 DEBUG: Execution getVersion 00:43:33.115 DEBUG: Execution stop
hi... https://github.com/Pablissimo/SonarTsPlugin/issues/118
Just try with above link. the issue is showing in your logs.
00:43:32.663 WARN: TsLint reported issues against a file that isn't in the analy sis set - will be ignored: src/MyApp.ts 00:43:32.663 WARN: TsLint reported issues against a file that isn't in the analy sis set - will be ignored: test/MyAppTests.ts
Is it necessary to run karma for new files?
No, not at all
[16:42:54] 16:42:54.160 INFO: Sensor Coverage Report Import (wrapped)
[16:42:54] 16:42:54.160 DEBUG: No coverage property. Skip Sensor 16:42:54.160 INFO: Sensor Coverage Report Import (wrapped) (done) | time=0ms 16:42:54.160 INFO: Sensor Coverage Report Import (wrapped) 16:42:54.160 DEBUG: No coverage property. Skip Sensor
[16:42:54] 16:42:54.161 INFO: Sensor Coverage Report Import (wrapped) (done) | time=0ms
[16:42:54] 16:42:54.161 INFO: 0/0 source files have been analyzed 16:42:54.161 INFO: Sensor Unit Test Results Import (wrapped)
[16:42:54] 16:42:54.162 DEBUG: No unit test results property. Skip Sensor 16:42:54.162 INFO: Sensor Unit Test Results Import (wrapped) (done) | time=1ms
[16:42:54] 16:42:54.162 INFO: Sensor XmlFileSensor (wrapped)
[16:42:54] 16:42:54.162 INFO: Sensor XmlFileSensor (wrapped) (done) | time=0ms
[16:42:54] 16:42:54.162 INFO: Sensor Linting sensor for TypeScript files (wrapped)
[16:42:54] 16:42:54.163 DEBUG: Path sonar.ts.tslint.path not specified, falling back to node_modules/tslint/bin/tslint
[16:42:54] 16:42:54.163 DEBUG: Found sonar.ts.tslint.configPath path to be 'tslint.json'
[16:42:54] 16:42:54.163 DEBUG: Path sonar.ts.tslint.rulesDir not specified, falling back to null
[16:42:54] 16:42:54.164 DEBUG: Path sonar.ts.tslint.projectPath not specified, falling back to null
[16:42:54] 16:42:54.164 DEBUG: Path sonar.ts.tslint.outputPath not specified, falling back to null
[16:42:54] 16:42:54.164 WARN: Path to tslint not defined or not found. Skipping tslint analysis.
[16:42:54] 16:42:54.164 INFO: Sensor Linting sensor for TypeScript files (wrapped) (done) | time=2ms
[16:42:54] 16:42:54.164 INFO: Sensor Combined LCOV and LOC sensor (wrapped)
[16:42:54] 16:42:54.487 INFO: Sensor Combined LCOV and LOC sensor (wrapped) (done) | time=323ms 16:42:54.487 INFO: Sensor Coverage Report Import (wrapped) 16:42:54.488 DEBUG: No coverage property. Skip Sensor 16:42:54.488 INFO: Sensor Coverage Report Import (wrapped) (done) | time=1ms
[16:42:54] 16:42:54.488 INFO: Sensor Coverage Report Import (wrapped) 16:42:54.488 DEBUG: No coverage property. Skip Sensor 16:42:54.488 INFO: Sensor Coverage Report Import (wrapped) (done) | time=0ms 16:42:54.488 INFO: Sensor Unit Test Results Import (wrapped)
[16:42:54] 16:42:54.488 DEBUG: No unit test results property. Skip Sensor 16:42:54.488 INFO: Sensor Unit Test Results Import (wrapped) (done) | time=0ms 16:42:54.488 INFO: Sensor Analyzer for "php.ini" files (wrapped)
[16:42:54] 16:42:54.492 INFO: Sensor Analyzer for "php.ini" files (wrapped) (done) | time=4ms
[16:42:54] 16:42:54.492 INFO: Sensor Zero Coverage Sensor (wrapped)
[16:42:54] 16:42:54.513 INFO: Sensor Zero Coverage Sensor (wrapped) (done) | time=20ms
[16:42:54] 16:42:54.513 INFO: Sensor Code Colorizer Sensor (wrapped)
[16:42:54] 16:42:54.516 INFO: Sensor Code Colorizer Sensor (wrapped) (done) | time=3ms
[16:42:54] 16:42:54.517 INFO: Sensor CPD Block Indexer (wrapped)
[16:42:54] 16:42:54.517 INFO: DefaultCpdBlockIndexer is used for ts
[16:42:54] 16:42:54.517 DEBUG: No CpdMapping for language ts
[16:42:54] 16:42:54.517 INFO: Sensor CPD Block Indexer (wrapped) (done) | time=0ms
[16:42:54] 16:42:54.518 INFO: Calculating CPD for 0 files
[16:42:54] 16:42:54.519 INFO: CPD calculation finished
[16:42:54] 16:42:54.938 INFO: Analysis report generated in 410ms, dir size=4 MB
[16:42:55] 16:42:55.141 INFO: Analysis reports compressed in 202ms, zip size=727 KB
16:42:55.672 INFO: Executing post-job com.att.sonar.email.EmailMetricsFetcher 16:42:55.672 DEBUG: EmailMetricsFetcher is disabled (sonar.email.enabled = false) 16:42:55.672 INFO: Executing post-job org.sonar.plugins.stash.StashIssueReportingPostJob 16:42:55.675 INFO: ------------------------------------------------------------------------ 16:42:55.676 INFO: EXECUTION SUCCESS
Gulp file:
sources: 'client/src/app', tests: 'client/testing', language: 'ts', sourceEncoding: 'UTF-8', ts: { lcov: { reportPaths: 'client/coverage/lcov.info' }, ts:{tslint:{configPath:'./tslint.json'}} },
everything shows up except coverage on the dashboard. even though it shows on the dashboard the coverage shows 0%.
Here is a part of my error
INFO: Index files INFO: 4 files indexed INFO: Quality profile for css: SonarQube Way INFO: Quality profile for ts: TsLint INFO: Sensor Lines Sensor INFO: Sensor Lines Sensor (done) | time=19ms INFO: Sensor SCM Sensor INFO: SCM provider for this project is: git INFO: 2 files to be analyzed INFO: 1/2 files analyzed WARN: Missing blame information for the following files: WARN: * C:/Users/Lahiru/Desktop/TMaaS/Localization-POC/my-dream-app/src/app/app.component.ts WARN: This may lead to missing/broken features in SonarQube
Could you please tell me why this is happening.