Skip to content

Commit

Permalink
Prefer source files from debug source path over search path
Browse files Browse the repository at this point in the history
  • Loading branch information
Cirras committed Jan 13, 2025
1 parent 278e7e7 commit 7c70fda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Prefer `Debugger_DebugSourcePath` over `DCC_UnitSearchPath` in the analysis search path.

## [1.12.2] - 2025-01-06

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ private void executeOnFiles(SensorContext sensorContext) {
List<Path> sourceFiles = inputFilesToPaths(inputFiles);
List<Path> referencedFiles = delphiProjectHelper.getReferencedFiles();
List<Path> searchPathDirectories = new ArrayList<>();
searchPathDirectories.addAll(delphiProjectHelper.getSearchDirectories());
searchPathDirectories.addAll(delphiProjectHelper.getDebugSourceDirectories());
searchPathDirectories.addAll(delphiProjectHelper.getSearchDirectories());
SearchPath searchPath = SearchPath.create(searchPathDirectories);

SymbolTable symbolTable =
Expand Down

0 comments on commit 7c70fda

Please sign in to comment.