Visual studio code, naninovel extension error

Posted: 12 Jan 2024 18:18
by booksuny

I'm a developer who was developing in visual studio code.

I haven't opened the .nani file for a while, but I opened it today because I needed it, but all the codes are white. Both annotations and variable names.

For your information, the other C# code is not missing color.

Is this an error in nani novel extension?

I spent a lot of time searching to solve this, but I couldn't find a solution.

I've upgraded the Nani novel from 1.8 to 1.9 this time. Is this the cause?


Re: Visual studio code, naninovel extension error

Posted: 12 Jan 2024 18:38
by Elringus

The solution is posted in #news on our Discord, I'd recommend joining to not miss important updates.


Re: Visual studio code, naninovel extension error

Posted: 12 Jan 2024 18:39
by Elringus

In case VS Code extension suddenly stopped working:

  • Make sure to use supported Naninovel version, which is 1.19 or later. In case you can't upgrade, disable package auto-update in VS Code and - downgrade to the previous extension version;
  • Make sure to use latest extension version (in case auto-update is disabled), which is v1.9; if you've used pre-release version of the extension distributed in Discord, remove it and install from VS Code marketplace;
  • Make sure bridging is enabled under Naninovel engine configurion in Unity editor;
  • Purge metadata cache in VS Code by pressing Ctrl+Shift+P (opens command palette) and selecting Naninovel: Purge cached metadata and restart VS Code;
  • Make sure to complete all the set up steps described in the IDE extension guide.