Skip to content

fix: Fix bug displaying "Unable to resolve <val>" on project load - #3540

Merged
morevnaproject merged 1 commit into
synfig:masterfrom
shreyaspranav:fix-saving-project-with-exported-values
Apr 27, 2025
Merged

morevnaproject merged 1 commit into
synfig:masterfrom
shreyaspranav:fix-saving-project-with-exported-values

Conversation

@shreyaspranav

@shreyaspranav shreyaspranav commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor

This PR fixes Unable to resolve <val> on project load by changing save file format to write the constant exported values first and then writing the non-constant ones.

By writing the constant value nodes first makes sure that the non-constant value nodes that depend on constant value nodes get resolved and hence the project file can be loaded without errors due to unresolved exported values.

Fix #3538

@github-actions

github-actions Bot commented Apr 1, 2025

Copy link
Copy Markdown

Thank you for contributing!
Below is how your contribution will appear in Synfig's release notes. Review it and improve your pull request's title and description so that your contribution is clear. You can add images, videos, and anything else you want. Have fun!

🐞 Bug Fixes

  • Fix bug displaying "Unable to resolve " on project load.

    This PR fixes Unable to resolve <val> on project load by changing save file format to write the constant exported values first and then writing the non-constant ones.

    This PR fixes #3538.

    By writing the constant value nodes first makes sure that the non-constant value nodes that depend on constant value nodes get resolved and hence the project file can be loaded without errors due to unresolved exported values.

This commit fixes "Unable to resolve <val>" on project load by changing save file format
to write the constant exported values first and then writing the non-constant ones.

This fixes synfig#3538.
@shreyaspranav
shreyaspranav force-pushed the fix-saving-project-with-exported-values branch from 0a48d0d to 30fcb6c Compare April 1, 2025 19:27
@shreyaspranav

shreyaspranav commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor Author

I apologize for the forced push, didn't realize that the commit message shouldn't end with a full stop.

Could you please re-run the commit style check?

@ice0 ice0 changed the title fix: Fix bug displaying "Unable to resolve <val>" on project load. fix: Fix bug displaying "Unable to resolve <val>" on project load Apr 6, 2025
@github-actions

github-actions Bot commented Apr 6, 2025

Copy link
Copy Markdown

Thank you for attempting to improve your contribution description!
Below is how your updated contribution will appear in Synfig's release notes. Review it and make further improvements until you're satisfied!

🐞 Bug Fixes

  • Fix bug displaying "Unable to resolve " on project load

    This PR fixes Unable to resolve <val> on project load by changing save file format to write the constant exported values first and then writing the non-constant ones.

    This PR fixes #3538.

    By writing the constant value nodes first makes sure that the non-constant value nodes that depend on constant value nodes get resolved and hence the project file can be loaded without errors due to unresolved exported values.

@Svarov-RZM

Copy link
Copy Markdown
Contributor

I ran some tests on this PR and everything seems fine.
Tested on particle template (it got some pretty complex conversions) along with my own work. Tried to rename exported nodes, unexport them, save/reload and no problems.

So this fixes the linked issue and doesn't seem to introduce new problems.

@shreyaspranav

Copy link
Copy Markdown
Contributor Author

So this fixes the linked issue and doesn't seem to introduce new problems.

@Svarov-RZM Thank you for your valuable time testing my PR.

@github-actions

github-actions Bot commented Apr 6, 2025

Copy link
Copy Markdown

Thank you for attempting to improve your contribution description!
Below is how your updated contribution will appear in Synfig's release notes. Review it and make further improvements until you're satisfied!

🐞 Bug Fixes

  • Fix bug displaying "Unable to resolve " on project load

    This PR fixes Unable to resolve <val> on project load by changing save file format to write the constant exported values first and then writing the non-constant ones.

    By writing the constant value nodes first makes sure that the non-constant value nodes that depend on constant value nodes get resolved and hence the project file can be loaded without errors due to unresolved exported values.

    Fix #3538

@morevnaproject
morevnaproject merged commit b561d9f into synfig:master Apr 27, 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.

Synfig may damage the project with exported values on save

4 participants