Skip to content

fix: recover Session file list from the tab layout XML (#694) - #695

Merged
Hirogen merged 1 commit into
Developmentfrom
fix/694-recover-session-filenames
Aug 25, 2026
Merged

fix: recover Session file list from the tab layout XML (#694)#695
Hirogen merged 1 commit into
Developmentfrom
fix/694-recover-session-filenames

Conversation

@Hirogen

@Hirogen Hirogen commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Fixes #694.

v1.42.0 saved Sessions (.lxj) with an empty FileNames list: the save path enumerated DockPanelSuite's DisplayingContents with LINQ, whose enumerator walks an empty backing list (only Count/indexer expose the displayed tabs). Loading such a Session failed with "None of the files in this session could be found". The enumeration itself was already fixed on Development (5c3d5c9), so newly saved Sessions are correct again.

This PR makes the Sessions written by v1.42.0 loadable: the DockPanel layout XML in them still names every log window (PersistString="LogWindow#"), so when a loaded Session has no file list, the paths are recovered from the layout before resolving and validating. Verified against the exact .lxj attached to the issue.

v1.42.0 saved Sessions (.lxj) with an empty FileNames list: the save path
enumerated DockPanelSuite's DisplayingContents with LINQ/foreach, whose
enumerator walks an empty backing list (only Count and the indexer expose
the displayed tabs). Loading such a Session failed with 'None of the files
in this session could be found'. The enumeration itself is already fixed
on Development (5c3d5c9), so newly saved Sessions are correct again.

This makes the Sessions written by v1.42.0 loadable: the DockPanel layout
XML in them still names every log window (PersistString="LogWindow#<path>"),
so when a loaded Session has no file list, recover the paths from the
layout before resolving and validating.
@Hirogen Hirogen linked an issue Aug 25, 2026 that may be closed by this pull request
Comment thread src/LogExpert.Persister.Tests/SessionFileResolverTests.cs Dismissed
@Hirogen
Hirogen merged commit c15d1a7 into Development Aug 25, 2026
3 checks passed
@Hirogen
Hirogen deleted the fix/694-recover-session-filenames branch August 25, 2026 08:56
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.

Error with session functionality

1 participant