Add Export Lib To Files for library projects#31
Merged
Conversation
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.
9e3feff to
dc61190
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.