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

error upon analyzing, cannot find Delphi sources (custom install path) #13

Closed georges-hatem closed 5 months ago

georges-hatem commented 5 months ago

Prerequisites

Delphi IDE version

11.3

DelphiLint version

1.0.0

SonarDelphi version

1.3

SonarQube version

No response

Issue description

An error was raised (au.com.integradev.delphi.symbol.SymbolTableBuilder$SymbolTableConstructionException: Path to Delphi standard library is invalid: C:\Program Files (x86)\Embarcadero\Studio\22.0\source

I have Delphi installed in a custom directory. How can I instruct DelphiLint where to find by Delphi sources folder? Shouldn't it be reading that from some BDS environment variable?

Steps to reproduce

install Delphi in a custom directory.

Minimal Delphi code exhibiting the issue

No response

Cirras commented 5 months ago

Hi @Khorkhe,

This issue has the same root cause as #10, and should be fixed as of #11. Please try the DelphiLint 1.0.1 release and let us know if that resolves the problem for your custom installation path.

georges-hatem commented 5 months ago

installed v1.0.1, resolved. thank you.