• I fixed another bug (see github discussion with @Gordon about my changes) and now finally I'm talking to Espruino.

    But for some reason I'm not getting the correct return values and console output from Espruino.

    I have a file foo.js:

    a=123;
    console.log(a+1);
    

    Now when I call espruino tool, I get the following:

    $ espruinotool -p /dev/cu.usbmodem1411 foo.js
    espruino-tools
    --------------
    
    Connecting to '/dev/cu.usbmodem1411'
    --]___
    --]|   __|_ -| . |  _| | | |   | . |
    --]|_____|___|  _|_| |___||_|_|___|
    --]          |_| http://espruino.com
    --] 1v81 Copyright 2015 G.Williams
    --]
    --]>
    --]=undefined
    --]>
    --]
    Connected
    --]=undefined
    

    I expected it to return 123 for the first statement, then write 124 to the console and then return undefined for the second statement. The console output is nowhere to be found and undefined is not the correct result. But if I now use WebIDE, I can verify that a really has the value 123, so the code has been executed.

About

Avatar for Dennis @Dennis started