Skip to content

server: resolve Lazarus package links from config#156

Open
corpix wants to merge 2 commits into
genericptr:trunkfrom
corpix:feature/lazarus-package-links
Open

server: resolve Lazarus package links from config#156
corpix wants to merge 2 commits into
genericptr:trunkfrom
corpix:feature/lazarus-package-links

Conversation

@corpix

@corpix corpix commented Jun 26, 2026

Copy link
Copy Markdown

Hi. I've been struggling with navigation inside doublecmd sources, so I made some changes to support lazarus projects, here are quick summary:

Load Lazarus package links from packagefiles.xml and global link files when configuring project search paths. Prefering explicit config package links over discovered and global links.
Resolve package paths relative to their config or package location, and expand Lazarus/FPC/target/project macros while preserving unknown macros as-is.

Add LazConfig tests for package-link priority, config-file based packagefiles.xml discovery, and macro expansion. Register missing RemoveUnusedUnits files in the server package.

What do you think?

Load Lazarus package links from packagefiles.xml and global link files when
configuring project search paths. Prefering explicit config package links over
discovered and global links.
Resolve package paths relative to their config or package location,
and expand Lazarus/FPC/target/project macros while preserving unknown
macros as-is.

Add LazConfig tests for package-link priority, config-file based
packagefiles.xml discovery, and macro expansion. Register missing
RemoveUnusedUnits files in the server package.
@corpix corpix force-pushed the feature/lazarus-package-links branch from 5cfe323 to 131539d Compare June 26, 2026 14:56
@genericptr

Copy link
Copy Markdown
Owner

See what @mvancanneyt has to say as I don't use Lazarus myself.

- add system/user/project .pasls.cfg loading with project overrides
- save selected main program into repo .pasls.cfg
- infer compiler, target, FPC source dir, and main program where possible
- improve cross-platform FPC source path inference, including Lazarus-adjacent layouts
- configure workspace .lpk paths when no single main program is selected
- resolve package dependencies before applying workspace package paths
- add regression coverage for project config persistence and workspace package dependency paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants