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

chore: fix lists compile #136

Merged
merged 6 commits into from
Oct 31, 2024
Merged

chore: fix lists compile #136

merged 6 commits into from
Oct 31, 2024

Conversation

koen1711
Copy link
Member

No description provided.

@koen1711 koen1711 requested a review from a team as a code owner October 31, 2024 07:33
@koen1711 koen1711 requested a review from sverben October 31, 2024 07:33
@koen1711 koen1711 changed the title Lists compile chore: fix lists compile Oct 31, 2024
@koen1711 koen1711 requested review from rmoesbergen and removed request for sverben October 31, 2024 07:33
@koen1711 koen1711 linked an issue Oct 31, 2024 that may be closed by this pull request
@koen1711 koen1711 requested a review from sverben October 31, 2024 07:39
Copy link
Member

@sverben sverben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The getList() method in list manager does not return a copy, so updating the name property on this will change the name globally, if this is the desired behaviour it would probably be better to implement this on the addlist method directly for consistency, if not, a simple const name = list.name.replace will do

@@ -49,13 +54,15 @@ function getCodeGenerators(arduino: Arduino) {
const index =
arduino.valueToCode(block, "INDEX", arduino.ORDER_ATOMIC) || "0";

list.name = list.name.replace(" ", "_");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot one

@koen1711 koen1711 merged commit c48b89a into main Oct 31, 2024
1 check passed
@koen1711 koen1711 deleted the lists-compile branch October 31, 2024 13:41
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

Successfully merging this pull request may close these issues.

[bug] lists with a space in the name break compile
2 participants