Questions tagged [vscode-remote]

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

Visual Studio Code Remote Development allows you to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment

868 questions
3
votes
0 answers

Vscode terminal for remote ssh connection not opening

I tried connecting to a centos server using vscode remote ssh. Connection has been established but somehow the terminal is blank and it seems to not working since I can't run python files, the output is not coming. Blank vscode terminal While trying…
3
votes
1 answer

How to start remote-containers (the VScode extension) for a different platform?

So I have docker environment, and want to use the Remote Containers VScode extension to attach my editor to a container. But I need to specify the platform while building, otherwise it doesn't work This build command works: docker buildx build…
hecontreraso
  • 1,221
  • 3
  • 15
  • 23
3
votes
1 answer

Network hanging 5 seconds with VS Code remote Docker containers

I have 3 services: webapp (app), database (db), and redis (rd) that share the same network. Randomly, both connections to the services (database and redis) hangs about 5 seconds. It's not only when I run my webserver that connects to the database,…
3
votes
1 answer

Use singularity container as python interpreter in Visual Studio Code

I am connecting to an HPC environment through VScode remote ssh and would like to run python code directly in VScode for testing purposes. I would like to set the python interpreter to a singularity container which runs python upon execution. This…
3
votes
0 answers

vscode server failing to shut down after disconnect

My team has been using VS Code Remote pretty successfully for the past few weeks. Our setup is a heavily modified version of this one, which uses an AWS EC2 instance as the remote server. In order to keep costs down, each server is set to shut off…
mbklein
  • 455
  • 6
  • 14
3
votes
0 answers

VSCode use WSL ssh config and identity?

I'm using WSL2 on Windows 10 and 11 to do all of my ssh stuff but I'd like to be able to use the wsl2 ssh config + identity + agent from wsl within my VSCode. Saw some approaches with a seperate ssh.bat with one of the following…
3
votes
0 answers

vs code open same files at home like in office

Is it possible to sync the list of open files, so that at my home computer in VS Code the same files are opened automatically? I know I can synchronize settings etc. but unfortunately the open files are not synchronized. My developer…
Maisen1886
  • 110
  • 1
  • 10
3
votes
0 answers

DevContainers started through WSL2 do not see environment variables

When starting the latest version of VSCode within a WSL2 (Ubuntu) shell running code ., then rebuilding/reopening a .devcontainer.json - the host environment variables are not recognized. It is a pretty basic .devcontainer.json, nothing else is…
KJQ
  • 447
  • 1
  • 7
  • 28
3
votes
0 answers

crashes while attaching VS code container to running container

I am running open source code in a docker container and trying to connect vscode to that. Remote container extension of VS Code crashed multiple time while attaching to a docker container. Below is the container log. What could be the issue, and how…
myquest4 sh
  • 371
  • 4
  • 16
3
votes
1 answer

Integrated shell changes back to bash every time I open remote workspace

I have tried to configure ZSH to be the default shell that is used for the integrated terminal. However, bash is opened every time even though ZSH is set as the default profile when connecting to a remote workspace (on a linux machine). Here is my…
Eric Wiener
  • 4,929
  • 4
  • 31
  • 40
3
votes
0 answers

How to run initialization commands after SSH in VS Code Remote?

Problem I am trying to connect to my school's computing cluster (aka a linux server with "login node" and "computing node") using VS Code's Remote SSH, but I cannot figure out how to run a command after SSH-ing. Goal I simply want to view Python…
3
votes
1 answer

How does VS Code handle file synchronization in a remote container?

I'm using VS Code Remote Container and I usually attach to an existing container in Kuberentes. I can edit files remotely but I'm not sure how VS Code caches the remote files/folders? Does it create any additional files or volumes locally in order…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
3
votes
0 answers

Why is Bracket Pair Colorizer 2 in Visual Studio Code not working for some files in WSL but is working for them in Windows?

I'm using Ubuntu WSL and VSCode. I am using the extension Bracket Pair Colorizer 2. In Windows, the extension works fine and colours all my brackets, including in .sol files. On WSL, it still colours brackets for .js and .css and others, but .sol…
3
votes
1 answer

Fast Refresh with Next.js development mode in VS Code Remote Container/devcontainer

I can't get Next.js' Fast Refresh feature to work with a VS Code Remote Container. I can run npm run dev and see the app running on localhost on my machine, so the container works fine - only the Fast Refresh has no effect at all. Next.js version:…
Bennett Dams
  • 6,463
  • 5
  • 25
  • 45
3
votes
1 answer

Persist conda env created during docker image creation

My Docker file in the .devcontainer folder in the root of my Python workspace looks like this FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3 RUN apt-get update RUN export DEBIAN_FRONTEND=noninteractive RUN apt-get -y install…
dumbledad
  • 16,305
  • 23
  • 120
  • 273