.

Release Notes: CODESYS File-Based Storage 1.1.0.0

Key Issue Type Summary Resolution Note
FBSTRGE-565 Bug

Project no longer opens after a folder rename: "An item with the same key has already been added"

Fixed [[GENERAL]]
Duplicat object guids on folders will be reported and replaced by unique one.
FBSTRGE-564 Improvement

[Dev] Fast reload of FBS project after Git branch change Part 4

Fixed
FBSTRGE-557 Bug

File Based Storage: Linebreaks and tabs are lost for specific multiline-string properties

Fixed
FBSTRGE-554 Bug

FBS "Save Project as": after saving under a new folder, auxiliary files keep going to the old folder

Fixed
FBSTRGE-552 Improvement

[Dev] Fast reload of FBS project after Git branch change Part 3

Fixed
FBSTRGE-551 Bug

File Based Storage: Enabling "Generate Project Information POUs" leads to error on open project

Duplicate
FBSTRGE-549 Bug

File-based Storage: Precompile cache discarded on project load

Fixed
FBSTRGE-546 Improvement

Folder documentation for C4

Fixed [[GENERAL]]
The documentation of a folder is now stored as a plain text file, _.Folder_Doc.txt, inside the folder. Until now it was embedded as encoded XML in .folder_meta.json, where it could neither be read nor compared in Git. The file is UTF-8 with LF line endings and is visible on purpose, so that CODESYS 4 shows it as well. A folder without documentation has no such file.

The file belongs to its folder: renaming, moving or deleting the folder takes it along, and changes made to it outside CODESYS are detected like any other external change. The leading "__" is intentional: no object name can produce it, so the file can never collide with an object.

If the file cannot be read, the problem is reported, the project still loads, and the file is left untouched on disk. Git conflict markers in the file are reported as a warning and kept in the text, so nothing is lost.

Existing projects
Existing file-based projects load unchanged and keep the documentation in .folder_meta.json until you accept the format migration offered when the project is opened. Converted V3 projects and new folders use the new format directly.
FBSTRGE-545 Improvement

Switch external files to C4 format

Fixed [[GENERAL]]
File-based projects now store external file objects as the file itself plus the readable file extfile.json with the properties of the object. An embedded file is stored as the content file with extfile.json in its '^' folder, a link as <name>.<extension>.extfile.json without content.

[[COMPATIBILITY_INFORMATION]]
If migrated, the new format cannot be read with File-Based Storage 1.0.0.0 and older versions.
FBSTRGE-544 Improvement

Delete auxiliaries during resync from storage

Fixed [[GENERAL]]
IVersionControlAccessService3 has two new overloads with a "deleteAuxiliaries" parameter:
- int ForceResyncFromStorage(int projectHandle, VersionUpdateOptions updateOptions, bool deleteAuxiliaries)
- ResyncResult ResyncFromStorage(int projectHandle, VersionUpdateOptions updateOptions, bool deleteAuxiliaries)

If "deleteAuxiliaries" is true, the auxiliaries folder of the project (.auxiliaries) is deleted after the project has been closed, and the project is reopened without them.

Behavior:
- The auxiliaries are deleted only if the project is actually closed and reopened. If nothing changed on disk, or if the changes are loaded into the open project, the auxiliaries are kept.
- Redirected auxiliaries, such as the profile information, are not deleted.
- The deletion is best effort. If it fails, the project is reopened with its existing auxiliaries.
- The existing overloads behave as before and do not delete auxiliaries.
FBSTRGE-539 Bug

When converting .library to .fbslib, END_PROPERTY is added to Text

Duplicate [[GENERAL]]
Duplicates FBSTRGE-520.
FBSTRGE-538 Bug

FBSTRGE: Causing exception during xml-import of Visualization

Fixed [[GENERAL]]
Fixed a NullReferenceException when importing objects from an XML file into a File-Based Storage project.
FBSTRGE-537 Bug

Editing a not yet migrated .xml.v3 object with a codec-backed implementation writes the native format into the .xml.v3 file

Fixed [[GENERAL]]
An IEC object still stored as .xml.v3 was saved in the native format into the .xml.v3 file on the first change after its language codec had been installed, and became an unknown object on the next load. Such objects now stay in the V3 XML format until they are migrated with Migrate Objects.
FBSTRGE-536 Improvement

[Dev] Fast reload of FBS project after Git branch change Part 2

Fixed
FBSTRGE-529 Bug

Object migration fails for any object that has child objects

Fixed
FBSTRGE-528 Improvement

[Dev] Add property to IV3Meta which indicates if its property ObjectGuid was generated or not

Fixed
FBSTRGE-527 Improvement

API to force always writing meta header

Fixed [[GENERAL]]
The new IMetaPartActivator interface can be implemented to enforce always writing the meta part.
FBSTRGE-524 Bug

SAN is not working with FBS project

Fixed
FBSTRGE-523 Bug

Loading GVL with NAMESPACE and without explicit 'allow_unqualified_access' should add attributes

Fixed [[GENERAL]]
GVLs with a NAMESPACE now stay qualified-only after loading and saving. Before, saving made their variables accessible without the namespace prefix.
FBSTRGE-520 Bug

Getter of property is not converted correctly

Fixed
FBSTRGE-519 Bug

Exception trying to save project as .project

Fixed
FBSTRGE-518 Bug

EndKeyword detection is inaccurate

Fixed [[GENERAL]]
Fix a serialization bug where FBs got extended with FN keyword
FBSTRGE-517 Bug

Ending keyword END_METHOD not added for interface methods

Fixed [[GENERAL]]
Methods added to an interface are now saved with the closing END_METHOD keyword in the file-based project. Before, it was missing from the interface method's file.
FBSTRGE-516 Improvement

Support AbstractPOUMethodObject

Fixed [[GENERAL]]
Abstract methods are now saved as .meth.st after a successful migration
FBSTRGE-514 Improvement

Bring together internal and interface methods for uri creation

Fixed [[GENERAL]]
FileSystemExtensions is now the single implementation for URI creation. New public members: CreateNormalizedUri(string, UriKind, bool), CreateNormalizedUri(Uri, string), Combine(Uri, string), IsUncPath(string). CreateNormalizedUri(string) now also accepts UNC paths with forward slashes ("//server/share/...") instead of throwing a UriFormatException.
FBSTRGE-513 Improvement

[Dev] Fast reload of FBS project after Git branch change Part 1

Fixed
FBSTRGE-512 Bug

Changing Project Information Checkboxes leads to error messages

Fixed [[GENERAL]]
"Automatically generate 'Library Information POUs'" can now be disabled
FBSTRGE-510 Improvement

Let object mappings and language codecs serialize their own IObjectProperty instead of the generic FBS meta serialization

Fixed [[GENERAL]]
Add-ons can now choose how their own object properties are stored in the FBS format. Until now, every property ended up in the generic v3Meta.properties block. Now a property can be stored in a dedicated, readable place: in the object file of an object mapping, or in the body of a language codec. New interface IObjectPropertySerializationOwner: an object mapping lists the type GUIDs of the properties it stores itself (OwnedObjectPropertyTypeGuids). On load, the mapping passes these properties back through the existing properties argument of CreateV3Meta.
New interface IIecImplementationLanguageCodec2: a language codec writes the properties it owns into the implementation body (WriteBody(impl, ownedProperties)) and reads them back on load (ReadOwnedProperties(body)).

Behavior
- Owned properties are no longer written to the generic properties block.
- If an older file still has an owned proper entry is ignored on load. It disappears thenext time the object is saved.
- If two add-ons claim the same property, orwn, FBS shows one warning in the File-BasedStorage message category.
- Projects without add-ons that own propertiisk format stays unchanged for them.
FBSTRGE-508 Improvement

Extension mapping table for project inspection

Fixed [[GENERAL]]
Support Ladder, CFC and Visualization during project inspection of a CODESYS File-Based Storage project
FBSTRGE-503 Improvement

Support web help for script drivers

Fixed [[GENERAL]]
Scripting documentation has been improved.
FBSTRGE-493 Bug

FileBasedStorage - Creating a FBS project on a network share mapped network drive letter does fail

Fixed [[GENERAL]]
File-based projects on a network share can now be opened and created
via their UNC path (\\server\share\...), not only through a mapped drive letter.
FBSTRGE-492 Improvement

Remove obsolete serializer classes, interfaces and tests

Fixed [[GENERAL]]
Remove old serializers
FBSTRGE-460 Bug

[Bug] AutoSave (V3 Option) does saving of the FBS project even if the project is read-only

Fixed [[GENERAL]]
Auto save and instant save no longer write a read-only file-based project. Projects that open read-only or incomplete (e.g. because an object could not be loaded) are no longer modified on disk. Use “Save As” to save such a project to a new location.
FBSTRGE-447 Epic

Robust File-based Storage for Git 2.0 & AI-assisted workflows

Fixed
FBSTRGE-45 Improvement

Update project after external modification

Fixed [[GENERAL]]
while a file-based project is open, CODESYS now watches its project folder and notices when something
other than the IDE writes into it — a git checkout or git pull, a merge tool, a script, an AI assistant,
a text editor. The changes are reported in the message view and in the status bar, and CODESYS offers to
load them. Until now they went unnoticed and were silently overwritten by the next save.

How the changes are loaded depends on what changed. A set consisting only of modified objects that are
stored as IEC text — POUs, methods, actions and transitions in ST, and interfaces, GVLs, structures,
enumerations, unions, aliases and properties — is loaded into the open project, so that open editors
stay open and an online connection survives. Everything else reopens the project: added, deleted, moved
and renamed objects, objects in a graphical language, devices, the library manager, project information
and project settings.

The dialog states which of the two will happen before you confirm, and warns about unsaved changes when
the project will be reopened. In both cases the undo history is discarded — the changes were not made by
you, so undoing them would restore a state that contradicts the files on disk.

If the project folder itself disappears or is renamed while the project is open — a branch that does not
contain it, a git reset --hard from somewhere else — the open project is the only remaining copy of the
data. CODESYS then asks what to do and offers to write the complete project to a folder of your choice.

Detection requires a valid license. Without one the feature stays inert and the two commands below are
disabled.


What you can set

Under Tools ▸ Options ▸ File-Based Storage ▸ External Changes, the setting "When the project files
change outside CODESYS" offers three values:

- "Do not detect the changes" — nothing is watched at all.
- "Report the changes in the message view" — message and status field, but no dialog.
- "Report the changes and ask what to do" — additionally the dialog. This is the default.

The setting applies immediately and to every project; it is not stored per project.

Two commands come with the feature. They are not part of the default menu layout, so add them through
the menu and toolbar customization first. "Check for External Changes" checks on demand, which is also
the way to work when monitoring is unavailable — on a network share that delivers no file-system events,
for example. "Show External Changes" opens the dialog for changes that have already been reported.

The status field "Project changed outside CODESYS" appears while the project and the files on disk
differ. Double-clicking it opens the dialog as well, whatever the setting says. Messages appear in the
message view under the category "External Changes".