YarnSpinnerTool / YarnSpinner

Yarn Spinner is a tool for building interactive dialogue in games!
https://yarnspinner.dev
MIT License
2.3k stars 201 forks source link

Trailing whitespace in ``title:`` leads to compiler error without information #350

Closed julhe closed 1 year ago

julhe commented 1 year ago

What is the current behavior?

If the title of a node has trailing whitespace, the compiler will give an error. There is no futher information on where or even what went wrong. This made finding the error really hard.

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

Create a new yarn file with the following content:

title: ThisTitleHasTrailingWhiteSpace 
---
===
  1. Try to run this file in VSCode (Ctrl + Shift + P -> Yarn Spinner: Preview Dialogue)
  2. You should get the following message: grafik

What is the expected behavior?

Either an error marked by the extension or a more expressive error message.

Please tell us about your environment:

Other information N/A

McJones commented 1 year ago

Fixed in c3daf30, the next update of Yarn Spinner will include this fix. Thanks for the issue, it was an interesting one to encounter.