What is the current behavior?
Attempting to preview a default, simple .yarn file in VS Code results in the dialogue preview pane displaying Compilation Failed: [...]/Yarn/Script.yarn:2:0 - Nodes must have a title (Despite the only existing node having a title)
Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Create a new .yarnproject and .yarn script filled with the default:
title: Start
---
This is an example of a Yarn Spinner script. Write your dialogue here!
===
When you open the dialogue preview (via either the "Preview Dialogue" or the "Play this node" button), an error is given saying the node doesn't have a title.
What is the expected behavior?
It compiles successfully and displays the dialogue preview.
Please tell us about your environment
- Operating System: Linux Mint 22.3 - Cinnamon 64-bit
- Yarn Spinner Version: 3.2.4
- Extension Version: 3.2.113
- Unity Version: 6000.0.64f1
Other information
[INFO] [ShowPreview] invoked with projectUri={"$mid":1,"fsPath":"/media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn","external":"file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn","path":"/media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn","scheme":"file"}
[Trace - 12:19:28 PM] Sending request 'workspace/executeCommand - (181)'.
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
executing command: yarnspinner.listProjects
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
listing projects
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
returning 1 projects (from cache, gen 8)
[Trace - 12:19:28 PM] Received response 'workspace/executeCommand - (181)' in 1ms.
[INFO] [ShowPreview] ownership check: fileHint.fsPath=/media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn, 1 project(s) returned by LSP
[INFO] [ShowPreview] project file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject: 1 file(s); first 1: ["file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn -> /media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Script.yarn"]
[INFO] [ShowPreview] ownership result: owned=true
[Trace - 12:19:28 PM] Sending request 'workspace/executeCommand - (182)'.
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
executing command: yarnspinner.listProjects
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
listing projects
[Trace - 12:19:28 PM] Received notification 'window/logMessage'.
returning 1 projects (from cache, gen 8)
[Trace - 12:19:28 PM] Received response 'workspace/executeCommand - (182)' in 1ms.
[INFO] [ShowPreview] project-path resolution: matchedProject.uri=file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject
[INFO] [ShowPreview] resolved previewProjectPath=/media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject; opening preview panel
[INFO] [ShowPreview] createOrShow returned
[Trace - 12:19:28 PM] Sending request 'textDocument/inlayHint - (183)'.
[Trace - 12:19:28 PM] Received response 'textDocument/inlayHint - (183)' in 0ms.
[Trace - 12:19:28 PM] Sending request 'textDocument/codeAction - (184)'.
[Trace - 12:19:28 PM] Received response 'textDocument/codeAction - (184)' in 0ms.
[Trace - 12:19:29 PM] Sending request 'workspace/executeCommand - (185)'.
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
executing command: yarnspinner.listProjects
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
listing projects
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
returning 1 projects (from cache, gen 8)
[Trace - 12:19:29 PM] Received response 'workspace/executeCommand - (185)' in 1ms.
[Trace - 12:19:29 PM] Sending request 'workspace/executeCommand - (186)'.
[Trace - 12:19:29 PM] Sending request 'workspace/executeCommand - (187)'.
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
executing command: yarnspinner.compile
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
handleCompile called with 1 args: ["file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject"]
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
compiling project: file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
executing command: yarnspinner.getProjectData
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
getProjectData: file:///media/swagmaster/D/Projects/Tome-Game/Assets/Yarn/Project.yarnproject
[Trace - 12:19:29 PM] Received response 'workspace/executeCommand - (187)' in 2ms.
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
found 1 .yarn files to compile
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
compiler options: allowPreviewFeatures = true
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
compiler service: compiling 1 files for preview...
[Trace - 12:19:29 PM] Received notification 'window/logMessage'.
compiler service: preview parse tree cache: 1 hits, 0 misses
function declaration: diceroll (2 params) -> number
function declaration: multidice (1 params) -> number
function declaration: fade_in (1 params) -> any
function declaration: fade_out (1 params) -> any
function declaration: background (1 params) -> any
function declaration: screen_shake (1 params) -> any
function declaration: typing_indicator (1 params) -> any
function declaration: confetti (0 params) -> any
built 8 declarations (8 functions)
LanguageVersion = 4
Add tags
VSCode
What is the current behavior?
Attempting to preview a default, simple .yarn file in VS Code results in the dialogue preview pane displaying
Compilation Failed: [...]/Yarn/Script.yarn:2:0 - Nodes must have a title(Despite the only existing node having a title)Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Create a new .yarnproject and .yarn script filled with the default:
When you open the dialogue preview (via either the "Preview Dialogue" or the "Play this node" button), an error is given saying the node doesn't have a title.
What is the expected behavior?
It compiles successfully and displays the dialogue preview.
Please tell us about your environment
Other information
Add tags
VSCode