monome / maiden

web based editor and repl for norns
GNU General Public License v3.0
47 stars 34 forks source link

'not connected to matron' on my linux laptop #24

Closed ranch-verdin closed 6 years ago

ranch-verdin commented 6 years ago

Connecting to the web interface on my brother in law's macbook, maiden seems to work as expected (maiden is running on the norns). It works ok with safari & also with google chrome.

On my linux laptop running chromium browser the REPL & 'script refresh' features don't work. The text in place of REPL says 'not connected to matron' with a refresh icon. I also tried with google chrome browser on linux and saw the same bug.

My linux system is not avahi aware, in case there is some reason that makes a difference.

ngwese commented 6 years ago

I’m not too surprised. Currently the repl endpoints are defined in a static jason file which is loaded via http. That file has mdns host names such as “nnnn.local” - on macOS the mdns looks are fairly reliable but on Linux they have been more flakey.

The plan is to change that and infer the websocket host from the host used to load the web app originally.

ngwese commented 6 years ago

...so yes - unless avahi is installed the repl will fail to connect at the moment

ngwese commented 6 years ago

this should be fixed as of https://github.com/ngwese/maiden/releases/tag/v0.3