Write explanation for mixed Tab+Space indentation error
Opened this issue · 2 comments
chumaniz commented
"Parse error: Spaces Used Before Tabs On A Line"
Steps to reproduce the bug:
- Go to Chapter #7, practice 2: The code will not run because I used a space before pressing Tab to indent
- Create Sub Variables (position X and Y) then press Enter twice
- Type in "draw_rectangle()" function then press enter
- Press Space, then Tab and insert "jump()"
I thought it would actually allow me to do that
- Windows 11 Home
- Firefox-Developer Edition
NathanLovato commented
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.
chumaniz commented
Yes it does tell me to report to you upon hovering over the squiggle
Also, thank you for explaining this
…On Sat, Feb 3, 2024, 11:31 Nathan Lovato ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#919 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7MFFLXW6YPFS32V7B27DTLYRX7XXAVCNFSM6AAAAABCXZJRN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGI2DENRYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>