Skip to content

VS Code from Microsoft

Download

Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. Users can change the theme, keyboard shortcuts, preferences, and install extensions that add additional functionality. (Wikipedia)

Remote SSH

There is package called Remote Development in VSCode which includes - Remote SSH - Remote WSL - Remote Containers

Although all might be useful, we try to make use of the first one Remote-SSH.

Kernel version is too old?

We are going to use a singularity container to run a more recent version of node and allow VSCode to use srvx8 as well. It will complain a bit, but work.

Here is how: 1. Login to srvx8 2. run /opt/containers/vscode-server/setup.sh 3. Look inside $HOME/.vscode-server/singularity.bash and make sure that path that you require are available in SINGULARITY_BIND variable. Your Home directory is always available. Other system path are not. - Maybe it is necessary to change the user shell of your account to bash. Run chsh -s /bin/bash on remote host (srvx8, ...) 4. Switch remote.SSH.localServerDownload to off in the Remote SSH package. 5. Setup a new host in Remote SSH on your VScode and connect to srvx8.

Configure a Python interpreter in VSCode according to the installed module: - SRVX8 : /home/opt/spack/opt/spack/linux-centos6-haswell/gcc-5.3.0/anaconda3-2020.07-opjqtspow2mjqthtdxvx7epz6rntkv2p/bin/python

Updates

Whenever the vscode-server reports an error, it might have happened that it automatically updated and a new version has been installed on the remote host. if so run ~/vscode-server/fix.sh to make the changes to the run scripts. Then it should work again.


Last update: January 26, 2023
Created: October 14, 2021