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

Variadic blocks fail to translate #327

Open
dragazo opened this issue Apr 22, 2024 · 0 comments
Open

Variadic blocks fail to translate #327

dragazo opened this issue Apr 22, 2024 · 0 comments

Comments

@dragazo
Copy link

dragazo commented Apr 22, 2024

I know it was mentioned in #325 that Arduino sketch translatability may not be a feature going forward, but in case it is, I have the following bug to report.

Previously, the normal binary operators like _ + _ and friends could translate just fine. However, the new variadic versions from latest Snap seem to translate incorrectly. They convert to (_ op (_ op <#2>)), even if only two values are provided. When no values are provided, they become ( op ( op <#2>)). Given that lists are not supported in translatable mode, the easiest fix might be switching the palette to only show the old, non-variadic versions of blocks, which are still defined in Snap for backwards compatibility.

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

1 participant