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

Lesson 16 practice 1 moving to the end of the board

Open DarthBanana0428 opened this issue 4 months ago • 2 comments

Describe the bug During the practice I run into and issue where I use the correct solution but it still errors out

To Reproduce Steps to reproduce the bug:

  1. Go to 'Lesson 16'
  2. Click on 'Practice 1'
  3. Input solution ( I don't know if this was due to me getting it incorrect first)
  4. See error

Expected behavior Robot move to the bottom of cell grid

Screenshots If applicable, drag and drop screenshots here to help explain your problem.

Image

Information about your device (please complete the following information):

  • Operating System: Windows 10
  • Browser: Opera GX

Additional context

DarthBanana0428 avatar Aug 20 '25 03:08 DarthBanana0428

@DarthBanana0428 I believe you have mixed tabs and spaces in your solution, that might be the issue here.

StanleyAlbayeros avatar Oct 11 '25 09:10 StanleyAlbayeros

@DarthBanana0428 I believe you have mixed tabs and spaces in your solution, that might be the issue here.

doesn't work even when resetting the practice session and running the suggested solution

afenkurtz avatar Oct 24 '25 19:10 afenkurtz

Thanks for the report and thanks @StanleyAlbayeros, you're right, it's the spaces that cause problems.

On my end, applying the solution by clicking the Use Solution button and running does pass the practice.


Note for self: Mixed tabs and spaces seem to prevent our error "translation" layer from kicking in. But testing in other practices, it seems to be specifically in this context.

The GDScript compiler does raise the error mix tabs and spaces. but something else causes an other internal, +/- silent error.

It likely has to do with our loop manipulation/safeguard to prevent infinite while loops that freeze the application.

NathanLovato avatar Dec 18 '25 12:12 NathanLovato