Docker Erlang&rebar and vscode_erlang.
Question. Can I use/combine Docker Erlang/OTP and this vscode_erlang extention?
Situation
I'm using Visual Studio Code that installed on WinOS.
Remote-SSH Extentions is installed on VScode, I can see/edit erlang code is storing on Remote Host via VS code. Docker is installed on Remote Host, I can also build the erlang codes on Docker Container, using the command docker build.
But, I can not let and be compatible vscode_erlang available using Docker erlang&rebar3.
Anything solution or workaround?
Best Regards, Additional Info
- Visual Studio Code
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.17763
-
vscode_erlangextension 0.6.9 - Remote Host OS
$ more /etc/issue
Ubuntu 20.04 LTS \n \l
- Docker version on Remote Host OS
$ docker -v
Docker version 20.10.2, build 2291f61
Hi,
I didn't test it. And my knownledge on how works 'RemoteHost' is limited. One thing may be : did you try to configure workspace like python : https://code.visualstudio.com/docs/python/debugging#_remote-debugging
Hi,
I try to use Docker and the VSCode "Remote-Containers" extension, with a simple hello world and it works.
here is my sample : https://github.com/pgourlain/vscode-remote-try-erlang
@pgourlain Sorry, for my delay and thank you for your trying.
However, I can't still use your extention.
Focussing point:
- I can't install Docker including Docker CLI on my laptop(hereinafter call as ComputerA), this is security restriction. Only allowed to install Docker to Server, not allowed to install Docker to Client PC.
- Only VS code is installed on ComputerA.
- Docker engine is installed on Remote Linux Server.(hereinafter call as ComputerB).
- Also your cool extention is installed on ComputerB.
Operation:
- I launch VS code on ComputerA.
- I launch Remote Extention for VS code on ComputerA.
- Remote Extention connects to ComputerB, using ssh.
- cd "my-src-dir", on ComputerB.
- docker build ..., ComputerB.
- docker run ..., ComputerB.
In this circumstances, May I use your Extension?
[Remote /SSH Extentions] https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-edit https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers