learn-gdscript icon indicating copy to clipboard operation
learn-gdscript copied to clipboard

Lesson 22 Practice Lesson 1 "Completing Orders" - Compiling Error

Open GuideToTheInternet opened this issue 5 months ago • 1 comments

On Lesson 22 "Appending and popping values from arrays" in practice lesson 1 "Completing Orders" the output console will claim there is a syntax error on Line 6 despite code matching the solution exactly. It is only upon selecting 'Use Solution' that the code will run properly despite the fact that no visible change was made to the code I had written. Along with this my progress on this specific practice lesson is not counted by the system leaving me at 95% for Lesson 22, despite the fact that I was able to complete this practice with the 'Use Solution' button.

Steps to reproduce the bug:

  1. Go to Lesson 22 Practice Lesson 1
  2. Write code manually exactly as stated in the solution
  3. An error will be found on Line 6 upon attempting to run it

I expect my own written code to run properly especially since it appears to be exactly the same as the given solution. Every previous lesson thus far has not had an issue like this.

Screenshot displaying error: Image

Screenshot with my code and the solution: Image

  • Operating System: Windows 11
  • Browser: Chrome

GuideToTheInternet avatar Aug 08 '25 00:08 GuideToTheInternet

You used ''enter'' between completed_order = and waiting_orders. this is meant to be on the same line. Since space is limited, the solution box has split the line into two, you can tell because of the line numbering to the left of the code :)

@NathanLovato

StanleyAlbayeros avatar Oct 22 '25 14:10 StanleyAlbayeros

That's indeed as @StanleyAlbayeros explained (thanks for taking the time to help!).

The solution box would wrap the code if it could not fit in the width of the box, but it's only a visual thing and it's not a literal line return.

A line return after an equal sign will result in the error shown at the bottom right of your practice screen. With that said, in the next release, actually, the app will not have this text wrapping anymore and instead will have a horizontal scroll bar to avoid causing this kind of confusion.

NathanLovato avatar Dec 18 '25 13:12 NathanLovato