• Sun 2018.09.09

    Thank you @allObjects for making an extra ordinary effort in completing this and welcome the world of Pico. I used your snippets verbatim,

    here's the output, after I discovered there are two 'modules' folders beneath the installation _sbx folder

    C:\Users\Robin\Documents\2017\Espruino_sbx\projects\modules
    C:\Users\Robin\Documents\2017\Espruino_sbx\modules

    >run()
    =undefined
    Uncaught Error: Cannot read property 'testUR' of undefined
     at line 7 col 8
    testLED.testUR();
           ^
    in function called from system
    Uncaught Error: Cannot read property 'testUR' of undefined
     at line 7 col 8
    testLED.testUR();
           ^
    

    There is definitely something different between this IDE on this Windows platform than that which you guys have. Would love to know what is going on. But we are getting closer . . .

    Do I need to change the Settings >> Project folder to point to the 'modules' folder?

    ~\Documents\2017\Espruino_sbx\projects



    EDIT
    The IDE won't allow me to place the insertion caret cursor in the URL field of Settings >> Project
    So, I made copies and placed in the \projects\modules the \modules and the \projects folders, but get the same results. I restated the IDE and now get a Module testLED not found error.


    Under Settings >> Communications

    "Where to search online for modules when require() is used"
    http://www.espruino.com/modules

    as the module isn't at the remote URL while we are online, does this need to be changed for the local drive?

About

Avatar for Robin @Robin started