If you try to manually create a YarnProjectResource, Godot will crash:
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.6.1.stable.official (14d19694e0c88a3f9e82d899a0400f27a24c176e)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x3fdf0) [0x7f664a9eadf0] (??:0)
[2] godot() [0x45ba490] (??:0)
[3] godot() [0x45ba4ad] (??:0)
[4] godot() [0xaf1829] (??:0)
[5] godot() [0x99321e] (??:0)
[6] godot() [0x4721ff5] (??:0)
[7] godot() [0x458797b] (??:0)
[8] godot() [0xafcbaa] (??:0)
[9] godot() [0x99321e] (??:0)
[10] godot() [0x1c2c0d8] (??:0)
[11] godot() [0x1c72dbf] (??:0)
[12] godot() [0x1c79fe6] (??:0)
[13] godot() [0x1ce87d3] (??:0)
[14] godot() [0x1c9cb83] (??:0)
[15] godot() [0x4852694] (??:0)
[16] godot() [0x1d0892a] (??:0)
[17] godot() [0x4852694] (??:0)
[18] godot() [0x293f188] (??:0)
[19] godot() [0x293fc0a] (??:0)
[20] godot() [0x28e42c8] (??:0)
[21] godot() [0x290399a] (??:0)
[22] godot() [0x290ca4d] (??:0)
[23] godot() [0x2929a41] (??:0)
[24] godot() [0x4f7abdb] (??:0)
[25] godot() [0x50ffd8] (??:0)
[26] godot() [0x44cb6cb] (??:0)
[27] godot() [0x44cc53f] (??:0)
[28] godot() [0x51e032] (??:0)
[29] godot() [0x432180] (??:0)
[30] /lib/x86_64-linux-gnu/libc.so.6(+0x29ca8) [0x7f664a9d4ca8] (??:0)
[31] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f664a9d4d65] (??:0)
[32] godot() [0x48ad7a] (??:0)
-- END OF C++ BACKTRACE --
================================================================
GDScript backtrace (most recent call first):
[0] _add_statistics (res://addons/yarn_spinner/editor/yarn_project_inspector_plugin.gd:133)
[1] _parse_begin (res://addons/yarn_spinner/editor/yarn_project_inspector_plugin.gd:65)
-- END OF GDSCRIPT BACKTRACE --
================================================================
Aborted (core dumped)
After trying to figure out the crash (yarn_project_inspector_plugin.gd expects the project to exist), I took a look at https://docs.yarnspinner.dev/yarn-spinner-for-godot/godot-gdscript and figured out that I needed to create the .yarnproject using the VSCode Yarn Spinner extension, then from YarnDialogRunner you can manually load the .yarnproject and it will work as expected.
If you try to manually create a
YarnProjectResource, Godot will crash:After trying to figure out the crash (
yarn_project_inspector_plugin.gdexpects the project to exist), I took a look at https://docs.yarnspinner.dev/yarn-spinner-for-godot/godot-gdscript and figured out that I needed to create the.yarnprojectusing the VSCode Yarn Spinner extension, then fromYarnDialogRunneryou can manually load the.yarnprojectand it will work as expected.