Skip to content

Fix inherited association selection and UTF-8 config loading - #48

Open
shirohacker wants to merge 2 commits into
mal-lang:mainfrom
shirohacker:main
Open

shirohacker wants to merge 2 commits into
mal-lang:mainfrom
shirohacker:main

Conversation

@shirohacker

@shirohacker shirohacker commented Sep 15, 2026 •

Copy link
Copy Markdown

Commit 1 — Read saved MAL language path as UTF-8 (1d08505)

MAL-GUI wrote config.ini as UTF-8 but read it using the platform default encoding. It now reads the file as UTF-8, so saved language paths containing non-ASCII characters load correctly.

Commit 2 — Fix association selection for inherited asset types (78dd477)

The connection dialog required an exact match with an association’s declared endpoint types. In vehicleLang, this prevented InfotainmentSystem and OperatingSystem from connecting through the machineExecution association inherited from Machine and VehicularApplication. The dialog now accepts child asset types in either direction and disables OK when no association is available. Regression tests cover both behaviors.

Use the MAL Toolbox subtype check to include child assets in association choices. Prevent accepting an empty choice and cover inherited endpoints in both directions with pytest.

This branch has not been deployed

No deployments
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