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

invalid use of Trice0 will misbehave trice insert #465

Open
KammutierSpule opened this issue May 16, 2024 · 4 comments
Open

invalid use of Trice0 will misbehave trice insert #465

KammutierSpule opened this issue May 16, 2024 · 4 comments
Labels
wontfix This will not be worked on

Comments

@KammutierSpule
Copy link

KammutierSpule commented May 16, 2024

Trice0( variable ); // invalid use
Trice0( "text %u", variable ); // invalid use

Will cause that the next Trices will be ignored or not updated.
(also if Trice0 are // commented)

See also: #464

@rokath
Copy link
Owner

rokath commented May 16, 2024

Am I understand you right, that the first line causes the trice tool not to insert further IDs in that file? That's indeed an issue. Unfortunately I am not a parser expert and the trice tool is somehow limited.

There is probably no quick fix right now. See also comment in https://github.com/rokath/trice/blob/master/internal/id/insertIDs.go near line 280.

@KammutierSpule
Copy link
Author

also, it happens with clean too.
If there is an invalid use of Trice0, trice clean will not be able to clean next ids on the file

@rokath
Copy link
Owner

rokath commented May 16, 2024

Yes, it is the same parser. I am going to add a chapter about that to https://github.com/rokath/trice/blob/master/docs/TriceUserGuide.md#9-additional-hints.

@rokath
Copy link
Owner

rokath commented May 19, 2024

@rokath rokath added the wontfix This will not be worked on label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants