# Loading rules takes forever (~3.5 minutes)

**URL:** <https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678>\
**Category:** VS Code\
**Created:** [October 28, 2026, 9:31am UTC](https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678 "2026-10-28T09:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madeckel-philips](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/madeckel-philips/32/78042_2.png) [@madeckel-philips](https://community.sonarsource.com/u/madeckel-philips)\
**Post date:** [October 28, 2026, 9:31am UTC](https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678/1 "2026-10-28T09:31:46Z")

</div>

- **Operating system:** VSCode@Win11, connected to Linux remote Host via SSH
- **SonarQube for VS Code plugin version:** v6.2.0
- **Programming language you’re coding in:** C++
- **Is connected mode used:** NO

We experience an abnormally long loading time for the rules until the Sonar extension is ready and usable. Copilot is suspecting from the log output that the extension is scanning the whole repository including the git-ignored files (like build folder). This is suspected to be the reason for the long loading time.

> ### Here is a Claude analysis of the problem:
> 
> **Timeline from your log**

> | Time | Gap | What happened |
> | --- | --- | --- |
> | 54:28.0 → 54:31.9 | ~4 s | JVM starts, 13 analyzer plugins load, and the root scope becomes ready. |
> | 54:37 → 55:30 | 53 s | Mostly idle. The background telemetry task then extracts rule metadata in about 2 s. |
> | **54:31.9 → 58:03.4** | **≈3.5 min** | Nothing is logged by the server. |
> | 58:03.675 → 58:03.682 | **7 ms** | **All 92 `sonar-project.properties` files are processed.** |
> | 58:03.9 → 58:04.9 | ~1 s | Rules load and the first analysis runs: 865 JS/TS checks, Java checks, etc. |

> The properties files only provide binding hints for suggesting a Connected Mode project. Their size doesn’t affect startup.
> 
> ## **What causes the 3.5-minute gap**
> 
> In the [6.x extension source](https://github.com/SonarSource/sonarlint-vscode/blob/master/src/fileSystem/fileSystemServiceImpl.ts), the language server asks the extension to list the folder’s files. The [request handler](https://github.com/SonarSource/sonarlint-vscode/blob/master/src/extension.ts) waits for `crawlDirectory()` to finish before it responds, and folder setup continues only after that.
> 
> The crawl:
> 
> - reads one directory at a time;
> - skips only `.sonarlint`, `.git`, `node_modules`, and `.DS_Store`;
> - does not use `.gitignore`, `files.exclude`, or `sonarlint.analysisExcludesStandalone`.
> 
> In this checkout, that means about **25,200 directories and 101,600 files**. About **20,000 of those directories are in `build_native/`**. Git tracks only about **4,300 directories**.

---

<div class="post-metadata">

**Author:** ![sophio.japharidze](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sophio.japharidze/32/34536_2.png) [@sophio.japharidze](https://community.sonarsource.com/u/sophio.japharidze)\
**Post date:** [October 28, 2026, 9:48am UTC](https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678/2 "2026-10-28T09:48:01Z")

</div>

Hello @madeckel-philips , welcome to Sonar community! 👋

Thanks a lot for reporting the issue. Would you be able to provide [verbose logs](https://docs.sonarsource.com/sonarqube-for-vs-code/resources/help#the-sonarqube-flight-recorder) and [thread dumps](https://docs.sonarsource.com/sonarqube-for-vs-code/resources/help#the-sonarqube-flight-recorder) to help us investigate please ?

Did you experience the same on previous versions of the plugin?

Thanks in advance,  
Sophio

---

<div class="post-metadata">

**Author:** ![madeckel-philips](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/madeckel-philips/32/78042_2.png) [@madeckel-philips](https://community.sonarsource.com/u/madeckel-philips)\
**Post date:** [October 30, 2026, 11:09am UTC](https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678/3 "2026-10-30T11:09:22Z")

</div>

Hi Sophio! Thanks for the quick response. Please find attached the thread dumps as well as a verbose log output.

Thanks for your help.

[log.txt](https://community.sonarsource.com/uploads/short-url/b8LeOUHxvDjlQbxj6Yg52LasnxR.txt) (136.9 KB)

[sonarlint-recording-2026-10-30T10-05-25-205Z.zip](https://community.sonarsource.com/uploads/short-url/ajG2mDTU8lyC4UuUt1LH1yE9ynN.zip) (38.5 KB)

---

<div class="post-metadata">

**Author:** ![madeckel-philips](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/madeckel-philips/32/78042_2.png) [@madeckel-philips](https://community.sonarsource.com/u/madeckel-philips)\
**Post date:** [November 19, 2026, 9:25am UTC](https://community.sonarsource.com/t/loading-rules-takes-forever-3-5-minutes/190678/5 "2026-11-19T09:25:24Z")

</div>

Hello. Did somebody find time to look into this?

I found another issue with applying a fix for cpp:S3490:

Use “=default” instead of the default implementation of this special member functions. sonarqube(cpp:S3490)

`MyClass() : myMember_(0)`  
`{`  
`}`

becomes

`MyClass() : myMember_(0) = default;`

which is not proper syntax.
