Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
198 stars 29 forks source link

Ride not able to connect to docker container #1103

Open MadoScientist97 opened 11 months ago

MadoScientist97 commented 11 months ago

Describe the issue you are having

I am unable to connect to a docker instance of Dyalog from ride

Did you connect to an already running interpreter or start the interpreter from RIDE?

Connect to already running container

How do you reproduce the issue?

I was able to reproduce in both linux and macos. I ran the interpreter from the official docker container using the following run commmand: podman run --name apl_basecon -e RIDE_INIT=SERVE:*:4502 -p 4502:4502

When using HTTP I am able to access using the browser. But with ride I always gets timed out. I built ride from source and was running using npm start.

I tried using Ride on a different laptop (mac), and opened up ports to the linux machine so connectivity wise I dont see any issue.

Paste the contents of Help → About (Shift+F1)

From the http Version:

IDE:
  Version: 4.4.3687
  Platform: Linux x86_64
  Date: 2022-02-23 13:44:34 +0100
  Git commit: a3d8123cfb690ead493e261ccced59407db04c64
  Preferences:{
    "kbdLocale":"en_US"
  }

Interpreter:
  Version: 18.2.45405
  Platform: Linux-64
  Edition: Unicode/64
  Date: Mar 18 2022 at 13:31:50
e9gille commented 10 months ago

Tested this with both docker and podman and can't replicate. On Mac with zsh I can't even run the command reported, I have to encolse the environment variable in single quotes like this: podman run --name apl_basecon -e 'RIDE_INIT=SERVE:*:4502' -p 4502:4502 dyalog/dyalog or with docker docker run -e 'RIDE_INIT=serve:*:4502' -p 4502:4502 dyalog/dyalog Once started I can connect using RIDE with the default settings (localhost:4502).