Did you update Chrome App version last week?

Posted on
  • Hello @Gordon
    my Chrome app is web ide 0.73.7

    last week? or 2 week ago (don't remember)
    i was working with a code in espruino that work great.
    when i attempt to upload to my espruino pico (just modifying a typo)
    the ide return:

    ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v05.100 (c) 2019 G.Williams
    >Uncaught SyntaxError: Got ?[233] expected ID
     at line 1 col 289
    ...t+1','eu+2','ev+2','ez+1'],?[233]:['?­[233] ?[226]+1','?[233] c+1','?[233] e+1','?[233] j+1','?[233]...

    same firmware, same espruino pico...

    the part code is about accents (yes again!)
    i do not have this pb on June 8th!

    have an idea?

    i use custom font (no web ide) :/

    const aKerning = {
  • the error is on the key ("é" of my array), not the content with accent.
    if i remove the key with accents, everythings is good (there is accent in the content, see in 'i' key



  • found a way to declare my accents, by using their ascii code (but it's less readable by human)

  • Bravo!

  • the problem is: it was working, but not now!

  • Hi, Yes - there was definitely an IDE app update the week before last. Users of espruino.com/ide had had been using it for a while - it was just the chrome app that was lagging behind.

    To be honest any changes that went in should really have helped with non-ASCII characters since we're using them more in Bangle.js now.

    It looks from the error like maybe you had minification enabled? I'm not sure but that could be having some effect? Does it help turning minification off?

  • Hello @Gordon,
    nope, minification does not help.
    i'll write my own toUpperCaseDiacritic()


  • nope, minification does not help.

    I mean, turn minification off.

    If I upload the code you posted to https://www.espruino.com/ide/emulator.ht­ml then it uploads fine.

    However if I turn minification on then it fails with exactly the error you report.

    It looks like minification turned:




    Which Espruino doesn't like because it isn't expecting non-ASCII variable names.

  • ok, thanks for your time.

    i extend toUpperCase() to upperCase French diacritic accents

    String.prototype.toUpperCaseFr = function toUpperCaseFr() {
        return this.toUpperCase().replace(/à/gm, "À").replace(/â/gm, "Â").replace(/é/gm, "É").replace(/è/gm, "È").replace(/ê/gm, "Ê").replace(/ë/gm, "Ë").replace(/î/gm, "Î").replace(/ï/gm, "Ï").replace(/ô/gm, "Ô").replace(/ö/gm, "Ö").replace(/û/gm, "Û").replace(/ü/gm, "Ü").replace(/ù/gm, "Ù").replace(/ç/gm, "Ç").replace(/œ/gm,"Œ");

    it's working.


  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Did you update Chrome App version last week?

Posted by Avatar for Mrbbp @Mrbbp