Skip to content

Add Export Lib To Files for library projects#31

Merged
gsokoll merged 2 commits into
mainfrom
backport/ws4-lib-export
Jun 12, 2026
Merged

Add Export Lib To Files for library projects#31
gsokoll merged 2 commits into
mainfrom
backport/ws4-lib-export

Conversation

@gsokoll

@gsokoll gsokoll commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Continuation of #28, which GitHub closed un-reopenably when its stacked base branch was deleted. Same head branch, rebased onto main; the diff is now just the feature (script, config.json entry, README section).

All description, credits (reimplemented from ipfedor/codescribe commit a90c84a, refs #24) and live-validation results are on #28: exact export tree confirmed on CODESYS SP11 for a library-style project with nested folders, and the __VisualizationStyle skip added after validation.

gsokoll added 2 commits June 12, 2026 17:47
Library projects keep POUs, DUTs, GVLs and folders directly under the
project root rather than under a Device, so the existing Export To Files
exports nothing for them. This adds a separate entry script that walks
the project root, skips the service manager objects, and writes the same
on-disk format without the device and application levels. Importing a
library export back is not yet supported.

Credit: reimplemented from ipfedor/codescribe commit a90c84a. Refs #24.
It is auto-created in every project, its GUID is unmapped, and native
export of it fails, so the UNKNOWN fallback printed a warning on every
run. Found during live validation on CODESYS SP11.
@gsokoll gsokoll force-pushed the backport/ws4-lib-export branch from 9e3feff to dc61190 Compare June 12, 2026 07:47
@gsokoll gsokoll merged commit 81608e0 into main Jun 12, 2026
2 checks passed
@gsokoll gsokoll deleted the backport/ws4-lib-export branch June 12, 2026 07:48
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.

1 participant