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

Accessing nonexistent methods or properties causes crash on Windows

Open brogers-tech opened this issue 2 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

Entering a certain code solution causes the app to crash with no warning in the lesson 26 practice problem 1.

To Reproduce Steps to reproduce the bug:

  1. Go to Lesson 26
  2. Open Practice Problem 1
  3. In func run() enter the following code
for t in inventory.items():
    display_item(t[0], t[1])
  1. App crashes

You can replace the call to items with any non-existent method call like inventory.get_stuff() and the app will crash.

Expected behavior A clear and concise description of what you expected to happen.

It should just error with dictionary does not have method whatever method.

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

  • Operating System: Windows 10 x64

Screenshot

image

Additional context Add any other context about the problem here.

brogers-tech avatar Mar 19 '23 14:03 brogers-tech

I should add that I am using the downloadable executable as the browser version works just fine and presents the error "The method get_stuff isn't declared ...."

brogers-tech avatar Mar 19 '23 14:03 brogers-tech