vscode_erlang icon indicating copy to clipboard operation
vscode_erlang copied to clipboard

Docker Erlang&rebar and vscode_erlang.

Open segachan opened this issue 4 years ago • 3 comments

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_erlang extension 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

segachan avatar Feb 17 '21 01:02 segachan

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

pgourlain avatar Mar 03 '21 07:03 pgourlain

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 avatar Mar 04 '21 21:03 pgourlain

@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

segachan avatar May 24 '21 11:05 segachan