Using Calva with Remote Development¶
VS Code Remote Development is a new feature in version 1.35 of VS Code that allows a developer to use a container, remote machine, or the Windows Subsystem for Linux (WSL) as a full-featured development environment.
I would recommend reading the introductory blog post and watching the videos. I find the feature extremely exciting and wish more IDEs would implement something like it.
From a Clojure perspective it allows you to have VS Code installed on your Java-less, Clojure-less hardware and still use it to develop Clojure through it.
- for some reason your physical computer has to be running Windows (organisational rules etc.)
- your deployment environment is Linux
- you want to edit files in an editor running on your physical computer
- most Clojure tooling is made with *nix first in mind and there are incompatibilities with Windows
Steps I took to try Calva with remote development in WSL¶
Disclaimer: I only went as far as trying it in a very basic scenario so I don’t know yet if there are any caveats down the line.
- Windows 10 Home
- Enable WSL
- Install Ubuntu in WSL
- Install Java in WSL
- Install latest Clojure in WSL
- Install the Remote - WSL extension in VS Code
- Launch remote window
- Install Calva (gets installed into the WSL instance)
- Work away