Web IDE + Sublime Text

Posted on
  • Would be nice if there was a way to have the right panel load from my file before sending to Espruino. I would be able to work in my preferred editor, Sublime Text. The Web IDE has a clumsy aspect to it (at least one Macs) because it's a Chrome App, so changing to Chrome using CMD + Tab brings the Web IDE to the front, covering all of Chrome (since I'm on a laptop the majority of the time). So I then have to hit CMD + ` (this hotkey is for changing between multiple windows of the same program on Macs).

    I tried the Web IDE in a tab for the first time just now, but it can't find my Espruino.

    I guess that for now, I'll just have to use another browser besides Chrome, when I'm working with Espruino.

  • Hmm - it might be possible I guess. I'm not sure as it's using the Chrome APIs though - it might need to open the file dialog each time.

    Did you consider just using this: https://www.npmjs.com/package/espruino

    If you start that command-line app with -w then it'll watch the file for changes and will re-upload it each time it does.

  • I didn't know it has that feature! Trying it now, but seem to be having troubles.

    Using first port, {"path":"/dev/cu.usbmodem1421","usb":[11­55,22336],"description":"Espruino board"}
    Connecting to '/dev/cu.usbmodem1421'
    Connected
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/NetworkJ­S.min.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/net.min.­js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/net.js
    Module net not found
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/NetworkJ­S.js
    Module NetworkJS not found
    

    I'll probably figure out why this happens. I see these same messages sometimes in the IDE, but it's fixed if I reset();save();.

  • Are you still connected with the main Web IDE?

    Usually it happens if it's not able to communicate with the board, so it can't tell which board it's talking to and so which libraries it already implements.

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

Web IDE + Sublime Text

Posted by Avatar for CriscoCrusader @CriscoCrusader

Actions