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

Scoping error on setheading when wrapping a Graphics Box in a DoIt Box #76

Open
rigdern opened this issue Jun 7, 2024 · 1 comment
Open

Comments

@rigdern
Copy link

rigdern commented Jun 7, 2024

Repro steps

I reproed this with Boxer 3.4.18 2024-05-26 on macOS

  1. Create a Graphics Box. Name it graphics. Name its sprite turtle-sprite.
  2. Outside of the Graphics Box, write a line like this that sets the sprite's heading to a random value:
    image

Unexpected result: An error is returned:

Error: 
Primitive SETHEADING
Don't have a Sprite to Talk to

Repro file

You can see the bug in this boxer file: scoping demo.box.zip. Here's a screenshot of that file:

image

@rigdern rigdern changed the title Scoping exception on setheading when wrapping a Graphics Box in a DoIt Box Scoping error on setheading when wrapping a Graphics Box in a DoIt Box Jun 7, 2024
@sgithens
Copy link
Member

sgithens commented Jun 7, 2024

Huh, this is a pretty interesting issue, thank you for the detailed reproduction, including both working and failing tests. We've had this sort of "not having a sprite issue to talk to" issue pop up here and there and occasionally. I hope this detailed set of test cases should make it relatively easy to track down. Thanks much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants