vscode-language-renpy icon indicating copy to clipboard operation
vscode-language-renpy copied to clipboard

[Bug (Minor)] False warning flag with persistent variables defaulted in other source files

Open pjpollina opened this issue 2 years ago • 2 comments

Say I do default persistent.game_clear = False in script.rpy

image

Now say I try referencing it in main_menu.rpy

image

Despite the warning, it still works fine. You can get around the warning by repeating default persistent.game_clear = False in main_menu.rpy, but then this flags a duplicate declaration in Lint. Really minor issue, and honestly I dunno if it's even worth spending that much time on to fix, but felt I might as well bring it to your attention.

pjpollina avatar Aug 28 '22 15:08 pjpollina

I got the same warning, but with the variable being in the same file, only further down. image

Gouvernathor avatar Sep 03 '22 20:09 Gouvernathor

Also, I would advise the error message to only say "not been defaulted", because using define with persistent is now a lint warning.

Gouvernathor avatar Sep 03 '22 21:09 Gouvernathor