vscode-language-renpy
vscode-language-renpy copied to clipboard
[Bug (Minor)] False warning flag with persistent variables defaulted in other source files
Say I do default persistent.game_clear = False
in script.rpy
Now say I try referencing it in main_menu.rpy
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.
I got the same warning, but with the variable being in the same file, only further down.
Also, I would advise the error message to only say "not been defaulted", because using define with persistent is now a lint warning.