Pretokeniser error? #1691
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 3 comments
-
Posted at 2024-07-01 by @gfwilliams Sorry - thanks for letting me know! I think this was some UTF8/unicode support that got added erroneously converting pretokenised code. I'll get a fix in now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2024-07-01 by @gfwilliams Ok - should be fixed! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2024-07-01 by AkosLukacs Thank you Gordon! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-06-28 by AkosLukacs
Looks like the pretokeniser is acting weirdly. Wanted to do some mindless blinking lights, but the code fails if I save to flash.
My code:
The error from the Puck:
.bootcde
downloaded from the puck via the web ide:Output from the browser's JS console when sending (so indeed there are some tokens inside the
setInterval
):The same happens with the default "new tab" code too:
Becomes this when saved to flash:
If I turn off the pretokeniser, it works without any problem.
If I just send it with shift-enter, that works too.
Web IDE v0.79.3
Tested with Puck 1, Espruino 2v23 and 2v22 release. And nRF52840DK, built from latest. Same result.
Beta Was this translation helpful? Give feedback.
All reactions