VSCode SonarLint TS - "No SourceFile found for file..."

I am beginning integration of SonarLint into the VSCode setup for our projects. We are running in Connected mode against a SonarQube 7.9.1 instance. I am able to see lint in e.g. HTML, and output indicates the connection to the server pulled the quality profile and is analyzing files.

However, for any TypeScript file, I get the error:

[Error - 20:28:51.340] No SourceFile found for file /<...>/something.ts with configuration /<...>/tsconfig.json

This is in VSCode v1.51.1 w/ SonarLint v1.18.0, running on a Mac (OSX v10.15.7)

This is the plugin info dumped during binding update:


[Debug - 20:28:46.205] Plugins:
[Debug - 20:28:46.205]   * SonarPython 1.14.1.3143 (python)
[Debug - 20:28:46.205]   * SonarJava 5.13.1.18282 (java)
[Debug - 20:28:46.205]   * SonarHTML 3.1.0.1615 (web)
[Debug - 20:28:46.205]   * SonarPHP 3.2.0.4868 (php)
[Debug - 20:28:46.205]   * SonarTS 1.9.0.3766 (typescript)
[Debug - 20:28:46.205]   * SonarJS 5.2.1.7778 (javascript)

Hello, welcome to the community! And thank you for reporting this issue.

Could you please enable both sonarlint.output.showVerboseLogs and sonarlint.output.showAnalyzerLogs in your VSCode settings and attach to this thread the contents of the SonarLint output when you open one of the affected TS files? This could give us more visibility into what is happening here.

Additionally, I notice that the versions of the analyzers on your SonarQube server are quite old (more than 1 year for the JS and TS analyzers). If possible, I would highly recommend that you update to the latest versions available using SonarQube’s built-in marketplace.

@JBL_SonarSource

Thanks for your reply!
I have reached out to our SonarQube team to update the plugins as you mentioned.

Here are the values from User settings.json:


  "sonarlint.connectedMode.connections.sonarqube": [
    {
      "serverUrl": "https://<redacted>",
      "token": "<redacted>"
    }
  ],
  "sonarlint.pathToNodeExecutable": "/Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node",
  "sonarlint.output.showVerboseLogs": true,
  "sonarlint.output.showAnalyzerLogs": true

and from Workspace settings.json:

 
  "sonarlint.connectedMode.project": {
    "projectKey": "<redacted>"
  }

and from sonar-project.properties:

sonar.projectKey=<redacted>
sonar.sources=apps,libs
sonar.host.url=<redacted>
sonar.typescript.tsconfigPath=tsconfig.base.json
sonar.test.inclusions=apps/**/*.spec.ts,libs/**/*.spec.ts
sonar.exclusions=apps/**/*.scss,libs/**/*.scss,apps/ccxp-web/src/assets/vendor/**/*

and here are the logs from the attempt to save a file after adding this error: console.log(!(typeof 'foo' === 'string'));

Executing /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java -jar /Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/server/sonarlint-ls.jar 56274 file:///Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/analyzers/sonarjava.jar file:///Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/analyzers/sonarjs.jar file:///Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/analyzers/sonarphp.jar file:///Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/analyzers/sonarpython.jar file:///Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/analyzers/sonarhtml.jar
[stdout] Binding to 56274
Child process connected on port 56274
[stderr] WARNING: An illegal reflective access operation has occurred
[stderr] WARNING: Illegal reflective access by org.sonarsource.sonarlint.shaded.com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/Users/pete.burkindine/.vscode/extensions/sonarsource.sonarlint-vscode-1.18.0/server/sonarlint-ls.jar) to field java.time.LocalDate.year
[stderr] WARNING: Please consider reporting this to the maintainers of org.sonarsource.sonarlint.shaded.com.google.gson.internal.reflect.UnsafeReflectionAccessor
[stderr] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[stderr] WARNING: All illegal access operations will be denied in a future release
[Debug - 14:31:22.288] Default settings updated: WorkspaceFolderSettings[analyzerProperties={},testFilePattern=,connectionId=<default>,projectKey=OC-CCXP-client]
[Debug - 14:31:22.288] Execute command '/Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node -v'...
[Debug - 14:31:22.301] Command '/Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node -v' exited with 0
stdout: v12.18.3
[Debug - 14:31:22.302] Detected node version: 12.18.3
[Debug - 14:31:22.369] Create : /Users/pete.burkindine/.sonarlint/plugins
[Debug - 14:31:22.370] Plugin cache: /Users/pete.burkindine/.sonarlint/plugins
[Debug - 14:31:22.371] Create : /Users/pete.burkindine/.sonarlint/plugins/_tmp
[Debug - 14:31:22.582] Load plugins
[Debug - 14:31:22.674] Load plugins (done) | time=92ms
[Debug - 14:31:22.790] Plugins:
[Debug - 14:31:22.790]   * Python Code Quality and Security 3.1.0.7619 (python)
[Debug - 14:31:22.790]   * Java Code Quality and Security 6.9.0.23563 (java)
[Debug - 14:31:22.790]   * SonarHTML 3.2.0.2082 (web)
[Debug - 14:31:22.790]   * PHP Code Quality and Security 3.10.0.6474 (php)
[Debug - 14:31:22.790]   * JavaScript/TypeScript Code Quality and Security 6.5.0.13383 (javascript)
[Debug - 14:31:23.740] Standalone SonarLint engine started
[Debug - 14:32:28.281] Queuing analysis of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts'
[Debug - 14:32:28.289] Starting connected SonarLint engine for '<default>'...
[Debug - 14:32:28.323] Create : /Users/pete.burkindine/.sonarlint/plugins
[Debug - 14:32:28.324] Plugin cache: /Users/pete.burkindine/.sonarlint/plugins
[Debug - 14:32:28.324] Create : /Users/pete.burkindine/.sonarlint/plugins/_tmp
[Debug - 14:32:28.341] Load plugins
[Debug - 14:32:28.435] Load plugins (done) | time=94ms
[Debug - 14:32:28.542] Plugins:
[Debug - 14:32:28.543]   * SonarPython 1.14.1.3143 (python)
[Debug - 14:32:28.543]   * SonarJava 5.13.1.18282 (java)
[Debug - 14:32:28.543]   * SonarHTML 3.1.0.1615 (web)
[Debug - 14:32:28.543]   * SonarPHP 3.2.0.4868 (php)
[Debug - 14:32:28.543]   * SonarTS 1.9.0.3766 (typescript)
[Debug - 14:32:28.543]   * SonarJS 5.2.1.7778 (javascript)
[Info  - 14:32:28.546] Using storage for server '<default>' (last update 12/8/20, 2:30 PM)
[Info  - 14:32:28.611] Starting SonarTS Server
[Debug - 14:32:28.611] Deploying bundle to /Users/pete.burkindine/.sonarlint/work/.sonartmp_6696195368666283532/6240659539373610655
[Info  - 14:32:29.720] Using typescript at [/Users/pete.burkindine/git/ccxp/ccxp-client/node_modules/typescript], version 4.0.3
[Info  - 14:32:29.727] SonarTS Server is started
[Info  - 14:32:29.727] SonarTS Server connected to 56302
[Debug - 14:32:29.728] Connected SonarLint engine started for '<default>'
[Debug - 14:32:30.908] Queuing analysis of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts'
[Debug - 14:32:31.739] Resolved binding ProjectBinding[projectKey=OC-CCXP-client,sqPathPrefix=,idePathPrefix=] for folder /Users/pete.burkindine/git/ccxp/ccxp-client
[Info  - 14:32:31.773] Analyzing file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts'...
[Debug - 14:32:31.774] Analysis triggered on 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts' with configuration: 
[
  projectKey: OC-CCXP-client
  baseDir: /Users/pete.burkindine/git/ccxp/ccxp-client
  extraProperties: {}
  inputFiles: [
    file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts (UTF-8) [ts]
  ]
]

[Debug - 14:32:31.818] Start analysis
[Info  - 14:32:31.829] Index files
[Debug - 14:32:31.831] Language of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts' is set to 'TypeScript'
[Info  - 14:32:31.835] 1 file indexed
[Debug - 14:32:31.883] Available languages:
[Debug - 14:32:31.883]   * Python => "py"
[Debug - 14:32:31.883]   * Java => "java"
[Debug - 14:32:31.883]   * HTML => "web"
[Debug - 14:32:31.884]   * JSP => "jsp"
[Debug - 14:32:31.884]   * PHP => "php"
[Debug - 14:32:31.884]   * TypeScript => "ts"
[Debug - 14:32:31.884]   * JavaScript => "js"
[Debug - 14:32:31.884] Quality profiles:
[Debug - 14:32:31.893]   * java: 'Sonar way' (351 rules)
[Debug - 14:32:31.901]   * js: 'Sonar way' (88 rules)
[Debug - 14:32:31.901]   * jsp: 'Sonar way' (0 rules)
[Debug - 14:32:31.902]   * php: 'Sonar way' (87 rules)
[Debug - 14:32:31.903]   * py: 'Sonar way' (31 rules)
[Debug - 14:32:31.904]   * ts: 'Sonar way' (59 rules)
[Debug - 14:32:31.905]   * web: 'Sonar way' (18 rules)
[Debug - 14:32:32.572] 'JavaSquidSensor' skipped because there is no related file in current project
[Debug - 14:32:32.572] 'Python Squid Sensor' skipped because there is no related file in current project
[Debug - 14:32:32.573] Execute Sensor: JavaXmlSensor
[Debug - 14:32:32.575] Execute Sensor: HTML
[Debug - 14:32:32.585] 'PHP sensor' skipped because there is no related file in current project
[Debug - 14:32:32.585] 'Analyzer for "php.ini" files' skipped because there is no related file in current project
[Debug - 14:32:32.585] Execute Sensor: Contextual SonarTS
[Info  - 14:32:32.586] Started SonarTS Analysis
[Error - 14:32:32.646] No SourceFile found for file /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts with configuration /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/tsconfig.json
[Info  - 14:32:32.651] Finished SonarTS Analysis
[Debug - 14:32:32.651] 'SonarJS' skipped because there is no related file in current project
[Debug - 14:32:32.652] 'ESLint-based SonarJS' skipped because there is no related file in current project
[Info  - 14:32:32.662] Found 0 issue(s)
[Info  - 14:32:32.663] Analyzing file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts'...
[Debug - 14:32:32.664] Analysis triggered on 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts' with configuration: 
[
  projectKey: OC-CCXP-client
  baseDir: /Users/pete.burkindine/git/ccxp/ccxp-client
  extraProperties: {}
  inputFiles: [
    file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts (UTF-8) [ts]
  ]
]

[Debug - 14:32:32.669] Start analysis
[Info  - 14:32:32.674] Index files
[Debug - 14:32:32.674] Language of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts' is set to 'TypeScript'
[Info  - 14:32:32.675] 1 file indexed
[Debug - 14:32:32.677] Available languages:
[Debug - 14:32:32.677]   * Python => "py"
[Debug - 14:32:32.677]   * Java => "java"
[Debug - 14:32:32.677]   * HTML => "web"
[Debug - 14:32:32.677]   * JSP => "jsp"
[Debug - 14:32:32.677]   * PHP => "php"
[Debug - 14:32:32.677]   * TypeScript => "ts"
[Debug - 14:32:32.677]   * JavaScript => "js"
[Debug - 14:32:32.678] Quality profiles:
[Debug - 14:32:32.680]   * java: 'Sonar way' (351 rules)
[Debug - 14:32:32.682]   * js: 'Sonar way' (88 rules)
[Debug - 14:32:32.682]   * jsp: 'Sonar way' (0 rules)
[Debug - 14:32:32.683]   * php: 'Sonar way' (87 rules)
[Debug - 14:32:32.684]   * py: 'Sonar way' (31 rules)
[Debug - 14:32:32.685]   * ts: 'Sonar way' (59 rules)
[Debug - 14:32:32.686]   * web: 'Sonar way' (18 rules)
[Debug - 14:32:32.717] 'JavaSquidSensor' skipped because there is no related file in current project
[Debug - 14:32:32.717] 'Python Squid Sensor' skipped because there is no related file in current project
[Debug - 14:32:32.717] Execute Sensor: JavaXmlSensor
[Debug - 14:32:32.718] Execute Sensor: HTML
[Debug - 14:32:32.718] 'PHP sensor' skipped because there is no related file in current project
[Debug - 14:32:32.718] 'Analyzer for "php.ini" files' skipped because there is no related file in current project
[Debug - 14:32:32.718] Execute Sensor: Contextual SonarTS
[Info  - 14:32:32.719] Started SonarTS Analysis
[Error - 14:32:32.722] No SourceFile found for file /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/src/lib/components/results/resource-tray/resource-tray-physician/resource-tray-physician.component.ts with configuration /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/tsconfig.json
[Info  - 14:32:32.722] Finished SonarTS Analysis
[Debug - 14:32:32.722] 'SonarJS' skipped because there is no related file in current project
[Debug - 14:32:32.722] 'ESLint-based SonarJS' skipped because there is no related file in current project
[Info  - 14:32:32.726] Found 0 issue(s)

It may be helpful to understand the project is a nrwl/nx monorepo (like most enterprise Angular applications now), so the structure of the tsconfig files is hierarchical

The tsconfig file referenced in the output there, <>/libs/features/provider-search/tsconfig.json, looks like:

{
  "extends": "../../../tsconfig.base.json",
  "include": [],
  "files": [],
  "references": [
    {
      "path": "./tsconfig.lib.json"
    },
    {
      "path": "./tsconfig.spec.json"
    }
  ]
}

The extends there points to the “real, main, typical” tsconfig for the project

Hey @pburkindine, thank you for the details!

I forgot to mention that after the update of the plugins on the server, you have to run the “SonarLint: Update all bindings to SonarQube/SonarCloud” command in VSCode to force a synchronization of the local settings :sweat_smile: (I see in the log excerpt above that the old versions are still used).

Hi, @JBL_SonarSource,

Yeah, I’ve filed a ticket to get those plugins upgraded. I will check again after that process is completed and post results here.

Thanks,
Pete

1 Like

Hi, @JBL_SonarSource,

Our SonarQube team was able to update the TS and JS plugins this week, and I ran a new analysis, here is the output. It appears it’s skipping the file because it can’t associate it with a tsconfig.json

[Debug - 10:44:37.694] Queuing analysis of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts'
[Info  - 10:44:37.697] Analyzing file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts'...
[Debug - 10:44:37.697] Analysis triggered on 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts' with configuration: 
[
  projectKey: OC-CCXP-client
  baseDir: /Users/pete.burkindine/git/ccxp/ccxp-client
  extraProperties: {}
  inputFiles: [
    file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts (UTF-8) [ts]
  ]
]

[Debug - 10:44:37.698] Start analysis
[Info  - 10:44:37.700] Index files
[Debug - 10:44:37.701] Language of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts' is set to 'TypeScript'
[Info  - 10:44:37.701] 1 file indexed
[Debug - 10:44:37.701] Available languages:
[Debug - 10:44:37.701]   * Python => "py"
[Debug - 10:44:37.701]   * Java => "java"
[Debug - 10:44:37.701]   * HTML => "web"
[Debug - 10:44:37.701]   * JSP => "jsp"
[Debug - 10:44:37.701]   * PHP => "php"
[Debug - 10:44:37.701]   * JavaScript => "js"
[Debug - 10:44:37.701]   * TypeScript => "ts"
[Debug - 10:44:37.701] Quality profiles:
[Debug - 10:44:37.703]   * java: 'Sonar way' (351 rules)
[Debug - 10:44:37.704]   * js: 'Sonar way' (85 rules)
[Debug - 10:44:37.704]   * jsp: 'Sonar way' (0 rules)
[Debug - 10:44:37.704]   * php: 'Sonar way' (87 rules)
[Debug - 10:44:37.705]   * py: 'Sonar way' (31 rules)
[Debug - 10:44:37.705]   * ts: 'Sonar way' (66 rules)
[Debug - 10:44:37.706]   * web: 'Sonar way' (18 rules)
[Debug - 10:44:37.713] 'JavaSquidSensor' skipped because there is no related file in current project
[Debug - 10:44:37.713] 'Python Squid Sensor' skipped because there is no related file in current project
[Debug - 10:44:37.713] Execute Sensor: JavaXmlSensor
[Debug - 10:44:37.713] Execute Sensor: HTML
[Debug - 10:44:37.713] 'PHP sensor' skipped because there is no related file in current project
[Debug - 10:44:37.713] 'Analyzer for "php.ini" files' skipped because there is no related file in current project
[Debug - 10:44:37.713] Execute Sensor: SonarTS
[Info  - 10:44:37.713] Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or later. No TypeScript analysis is performed by SonarTS.
[Debug - 10:44:37.713] 'JavaScript analysis' skipped because there is no related file in current project
[Debug - 10:44:37.713] Execute Sensor: TypeScript analysis
[Debug - 10:44:37.716] SonarJS eslint-bridge server is up, no need to start.
[Info  - 10:44:39.013] Found 18 tsconfig.json file(s): [/Users/pete.burkindine/git/ccxp/ccxp-client/tools/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/maps/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/tealium/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/core/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-search/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-measures/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/resources/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-details/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-compare/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/inspections/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/features/provider-news-updates/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/ccxp-material/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/launch-darkly/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/shared/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/mymedicare/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/libs/new-relic/tsconfig.json, /Users/pete.burkindine/git/ccxp/ccxp-client/apps/ccxp-web/tsconfig.json]
[Debug - 10:44:39.076] /Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts matched NO_CONFIG
[Info  - 10:44:39.076] 1 source files to be analyzed
[Info  - 10:44:39.076] Skipping 1 files with no tsconfig.json
[Debug - 10:44:39.076] Skipped files: [uri=file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts]
[Info  - 10:44:39.076] 1/1 source files have been analyzed
[Info  - 10:44:39.078] Found 0 issue(s)

Here is the output from the binding action:

[Debug - 10:45:31.766] GET 404 https://sonarqube.backends.cms.gov/api/developers/search_events?projects=OC-CCXP-client&from=2021-01-13T10%3A45%3A31-0600 | response time=643ms
[Debug - 10:45:31.766] Failed to get notifications: 404, {"errors":[{"msg":"Unknown url : /api/developers/search_events"}]}
[Debug - 10:46:31.666] GET 404 https://sonarqube.backends.cms.gov/api/developers/search_events?projects=OC-CCXP-client&from=2021-01-13T10%3A46%3A31-0600 | response time=540ms
[Debug - 10:46:31.666] Failed to get notifications: 404, {"errors":[{"msg":"Unknown url : /api/developers/search_events"}]}
[Debug - 10:46:49.648] eslint-bridge server will shutdown
[Debug - 10:46:50.445] Create : /Users/pete.burkindine/.sonarlint/plugins
[Debug - 10:46:50.445] Plugin cache: /Users/pete.burkindine/.sonarlint/plugins
[Debug - 10:46:50.445] Create : /Users/pete.burkindine/.sonarlint/plugins/_tmp
[Debug - 10:46:50.915] GET 200 https://sonarqube.backends.cms.gov/api/system/status | response time=470ms
[Debug - 10:46:50.915] Downloaded server infos in 470ms
[Debug - 10:46:50.981] GET 200 https://sonarqube.backends.cms.gov/api/plugins/installed | response time=66ms
[Info  - 10:46:50.982] Downloaded plugin list in 67ms
[Debug - 10:46:51.063] GET 200 https://sonarqube.backends.cms.gov/api/settings/values.protobuf | response time=80ms
[Info  - 10:46:51.063] Downloaded settings in 80ms
[Debug - 10:46:51.064] Code analyzer 'scmgit' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'authgithub' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'jacoco' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'ldap' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'authsaml' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'csharp' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'cssfamily' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'flex' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'go' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'kotlin' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'ruby' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'sonarscala' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'vbnet' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'xml' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.064] Code analyzer 'scmsvn' is not compatible with SonarLint. Skip downloading it.
[Debug - 10:46:51.153] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=INFO&p=1&ps=500 | response time=88ms
[Debug - 10:46:51.300] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=MINOR&p=1&ps=500 | response time=146ms
[Debug - 10:46:51.700] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=MINOR&p=2&ps=500 | response time=134ms
[Debug - 10:46:51.866] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=MAJOR&p=1&ps=500 | response time=143ms
[Debug - 10:46:52.150] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=MAJOR&p=2&ps=500 | response time=138ms
[Debug - 10:46:52.359] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=MAJOR&p=3&ps=500 | response time=86ms
[Debug - 10:46:52.477] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=CRITICAL&p=1&ps=500 | response time=118ms
[Debug - 10:46:52.700] GET 200 https://sonarqube.backends.cms.gov/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&types=CODE_SMELL,BUG,VULNERABILITY&severities=BLOCKER&p=1&ps=500 | response time=125ms
[Debug - 10:46:52.825] GET 200 https://sonarqube.backends.cms.gov/api/qualityprofiles/search.protobuf | response time=93ms
[Debug - 10:46:52.825] Downloaded quality profiles in 93ms
[Debug - 10:46:52.907] GET 200 https://sonarqube.backends.cms.gov/api/components/search.protobuf?qualifiers=TRK&ps=500&p=1 | response time=82ms
[Debug - 10:46:52.907] Page downloaded in 82ms
[Debug - 10:46:52.915] Create : /Users/pete.burkindine/.sonarlint/plugins
[Debug - 10:46:52.915] Plugin cache: /Users/pete.burkindine/.sonarlint/plugins
[Debug - 10:46:52.915] Create : /Users/pete.burkindine/.sonarlint/plugins/_tmp
[Debug - 10:46:52.917] Load plugins
[Debug - 10:46:57.705] Load plugins (done) | time=4788ms
[Debug - 10:47:02.867] Plugins:
[Debug - 10:47:02.867]   * SonarPython 1.14.1.3143 (python)
[Debug - 10:47:02.867]   * SonarJava 5.13.1.18282 (java)
[Debug - 10:47:02.867]   * SonarHTML 3.1.0.1615 (web)
[Debug - 10:47:02.867]   * SonarPHP 3.2.0.4868 (php)
[Debug - 10:47:02.867]   * SonarTS 2.1.0.4359 (typescript)
[Debug - 10:47:02.867]   * SonarJS 6.2.2.13315 (javascript)
[Info  - 10:47:02.870] Using storage for server '<default>' (last update 1/14/21, 10:46 AM)
[Info  - 10:47:02.913] Local storage status for connection with id '<default>': org.sonarsource.sonarlint.core.container.model.DefaultGlobalStorageStatus@4690f63b
[Debug - 10:47:03.550] GET 200 https://sonarqube.backends.cms.gov/api/qualityprofiles/search.protobuf?project=OC-CCXP-client | response time=633ms
[Debug - 10:47:03.551] Downloaded project quality profiles in 634ms
[Debug - 10:47:03.659] GET 200 https://sonarqube.backends.cms.gov/api/settings/values.protobuf?component=OC-CCXP-client | response time=108ms
[Info  - 10:47:03.660] Downloaded settings in 109ms
[Debug - 10:47:03.750] GET 200 https://sonarqube.backends.cms.gov/api/components/tree.protobuf?qualifiers=BRC&component=OC-CCXP-client&ps=500&p=1 | response time=90ms
[Debug - 10:47:03.751] Page downloaded in 91ms
[Debug - 10:47:03.831] GET 200 https://sonarqube.backends.cms.gov/batch/issues?key=OC-CCXP-client | response time=76ms
[Debug - 10:47:03.831] Downloaded issues in 76ms
[Debug - 10:47:03.951] GET 200 https://sonarqube.backends.cms.gov/api/components/tree.protobuf?qualifiers=FIL,UTS&component=OC-CCXP-client&ps=500&p=1 | response time=120ms
[Debug - 10:47:04.218] Page downloaded in 387ms
[Debug - 10:47:04.322] GET 200 https://sonarqube.backends.cms.gov/api/components/tree.protobuf?qualifiers=FIL,UTS&component=OC-CCXP-client&ps=500&p=2 | response time=104ms
[Debug - 10:47:04.466] Page downloaded in 248ms
[Debug - 10:47:04.572] GET 200 https://sonarqube.backends.cms.gov/api/components/tree.protobuf?qualifiers=FIL,UTS&component=OC-CCXP-client&ps=500&p=3 | response time=106ms
[Debug - 10:47:04.769] Page downloaded in 303ms
[Debug - 10:47:04.870] GET 200 https://sonarqube.backends.cms.gov/api/components/tree.protobuf?qualifiers=FIL,UTS&component=OC-CCXP-client&ps=500&p=4 | response time=101ms
[Debug - 10:47:05.001] Page downloaded in 232ms
[Debug - 10:47:05.009] Queuing analysis of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts'
[Debug - 10:47:06.472] Resolved binding ProjectBinding[projectKey=OC-CCXP-client,sqPathPrefix=,idePathPrefix=] for folder /Users/pete.burkindine/git/ccxp/ccxp-client
[Info  - 10:47:06.475] Analyzing file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts'...
[Debug - 10:47:06.475] Analysis triggered on 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts' with configuration: 
[
  projectKey: OC-CCXP-client
  baseDir: /Users/pete.burkindine/git/ccxp/ccxp-client
  extraProperties: {}
  inputFiles: [
    file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts (UTF-8) [ts]
  ]
]

[Debug - 10:47:06.487] Start analysis
[Info  - 10:47:06.503] Index files
[Debug - 10:47:06.504] Language of file 'file:///Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts' is set to 'TypeScript'
[Info  - 10:47:06.504] 1 file indexed
[Debug - 10:47:06.518] Available languages:
[Debug - 10:47:06.518]   * Python => "py"
[Debug - 10:47:06.518]   * Java => "java"
[Debug - 10:47:06.518]   * HTML => "web"
[Debug - 10:47:06.518]   * JSP => "jsp"
[Debug - 10:47:06.518]   * PHP => "php"
[Debug - 10:47:06.518]   * JavaScript => "js"
[Debug - 10:47:06.518]   * TypeScript => "ts"
[Debug - 10:47:06.518] Quality profiles:
[Debug - 10:47:06.522]   * java: 'Sonar way' (351 rules)
[Debug - 10:47:06.525]   * js: 'Sonar way' (85 rules)
[Debug - 10:47:06.525]   * jsp: 'Sonar way' (0 rules)
[Debug - 10:47:06.527]   * php: 'Sonar way' (87 rules)
[Debug - 10:47:06.529]   * py: 'Sonar way' (31 rules)
[Debug - 10:47:06.531]   * ts: 'Sonar way' (66 rules)
[Debug - 10:47:06.533]   * web: 'Sonar way' (18 rules)
[Debug - 10:47:06.845] 'JavaSquidSensor' skipped because there is no related file in current project
[Debug - 10:47:06.845] 'Python Squid Sensor' skipped because there is no related file in current project
[Debug - 10:47:06.845] Execute Sensor: JavaXmlSensor
[Debug - 10:47:06.846] Execute Sensor: HTML
[Debug - 10:47:06.851] 'PHP sensor' skipped because there is no related file in current project
[Debug - 10:47:06.851] 'Analyzer for "php.ini" files' skipped because there is no related file in current project
[Debug - 10:47:06.851] Execute Sensor: SonarTS
[Info  - 10:47:06.851] Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or later. No TypeScript analysis is performed by SonarTS.
[Debug - 10:47:06.851] 'JavaScript analysis' skipped because there is no related file in current project
[Debug - 10:47:06.851] Execute Sensor: TypeScript analysis
[Debug - 10:47:06.851] Deploying bundle
[Debug - 10:47:06.851] Deploying eslint-bridge into /Users/pete.burkindine/.sonarlint/work/.sonartmp_13223011062918063388/eslint-bridge-bundle
[Debug - 10:47:08.825] Deploying bundle (done) | time=1974ms
[Debug - 10:47:08.825] Starting server
[Debug - 10:47:08.826] TypeScript location set via property sonar.typescript.internal.typescriptLocation=/Users/pete.burkindine/git/ccxp/ccxp-client/node_modules
[Info  - 10:47:08.826] Using TypeScript at: '/Users/pete.burkindine/git/ccxp/ccxp-client/node_modules'
[Info  - 10:47:08.826] Using Node.js executable /Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node from property sonar.nodejs.executable.
[Debug - 10:47:08.826] Checking Node.js version
[Debug - 10:47:08.826] Launching command /Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node -v
[Debug - 10:47:08.838] Using Node.js v12.18.3.
[Debug - 10:47:08.839] Starting Node.js process to start eslint-bridge server at port 57424
[Debug - 10:47:08.839] Launching command {NODE_PATH=/Users/pete.burkindine/git/ccxp/ccxp-client/node_modules} /Users/pete.burkindine/.nvm/versions/node/v12.18.3/bin/node /Users/pete.burkindine/.sonarlint/work/.sonartmp_13223011062918063388/eslint-bridge-bundle/package/bin/server 57424 127.0.0.1
[Debug - 10:47:17.709] starting eslint-bridge server at port 57424
[Debug - 10:47:17.835] eslint-bridge server is running at port 57424
[Debug - 10:47:17.842] Starting server (done) | time=9017ms

Hey @pburkindine, happy new year :tada:!

Thank you for coming back with these new log extracts.

Could you please confirm that:

  • The analysed file:

/Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/src/lib/components/oauth/oauth.component.ts

… should be matched by the config file at:

/Users/pete.burkindine/git/ccxp/ccxp-client/libs/auth/tsconfig.json

  • And this .../auth/tsconfig.json has contents similar to what you posted above(with the extends + references attributes)

This could help me create a minimal reproducer for this issue.