Something fishy is going on with Sonar Cloud again

  • ALM used: GitHub
  • Languages of the repository: PHP, JS, CSS
  • Error observed:
  • SonarCloud suddenly stopped scanning my local code when using VS Code and SonarCloud Integration
  • Investigating I enabled verbose logs, and saved a file: SonarCloud suddenly scanned and threw a few stupid errors (that I need to follow naming conventions which I have disabled long time ago in my custom profile)
  • Trying to save another file, it did not scan it
  • Going back to the previous file, resaving made the errors disappear: SonarCloud again stopped scanning
  • Disabled the verbose logs, re-enabled them, disconnected the project entirely and re-connected it, which says that it was successfully connected… and nothing: Does not scan anymore on save.

This is mildly infuriating.
Nothing whatsoever has changed and my recent key usage indicates “less than one hour ago”, proving that it did indeed scan and work just fine, until at some nice moment in time it decided to stop “working”

What is happening?

UPDATE:
Verbose Log output

[Debug - 14:23:44.763] GET 200 https://sonarcloud.io/api/developers/search_events?projects=PROJECT&from=2023-10-08T14%3A22%3A45%2B0700 | response time=387ms
[Debug - 14:23:44.763] Storing last event polling in /path/to/.sonarlint/storage/54756b75546f695750/projects/54756b75546f695f6265747465722d77702d706c7567696e2d626f696c6572706c617465/last_event_polling.pb
[Trace - 14:23:46.033] Pinging the server
[Trace - 14:23:49.471] Pinging the server
[Trace - 14:23:51.033] Pinging the server
[Trace - 14:23:54.468] Pinging the server
[Trace - 14:23:56.034] Pinging the server
[Trace - 14:23:59.470] Pinging the server
[Trace - 14:24:01.034] Pinging the server
[Trace - 14:24:04.468] Pinging the server
[Trace - 14:24:06.032] Pinging the server
[Trace - 14:24:09.469] Pinging the server
[Trace - 14:24:11.034] Pinging the server
[Trace - 14:24:14.468] Pinging the server
[Trace - 14:24:16.034] Pinging the server

Yet, nothing shown in the VS Editor!

Further Update:

[Trace - 14:27:51.060] Pinging the server
[Debug - 14:27:53.105] Queuing analysis of file "file:///path/to/DEV/GitHub/theboilerplate/src/src/admin/class-admin-notifications.php" (version 155)
[Debug - 14:27:53.106] Server excluded sources: 
[Debug - 14:27:53.106]   **/build-wrapper-dump.json
[Info  - 14:27:53.106] Analyzing file "file:///path/to/DEV/GitHub/theboilerplate/src/src/admin/class-admin-notifications.php"...
[Debug - 14:27:53.106] Analysis triggered with configuration:
[
  projectKey: project_theboilerplate
  baseDir: /path/to/DEV/GitHub/theboilerplate
  extraProperties: {sonar.cfamily.compile-commands=}
  moduleKey: file:///path/to/DEV/GitHub/theboilerplate
  inputFiles: [
    file:///path/to/DEV/GitHub/theboilerplate/src/src/admin/class-admin-notifications.php (UTF-8) [php]
  ]
]

[Debug - 14:27:53.108]   * kubernetes: 7 active rules
[Debug - 14:27:53.108]   * cpp: 436 active rules
[Debug - 14:27:53.108] Rule cpp:S5527 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109] Rule cpp:S4830 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109]   * css: 23 active rules
[Debug - 14:27:53.109]   * c: 210 active rules
[Debug - 14:27:53.109] Rule c:S4830 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109] Rule c:S5527 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109]   * go: 25 active rules
[Debug - 14:27:53.109]   * js: 279 active rules
[Debug - 14:27:53.109] Rule jssecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109] Rule jssecurity:S5147 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.109] Rule jssecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S6105 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S6350 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S5696 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule jssecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule javascript:S6770 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule javascript:S6772 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.110] Rule javascript:S6774 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6775 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6767 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6761 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6763 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule jssecurity:S6096 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6757 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule jssecurity:S5883 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6750 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6754 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6746 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6747 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6748 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule javascript:S6749 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.111] Rule jssecurity:S6287 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112]   * py: 235 active rules
[Debug - 14:27:53.112] Rule pythonsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonbugs:S5633 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S5496 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonbugs:S2259 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonbugs:S2583 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.112] Rule pythonbugs:S2589 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonbugs:S3518 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonbugs:S6465 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonbugs:S6464 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonbugs:S6466 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S6287 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonbugs:S6417 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S6350 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule pythonsecurity:S5147 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113]   * secrets: 60 active rules
[Debug - 14:27:53.113] Rule secrets:S6771 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6773 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6731 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6732 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6733 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6777 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6769 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6760 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6762 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6720 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6764 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6721 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6765 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6722 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6723 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6768 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6758 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6717 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6718 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6719 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6751 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6752 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6753 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6710 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6755 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6713 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6708 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6782 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6783 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6736 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule secrets:S6739 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113]   * apex: 41 active rules
[Debug - 14:27:53.113]   * docker: 32 active rules
[Debug - 14:27:53.113] Rule docker:S6570 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6573 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6595 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6574 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6596 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6597 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6579 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6581 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6584 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6586 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.113] Rule docker:S6587 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule docker:S6589 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114]   * plsql: 132 active rules
[Debug - 14:27:53.114]   * java: 508 active rules
[Debug - 14:27:53.114] Rule javasecurity:S6173 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6287 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6398 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6399 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6390 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6384 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S6350 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5147 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.114] Rule javasecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S6547 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S6549 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S5883 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S6417 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S6416 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S2190 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S6322 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S6320 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javabugs:S6466 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115] Rule javasecurity:S6096 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.115]   * cobol: 74 active rules
[Debug - 14:27:53.115]   * web: 28 active rules
[Debug - 14:27:53.116]   * xml: 24 active rules
[Debug - 14:27:53.116]   * php: 204 active rules
[Debug - 14:27:53.116] Rule phpsecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S2091 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S2078 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5335 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S6350 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5145 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5135 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S6173 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S5883 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116] Rule phpsecurity:S6287 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.116]   * terraform: 50 active rules
[Debug - 14:27:53.117]   * cloudformation: 27 active rules
[Debug - 14:27:53.118]   * ts: 278 active rules
[Debug - 14:27:53.118] Rule tssecurity:S5883 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S6287 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S2076 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S2631 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6749 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6747 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6746 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5696 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5334 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6754 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6750 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6759 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6756 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6757 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S6096 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6766 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6763 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6761 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6767 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6772 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule typescript:S6770 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S6350 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5144 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5146 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5147 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S6105 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S5131 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.118] Rule tssecurity:S2083 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.119] Rule tssecurity:S3649 is enabled on the server, but not available in SonarLint
[Debug - 14:27:53.119]   * yaml: 0 active rules
[Debug - 14:27:53.132] Start analysis
[Info  - 14:27:53.134] Index files
[Debug - 14:27:53.134] Language of file "file:///path/to/DEV/GitHub/theboilerplate/src/src/admin/class-admin-notifications.php" is set to "PHP"
[Info  - 14:27:53.134] 1 file indexed
[Debug - 14:27:53.146] Added 249 checks for language='ts', repository='typescript'
[Debug - 14:27:53.146] Added 250 checks for language='js', repository='javascript'
[Debug - 14:27:53.156] Setting filesystem encoding: UTF-8
[Debug - 14:27:53.159] 'JavaSensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'CobolSquidSensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'CFamily' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'Python Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'IPython Notebooks Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'Code Quality and Security for Go' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'IaC Terraform Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'IaC CloudFormation Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'IaC Kubernetes Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'IaC AzureResourceManager Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'Apex Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'JavaScript/TypeScript analysis' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'JavaScript inside YAML analysis' skipped because there is no related files in the current project
[Debug - 14:27:53.159] 'JavaScript inside HTML analysis' skipped because there is no related files in the current project
[Debug - 14:27:53.159] Execute Sensor: CSS Rules
[Debug - 14:27:53.159] Skipping the start of the bridge server as it failed to start during the first analysis or it's not answering anymore
[Debug - 14:27:53.159] No rules will be executed
[Info  - 14:27:53.159] Hit the cache for 0 out of 0
[Info  - 14:27:53.159] Miss the cache for 0 out of 0
[Debug - 14:27:53.159] 'PL/SQL Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] Execute Sensor: HTML
[Debug - 14:27:53.159] 'XML Sensor' skipped because there is no related files in the current project
[Debug - 14:27:53.159] Execute Sensor: PHP sensor
[Info  - 14:27:53.168] Starting PHP symbol indexer
[Info  - 14:27:53.168] 1 source file to be analyzed
[Info  - 14:27:53.171] 1/1 source file has been analyzed
[Info  - 14:27:53.172] Cached information of global symbols will be used for 0 out of 1 files. Global symbols were recomputed for the remaining files.
[Warn  - 14:27:53.172] No workDir in SonarLint
[Info  - 14:27:53.177] Starting PHP rules
[Info  - 14:27:53.187] 1 source file to be analyzed
[Debug - 14:27:53.203] Initializing metadata of file file:///path/to/DEV/GitHub/theboilerplate/src/src/admin/class-admin-notifications.php
[Info  - 14:27:53.206] 1/1 source file has been analyzed
[Info  - 14:27:53.206] The PHP analyzer was able to leverage cached data from previous analyses for 0 out of 1 files. These files were not parsed.
[Debug - 14:27:53.206] Execute Sensor: Analyzer for "php.ini" files
[Debug - 14:27:53.206] Execute Sensor: TextAndSecretsSensor
[Info  - 14:27:53.216] 1 source file to be analyzed
[Info  - 14:27:53.218] 1/1 source file has been analyzed
[Debug - 14:27:53.219] Execute Sensor: IaC Docker Sensor
[Info  - 14:27:53.220] 0 source files to be analyzed
[Info  - 14:27:53.222] 0/0 source files have been analyzed
[Error - 14:27:53.223] Analysis failed
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "startLine" is null
	at org.sonarsource.sonarlint.ls.connected.ServerIssueTrackerWrapper.lambda$toIssueTrackables$6(ServerIssueTrackerWrapper.java:198)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.sonarsource.sonarlint.ls.connected.ServerIssueTrackerWrapper.toIssueTrackables(ServerIssueTrackerWrapper.java:204)
	at org.sonarsource.sonarlint.ls.connected.ServerIssueTrackerWrapper.matchAndTrack(ServerIssueTrackerWrapper.java:100)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.lambda$analyzeConnected$30(AnalysisTaskExecutor.java:518)
	at java.base/java.util.HashMap.forEach(Unknown Source)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.lambda$analyzeConnected$31(AnalysisTaskExecutor.java:515)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyzeWithTiming(AnalysisTaskExecutor.java:548)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyzeConnected(AnalysisTaskExecutor.java:513)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.lambda$analyzeSingleModuleNonExcluded$20(AnalysisTaskExecutor.java:353)
	at java.base/java.util.Optional.map(Unknown Source)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyzeSingleModuleNonExcluded(AnalysisTaskExecutor.java:353)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyzeSingleModule(AnalysisTaskExecutor.java:308)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyze(AnalysisTaskExecutor.java:226)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyze(AnalysisTaskExecutor.java:191)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.lambda$analyze$2(AnalysisTaskExecutor.java:159)
	at java.base/java.util.HashMap.forEach(Unknown Source)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.analyze(AnalysisTaskExecutor.java:159)
	at org.sonarsource.sonarlint.ls.AnalysisTaskExecutor.run(AnalysisTaskExecutor.java:131)
	at org.sonarsource.sonarlint.ls.AnalysisScheduler.lambda$analyzeAsync$1(AnalysisScheduler.java:239)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)


how can this happen all of a sudden, within less than an hour from when it was working, until when it failed, without a single interaction on my end related to java
Why is trying to run JS scans when this is a PHP file
why is it trying to run python scans when this is a PHP File

And why, on earth, is it capable of failing analysis due to Java errors just “because”?
I really want to know, because this happened several months ago already and I had to (if I recall right) fully re-install java. Things do not just happen “because”.
They need causes. And I certainly did not mess with the java install while coding PHP in a 10 minutes timeframe

And Finally?
It works just fine when I open a file that is NOT in a workspace or bound to a SC Project (for example, from a remote random server.
SC IMMEDIATELY scans and tells errors. No JAVA problems.

This is really really frustrating :frowning:

Put is as you like, but as soon the specific WorkSpace folder is connected with Sonar cloud to the existing remote folder, it adds the json config in the vscode folder with thus:

{
	"sonarlint.connectedMode.project": {
		"connectionId": "ID",
		"projectKey": "Bla_Bla-boilerplate"
	}
}

It breaks thereafter immediately.

If I delete the json config the scanner works, but of course does not pull my custom profile set fr that project.
“Works” means it scans. It does not respect my custom profile which IS bound to that project in SonarCloud, whatsoever.
Rename class \"Admin_Notifications\" to match the regular expression ^[A-Z][a-zA-Z0-9]*$."

I changed that in my profile to:
format:^[A-Z][a-z0-9]*(_[A-Z][a-z0-9]*)*$

Clearly something is totally messed up here, and indicates an issue with SonarCloud and VSCode and nothing related to my project.
And since it appeared on the fly, the issue likely is remote (SonarCloud)

Please can you look into this?

“fixed” it by installing v3.20.2 (head to the vs code extensions list, and in the list find sonar cloud, click the cog, choose “install another version” and select v3.20.2

Frustrating something like that even gets live.

Hi,

I’m glad you worked through this, and I’d like to follow up.

The errors you were seeing were in-IDE with SonarLint?

And you’re in VSCode? If so, you probably want to upgrade to the latest version of SonarLint for VSCode, which is 3.22.0+74623.

 
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.