You are reading a single comment by @allObjects and its replies. Click here to read the full conversation.
  • Tried to setup Espruino site locally as described at https://github.com/espruino/EspruinoDocs.

    Everything ran pretty smooth until the modules directory got hit. Since it is a first-time build (with ./build.sh), all minified versions of the modules are rebuilt...

    me:espruinoDocs me$ ./build.sh
    Script location /Users/me/espruino/Espruino/scripts
    BOARD PICO_R1_3
    HTML_FILENAME boards/PICO_R1_3.html
    Script location /Users/me/espruino/Espruino/scripts
    BOARD ESPRUINOBOARD
    HTML_FILENAME boards/ESPRUINOBOARD.html
    Script location /Users/me/espruino/Espruino/scripts
    BOARD ESP8266_BOARD
    HTML_FILENAME boards/ESP8266_BOARD.html
    Script location /Users/me/espruino/Espruino/scripts
    BOARD EMW3165
    HTML_FILENAME boards/EMW3165.html
    Example File examples/distance_sensing_robot.js
    Example File examples/http_file_server.js
    ...
    ...
    ...
    ...
    ...
    >>>> devices/MFRC522.js
    Module MFRC522 is different or doesn't exist
    min /Users/me/workspace/espruinowebsite/www/modules/devices/MFRC522.js to MFRC522.min.js
    Minifying  /Users/me/workspace/espruinowebsite/www/modules/MFRC522.js to /Users/me/workspace/espruinowebsite/www/modules/MFRC522.min.js
    Sending to Google Closure Compiler...
    Minification complete!
    Complete!
    /Users/me/workspace/espruinowebsite/www/modules/MFRC522.min.js compile successful
    >>>> devices/MPL115A2.js
    Module MPL115A2 is different or doesn't exist
    min /Users/me/workspace/espruinowebsite/www/modules/devices/MPL115A2.js to MPL115A2.min.js
    Minifying  /Users/me/workspace/espruinowebsite/www/modules/MPL115A2.js to /Users/me/workspace/espruinowebsite/www/modules/MPL115A2.min.js
    Sending to Google Closure Compiler...
    Minification complete!
    Compilation failed - function wrapper not found. Got: "Error(22): T" "ater.\n"
    Error(22): Too many compiles performed recently.  Try again later.
    
    Sending to Google Closure Compiler...
    Minification complete!
    Error(22): Too many compiles performed recently.  Try again later.
    
    devices/MPL115A2.js compile FAILED.
    me:espruinoDocs me$ 
    

    Invoking Google's closure compile service too often in a defined time frame gets you in trouble: service will be temporarily denied. Last time when I got service denied, I was developing a module and making frequent (micro) changes. Since I had the module source in the modules folder in the IDE sandbox, every time I uploaded the code to the board, the compile service was inoked, an Google felt I was abusing the service.

    In the IDE though, options could be set to get over this hurdle and use the srevice only once in a while and at the end of a development cycle.

    Two questions:

    1. What are the options - if there are - to buid the site locally with skipping the compile service and do it later?

    2. How do I get out of the mess of a halfway built site build?

About

Avatar for allObjects @allObjects started