SonarQube Cloud - Linter has stopped being able to parse files, no issues detected

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps

Our pipelines are no longer able to parse any JavaScript files in our repository, leading to no issues being raised on scans. The errors seemed to have started this morning.

The build is running on Azure hosted agents, these haven’t changed image, they are running on Windows 2022 Agent, Current image version: ‘20250330.1.0’

There has been a different in SonarQube Cloud version though, previously it was working on Server version: 8.0.0.61408 it is now failing on Server version: 8.0.0.61444.

Before it would create udg files for each file in the project, for example

22:08:17.119 INFO  Written udg to file:  D:\a\1\s\.scannerwork\architecture\js\.......AccountIntegrationsEdit_js.udg
22:08:17.380 INFO  Written udg to file:  D:\a\1\s\.scannerwork\architecture\js\.......providers_edit_index_js.udg
22:08:17.477 INFO  Written udg to file:  D:\a\1\s\.scannerwork\architecture\js\.......PageRestricted_js.udg

Now it cannot create any udg files, instead we get the following error for each file:

10:16:45.951 ERROR Occurred while linting D:/a/1/s/SelfAdmin.......AccountIntegrationsEdit.js:1
10:16:45.951 ERROR Rule: "sonarjs/sonar-architecture-ir"
10:16:45.952 ERROR     at Program (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules10808945670958171340\package\dist\rules.js:601:13795)
10:16:45.953 ERROR     at D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:883:17013
10:16:45.953 ERROR     at D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:806:25440
10:16:45.953 ERROR     at Array.forEach (<anonymous>)
10:16:45.954 ERROR     at Object.emit (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:806:25429)
10:16:45.954 ERROR     at tEr.applySelector (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:812:24960)
10:16:45.954 ERROR     at tEr.applySelectors (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:812:25257)
10:16:45.954 ERROR     at tEr.enterNode (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:812:25299)
10:16:45.954 ERROR     at UBa (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:883:17543)
10:16:45.955 ERROR     at #t (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:887:348)
10:16:45.950 ERROR TypeError: Cannot read properties of undefined (reading 'workDir')

Note: I have redacted some of the filename path to keep it short, the actual logs show the full paths.

The analysis still runs and it the gates pass with no new issues, but I have deliberately added issues and they are not being tracked.

i’m having a similar issue. Sonar is skipping 90% of my code base for no reason

21:45:01.050 ERROR Rule: "sonarjs/sonar-architecture-ir"
21:45:01.050 ERROR     at Program (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules284170025589526860/package/dist/rules.js:601:13795)
21:45:01.050 ERROR     at /Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:883:17013
21:45:01.050 ERROR     at /Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:806:25440
21:45:01.050 ERROR     at Array.forEach (<anonymous>)
21:45:01.050 ERROR     at Object.emit (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:806:25429)
21:45:01.050 ERROR     at tEr.applySelector (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:24960)
21:45:01.050 ERROR     at tEr.applySelectors (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:25257)
21:45:01.050 ERROR     at tEr.enterNode (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:25299)
21:45:01.051 ERROR     at UBa (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:883:17543)
21:45:01.051 ERROR     at #t (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:887:348)
21:45:01.062 ERROR TypeError: Cannot read properties of undefined (reading 'workDir')
21:45:01.062 ERROR Occurred while linting /Users/user/dev/work/ui-creatives/src/app/shared/modules/import-creatives/interfaces/naming-convnetions/naming-conventions.interface.ts:1
21:45:01.062 ERROR Rule: "sonarjs/sonar-architecture-ir"
21:45:01.062 ERROR     at Program (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules284170025589526860/package/dist/rules.js:601:13795)
21:45:01.062 ERROR     at /Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:883:17013
21:45:01.062 ERROR     at /Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:806:25440
21:45:01.062 ERROR     at Array.forEach (<anonymous>)
21:45:01.062 ERROR     at Object.emit (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:806:25429)
21:45:01.062 ERROR     at tEr.applySelector (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:24960)
21:45:01.062 ERROR     at tEr.applySelectors (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:25257)
21:45:01.063 ERROR     at tEr.enterNode (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:812:25299)
21:45:01.063 ERROR     at UBa (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:883:17543)
21:45:01.063 ERROR     at #t (/Users/user/dev/work/ui-creatives/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs:887:348)
21:45:01.072 ERROR TypeError: Cannot read properties of undefined (reading 'workDir')

how can i find and remove the rule from my quality profile. When i search for architecture in the sonar js profile nothing comes up

Is anyone able to advise on this please? We currently have no analysis on one of our major projects. Only CSS files are being scanned, not our JS files

Hello Peter,
The issue comes from the latest deployment of the JS analyzer, which should have been rolled back today.
Is your analysis still failing?

@ilia is it safe to assume that, after having been announced as part of 2025.2, and then announced as only available in SonarCloud, that finally the JavaScript and Typescript architecture rules are not available anywhere?

For reference:

@Philippe_Formulain

Due to the rollback, they are no longer in the built-in Quality Profile. However, the rules are still deployed on SonarQube Cloud and can be added to nbuilt in Quality Profiles.

With that said, activating them may lead you to face the issue reported in this thread, so I might leave them alone until we come back confirming a fix.

Thank you for the clarification Colin. :folded_hands:

Just got a little more info – reactivating them should not lead you to face the issue in this thread. I wasn’t sure before and erred on the side of caution. :smiley:

1 Like

Hello,

I can confirm that the rollback has allowed our analysis to start working again, thank you.

However we don’t use the built in profiles, we have our own rulesets defined, so not sure why rules not in our profile would be causing it to break for us?

@pconnor

It is likely that the part of the code that fails is always executed, regardless of the quality profile.

I found a comment on the following PR that seems related to this:

we need UDG data even if all rules are disabled

I suspect that the failing sonarjs/sonar-architecture-ir is not an actual rule, but is the thing that generates the “UDG data”.

Which by the way would mean that, regardless of the quality profile, the analysis will be slowed down by this “UDG data” generation. If what I suspect is correct, it may add sensible CPU and memory overheads when analysing big codebases.

I have inspected the pipeline builds closer this morning and it looks like there are actually still some issues, but the majority of files are now scanning.

We are still getting the following error on one of our files

##[error]07:49:38.248 ERROR Error: Error while loading rule 'sonarjs/sonar-architecture-ir': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.
07:49:38.249 ERROR Parser: @babel/eslint-parser
07:49:38.248 ERROR Error: Error while loading rule 'sonarjs/sonar-architecture-ir': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.
07:49:38.249 ERROR Parser: @babel/eslint-parser
##[error]07:49:38.249 ERROR Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.
07:49:38.249 ERROR Occurred while linting D:/a/1/s/SelfAdmin.......LicenceMap.js
07:49:38.249 ERROR     at ust (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:2:34090)
07:49:38.249 ERROR     at Object.Bur (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:2:33882)
07:49:38.249 ERROR Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.
07:49:38.249 ERROR Occurred while linting D:/a/1/s/SelfAdmin......LicenceMap.js
07:49:38.249 ERROR     at ust (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:2:34090)
07:49:38.249 ERROR     at Object.Bur (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:2:33882)
##[error]07:49:38.250 ERROR     at Object.create (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:601:13507)
07:49:38.250 ERROR     at NWa (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:15619)
07:49:38.251 ERROR     at D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:16894
07:49:38.250 ERROR     at Object.create (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\custom-rules8841802936905604144\package\dist\rules.js:601:13507)
07:49:38.250 ERROR     at NWa (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:15619)
07:49:38.251 ERROR     at D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:16894
##[error]07:49:38.251 ERROR     at Array.forEach (<anonymous>)
07:49:38.251 ERROR     at Array.forEach (<anonymous>)
##[error]07:49:38.252 ERROR     at FWa (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:15941)
07:49:38.252 ERROR     at #t (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:898:348)
07:49:38.253 ERROR     at Dbr._verifyWithFlatConfigArrayAndWithoutProcessors (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:900:569)
07:49:38.255 ERROR     at Dbr._verifyWithFlatConfigArray (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:900:1659)
07:49:38.252 ERROR     at FWa (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:894:15941)
07:49:38.252 ERROR     at #t (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:898:348)
07:49:38.253 ERROR     at Dbr._verifyWithFlatConfigArrayAndWithoutProcessors (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:900:569)
07:49:38.255 ERROR     at Dbr._verifyWithFlatConfigArray (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:900:1659)
##[error]07:49:38.257 ERROR     at Dbr.verify (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:896:781)
07:49:38.264 ERROR     at aOt.lint (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:41200)
07:49:38.257 ERROR     at Dbr.verify (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:896:781)
07:49:38.264 ERROR     at aOt.lint (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:41200)
##[error]07:49:38.270 ERROR     at eNf (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:66355)
07:49:38.270 ERROR     at PJe (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:66162)
07:49:38.270 ERROR     at Kqt (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:73863)
07:49:38.270 ERROR     at async MessagePort.<anonymous> (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:78265)
07:49:38.270 ERROR     at eNf (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:66355)
07:49:38.270 ERROR     at PJe (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:66162)
07:49:38.270 ERROR     at Kqt (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:73863)
07:49:38.270 ERROR     at async MessagePort.<anonymous> (D:\a\1\s\.scannerwork\.sonartmp\bridge-bundle\package\bin\server.cjs:2115:78265)

Hello Peter,

Thank you for the feedback. Would it be possible to share the file that fails the analysis?
It can be done via a private message if needed.

@ilia I have PM’ed you the file

1 Like

Hello,

I would like to thank you for your patience.

Here is a summary of what happened:

  1. We released the architecture rules on SQC, but they were not part of the default quality profile
  2. Attempting to fix this, we released the latest JS/TS analyzer too soon, which made the JS/TS analysis fail
  3. We rolled it back
  4. We released the JS/TS in sync with the latest architecture analyzer, so you should now see the architecture rules part of the default profile
1 Like