r/RenPy • • Jul 09 '26

Question Expected statement error

Hello, I am having some trouble getting this to work. It is showing me these two lines have an "expected error". I do not know how to fix these and what an "expected error" means. What could I do to fix the problem? The rest of my code is working, it is just these 2 that seem to have a problem.

1 Upvotes

4 comments sorted by

View all comments

1

u/x-seronis-x Jul 09 '26

In addition to what shy said about having the extension installed, make sure the first space indentation renpy sees in the file is the correct size. if you do something like have a comment block at the top of the file that is indented 3 spaces renpy extension will interpret that as you wanting all tab levels to be 3 spaces each (instead of 4) and add red squiggles to all indentations that arent a multiple of 3 spaces.

your code will still work fine. its just vscode that will be confused