Skip to content

fix: Resolve crash and project creation warnings#84

Merged
mclellac merged 1 commit intomainfrom
fix-node-editor-crash
Nov 5, 2025
Merged

fix: Resolve crash and project creation warnings#84
mclellac merged 1 commit intomainfrom
fix-node-editor-crash

Conversation

@mclellac
Copy link
Copy Markdown
Owner

@mclellac mclellac commented Nov 5, 2025

This commit delivers a consolidated fix for two critical issues:

  1. An AttributeError crash in the DynamicNodeEditor.
  2. "File not found" warnings during new project creation.

The AttributeError was caused by an incorrect attempt to call a non-existent .destroy() method on a widget. This has been corrected to use the proper GTK method, parent.remove(child), to safely remove the widget from its container, resolving the crash.

The "file not found" warnings were caused by an incomplete create_project method. This has been fixed by:

  • Adding all required headers to the CharacterData.csv file.
  • Ensuring that all necessary JSON data files are created with empty lists [] upon project initialization.
  • Adding checks to prevent overwriting existing files when a project template is used.

This comprehensive solution ensures the application is stable and that new projects are created with a complete and valid data structure.

This commit delivers a consolidated fix for two critical issues:
1.  An `AttributeError` crash in the `DynamicNodeEditor`.
2.  "File not found" warnings during new project creation.

The `AttributeError` was caused by an incorrect attempt to call a
non-existent `.destroy()` method on a widget. This has been corrected
to use the proper GTK method, `parent.remove(child)`, to safely remove
the widget from its container, resolving the crash.

The "file not found" warnings were caused by an incomplete
`create_project` method. This has been fixed by:
- Adding all required headers to the `CharacterData.csv` file.
- Ensuring that all necessary JSON data files are created with empty
  lists `[]` upon project initialization.
- Adding checks to prevent overwriting existing files when a project
  template is used.

This comprehensive solution ensures the application is stable and that
new projects are created with a complete and valid data structure.
@mclellac mclellac merged commit 60e1865 into main Nov 5, 2025
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