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

Makecode: Function rename #10329

Open
PSLLSP opened this issue Jan 1, 2025 · 2 comments
Open

Makecode: Function rename #10329

PSLLSP opened this issue Jan 1, 2025 · 2 comments

Comments

@PSLLSP
Copy link

PSLLSP commented Jan 1, 2025

I can rename function in Makecode. When I do so, I do not see new function in the list of "calls" for function, I see old name. It is a bug in the Makecode editor.

DEMO:

  1. Create block for custom function test1. Create block for custom function test2.
  2. Check the list of available functions in Advanced/Functions, you should see test1 and test2.
  3. Rename function 'test2' to something else, maybe test3.
  4. Check the list of available functions in Advanced/Functions, you should see test1 and test3 but you will see test1 and test2. The BUG

To call function test3 I have to click on function definition and select Create "call test3"
When I use test2 block from the list, it really calls test2 but such definition is not on the desk...

DEMO in Makecode editor

It seems that once projecty is reopned, list of functions are updated, so you cannot see the issue in the example above. When I saved project there were functions test1 and test2 but when I open shared project, I see functions test1 and test3, that is expected... Anyway, you can rename function test3 to test4 and you will see the issue again... ;-)

@Nolan0027
Copy link

Yea

@ssande-fwd
Copy link

ssande-fwd commented Jan 16, 2025

Using https://makecode.com/playground I can see that this problem only exists for some targets: micro:bit, Minecraft, Calliope Mini. So https://arcade.makecode.com/#editor doesn't have this issue, for example. I set up Arcade locally and in that case I do have the issue. Is there something different about the production Arcade configuration than what I have for my local version?

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

3 participants