Community Hass.io Add-on: IDE, based on Cloud9

I’ve got the same question. The Terminal window at the bottom of the browser never loads up (spinner on the tab just keeps spinning).

How do I access this from my public address? I’ve got DuckDNS setup. Works file locally.

Loving this tool so far. Like having Atom editor right in my browser!

I can click the Open Web UI button to get to the IDE in a separate browser tab, but the iFrame doesn’t seem to work for me. When I click IDE in my frame I get a blank page. Not sure how to troubleshoot the issue and get it to show up.

Same here. Terminal doesn’t load, spinner keeps spinning.

In the log of the addon:

{ Error: Cannot find module '../build/Release/pty.node'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/.c9/node_modules/pty.js/lib/pty.js:9:11)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3) code: 'MODULE_NOT_FOUND' } '/root/.c9/node_modules/pty.js'
{ Error: Cannot find module 'pty.js'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at /cloud9/node_modules/vfs-local/localfs.js:85:23
    at Array.some (native)
    at setup (/cloud9/node_modules/vfs-local/localfs.js:83:36)
    at Object.<anonymous> (/cloud9/node_modules/vfs-child/child.js:5:31)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10) code: 'MODULE_NOT_FOUND' } 'pty.js'
{ Error: Cannot find module 'pty.nw.js'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at /cloud9/node_modules/vfs-local/localfs.js:85:23
    at Array.some (native)
    at setup (/cloud9/node_modules/vfs-local/localfs.js:83:36)
    at Object.<anonymous> (/cloud9/node_modules/vfs-child/child.js:5:31)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10) code: 'MODULE_NOT_FOUND' } 'pty.nw.js'
unable to initialize pty.js:
PTY is not supported.
PTY is not supported.
PTY is not supported.

In the JavaScript console:

tmux_connection.js:45 Error creating TMUX session: Cannot read property 'on' of undefined

I’m not seeing those errors (unless I’m looking in a different place, but I do see:

PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.
PTY is not supported.

until I close the Terminal tab in the IDE

The { Error: Cannot find module '../build/Release/pty.node' errors are only visible just after (re)starting the addon and clicking refresh a few times while the addon is booting.

Those terminal errors are valid and unforseen, sorry about that issue. It seems to be a known issue with ARM/Raspberry PI’s. Can you guys confirm that you are running into this issue on these platforms?

Anyways, could someone open an issue on the GitHub repository and add some log’s / configurations and stuff? That way I have a way of tracking the issue.

Done: https://github.com/hassio-addons/addon-ide/issues/2
I’m running a generic Hass.io install on a Raspberry Pi 2 with Raspbian Jessie

1 Like

Same with pi3

Yea, I’m running Hass.io a Raspberry Pi 2. Thanks for the clarification.

Hass.io runs on resin os?

@Bobby_Nobble If you use the flash images provided by Home Assistant, you’ll be running on a Resin flavored OS indeed. But you can install Hass.io on other OS-es as well (like @snozzlebert apparently does and so am I).

I have the terminal issue as well, running on an RPi2.

Thanks for the info, just assumed other OSs would be on other platforms!

What advantage do you get from doing it that way?

Got it sorted. Had to forward the IDE port.

1 Like

Hi @Kanishkaz,

I am needing to do this as well. Did you just forward external 8321 to internal 8231?

Hey,

Yeah, I mapped external 8321 to internal 8321 for the hassio IP.

cheers. I’ll give that a go when I get home

I have port 8321 forwarded to 8321 now but the IDE wont load when using my external IP address (or using duckdns). I have the same issue with the configurator when trying to access it externally. I dont know what else to try

just wanted to say WOW! right now I am using atom with the relevant packages for hassio but this one will become much better given some dev time!

so thx!