From 4067963867e2320017cb4b133e3253979fdc2032 Mon Sep 17 00:00:00 2001 From: Robert Young Date: Mon, 14 Sep 2026 10:24:15 -0400 Subject: [PATCH] updated vscode troubleshooting --- .../09_vscode_remote_ssh_torch.mdx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/hpc/06_tools_and_software/09_vscode_remote_ssh_torch.mdx b/docs/hpc/06_tools_and_software/09_vscode_remote_ssh_torch.mdx index 89aba1e2c3..53ae4543f2 100644 --- a/docs/hpc/06_tools_and_software/09_vscode_remote_ssh_torch.mdx +++ b/docs/hpc/06_tools_and_software/09_vscode_remote_ssh_torch.mdx @@ -37,9 +37,16 @@ Once connected, open a terminal in the VSCode remote session. The prompt should :::tip[Troubleshooting] If you get an error message stating that the device is out of space, but you still have space in your personal directory, it could be that `/tmp` on the remote host does not have enough space for the install. -You can have the VSCode installer use a temporary directory of your choosing (`/scratch/NetID/.vscode-tmp`) instead of `/tmp` by adding the following line to the block for the Torch login node in your `.ssh/config` file: +You can have the VSCode installer use a temporary directory of your choosing instead of `/tmp` by adding the environment variable TMPDIR. + +Please add the following line to `~/.bash_profile` on Torch: +``` +export TMPDIR="${TMPDIR:-${SLURM_TMPDIR:-/scratch/${USER}/TMPDIR}}" +``` + +Please also create the directory: ``` -SetEnv TMPDIR=/scratch/NetID/.vscode-tmp +mkdir -p /scratch/${USER}/TMPDIR ``` -You'll need to replace `NetID` above with your NetID +Please make sure the directory exists and is accessible before running your jobs. :::