GDQuest/learn-gdscript

Write explanation for mixed Tab+Space indentation error

Opened this issue · 2 comments

"Parse error: Spaces Used Before Tabs On A Line"

Steps to reproduce the bug:

  1. Go to Chapter #7, practice 2: The code will not run because I used a space before pressing Tab to indent
  2. Create Sub Variables (position X and Y) then press Enter twice
  3. Type in "draw_rectangle()" function then press enter
  4. Press Space, then Tab and insert "jump()"

I thought it would actually allow me to do that

Screenshot 2024-02-03 100610

  • Windows 11 Home
  • Firefox-Developer Edition

Gdscript doesn't allow you to mix spaces and tab characters for indentation. It's invalid syntax.

When you hover over the squiggles, does it tell you that this error is not documented and you should report it here? If so, please let me know and we'll take note to add extra explanations.