integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
79 stars 9 forks source link

CPU usage when Delphi is idle #20

Closed JonRobertson closed 4 months ago

JonRobertson commented 5 months ago

Prerequisites

Delphi IDE version

Delphi 11 Version 28.0.48361.3236

DelphiLint version

1.0.1

SonarDelphi version

1.3.0

SonarQube version

No response

Issue description

The Delphi / RAD Studio IDE (BDS.exe) continually races one CPU even when the IDE is idle and no projects are open.

Steps to reproduce

With DelphiLint previously installed in Delphi 11, launch Delphi. Open Task Manager and monitor the CPU usage for BDS.exe.

My laptop has 12 logical processors. BDS.exe runs at a constant 8% when I am not doing anything in the IDE, or on the laptop. I have not even opened a project in Delphi.

In Delphi, select Component, Install Packages, and remove Delphi Lint. The CPU usage for BDS.exe immediately drops to 0% once Delphi Lint is removed.

Minimal Delphi code exhibiting the issue

No response

fourls commented 4 months ago

Hi @JonRobertson,

Thanks for raising this issue. I've reproduced and am investigating.