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

[Bug] In block programming after a copy of the "Program" block, the paste does not paste the "program" block, but some previously copied one #1999

Open
BertLindeman opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working software: pybricks-blocks Issues with blocks and code generation

Comments

@BertLindeman
Copy link

BertLindeman commented Dec 31, 2024

Describe the bug
Unexpected block pasted after copy of a "program" block

To reproduce
Steps to reproduce the behavior:

  1. Open or create a block program
  2. Click on the program block
  3. Do a copy and paste and see no new program block (i got a previously copied motor block

Expected behavior
What did you expect to happen instead? To paste a new program block

Screenshots
Copied:
image

Pasted:
image

Not so important, but funny.

Bert

@BertLindeman BertLindeman added the triage Issues that have not been triaged yet label Dec 31, 2024
@dlech dlech added bug Something isn't working software: pybricks-blocks Issues with blocks and code generation and removed triage Issues that have not been triaged yet labels Feb 1, 2025
@laurensvalk
Copy link
Member

The main program block is a locked block that cannot be deleted or copied. I can see that this is potentially confusing though. It should probably act like a normal block and only disallow deletion if it is the last instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working software: pybricks-blocks Issues with blocks and code generation
Projects
None yet
Development

No branches or pull requests

3 participants