GDQuest / learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
https://gdquest.github.io/learn-gdscript/
Other
2.1k stars 156 forks source link

Error in lesson 17 #820

Closed csebleder closed 2 weeks ago

csebleder commented 1 year ago

I know it's not the goal here but when i try to set the x coordinate using while loop the program gives an error that says the script verifier didn't catch.

To Reproduce Steps to reproduce the bug:

  1. Go to 'lesson 17 practice part '
  2. Write the code 'func move_to_bottom(): while cell.y<board_size.y: cell.y+=1 while cell.x<board_size.x: cell.x+=1'
  3. See error

Expected behavior Explaining the reason of the error or saying it's not the wanted action.

Ekran görüntüsü 2023-05-17 235308

2023-05-17-23-37.log

Visnicio commented 1 year ago

I might be wrong in my statement, so pleaser correct me if I am. But AFAIK, the compiler only shoutout precise error logs on predefined errors, AKA: Code that does not pass the Checks

Also, I'm not sure if GDScript is capable of handling the cell.y<board_size.y syntax since cell was not declared anywhere, nor a part of a loop, but I guess we will need confirmation of someone inside the development team to confirm

NathanLovato commented 1 year ago

@csebleder, did you run the app from the Godot editor? Or was it the Windows build from itch.io?

If it's the former, the behavior is normal - as mentioned in the readme, it's not meant to be followed from Godot. If it's the latter, this might well be linked to #864. Can you reproduce the issue from the browser version? https://gdquest.github.io/learn-gdscript/

Wolfy7 commented 3 weeks ago

Probably same issue as #961 (multiple while loops). Fix -> https://github.com/GDQuest/learn-gdscript/pull/999

NathanLovato commented 2 weeks ago

This was fixed by https://github.com/GDQuest/learn-gdscript/pull/999