Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Erlang&rebar and vscode_erlang. #185

Open
segachan opened this issue Feb 17, 2021 · 3 comments
Open

Docker Erlang&rebar and vscode_erlang. #185

segachan opened this issue Feb 17, 2021 · 3 comments

Comments

@segachan
Copy link

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
@pgourlain
Copy link
Owner

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
Copy link
Owner

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

@segachan
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants