Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write explanation for mixed Tab+Space indentation error #919

Open
chumaniz opened this issue Feb 3, 2024 · 2 comments
Open

Write explanation for mixed Tab+Space indentation error #919

chumaniz opened this issue Feb 3, 2024 · 2 comments
Labels
content Issues with the lessons, practices, including their code examples

Comments

@chumaniz
Copy link

chumaniz commented Feb 3, 2024

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

Steps to reproduce the bug:

  1. Go to Chapter Animate the end screen transition #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
@chumaniz chumaniz added the bug Something isn't working as intended label Feb 3, 2024
@NathanLovato
Copy link
Contributor

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
Copy link
Author

chumaniz commented Feb 3, 2024 via email

@NathanLovato NathanLovato added content Issues with the lessons, practices, including their code examples and removed bug Something isn't working as intended labels Feb 3, 2024
@NathanLovato NathanLovato changed the title Tab+Space indentation Write explanation for mixed Tab+Space indentation error Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues with the lessons, practices, including their code examples
Projects
None yet
Development

No branches or pull requests

2 participants