Skip to content

Windows hosts and WSL

Ferris IDEA’s window runs on macOS and Linux; there is no Windows build of the window. A Windows machine can still be the host of a remote project: the window on your Mac or Linux computer connects over SSH and runs a Windows build of the backend there.

Preview. Windows hosts are In progress: the backend is built for Windows on x86-64 and arm64. Opening a folder, the upload and its checksum, files, search, runs, terminals, agent tools and reconnecting after a broken connection have been checked on Windows 11 on arm64 over SSH; the x86-64 build, WSL and the project window against a Windows host are not checked yet. Use it to try things, not for work you cannot lose.

  • OpenSSH Server on Windows, version 9.0 or later, so it offers a post-quantum key exchange, with key login for your account. Check from your computer:

    Terminal window
    ssh win-host.example hostname

    Prints the host's name when your key and the host key are in place; Ferris IDEA then also requires the post-quantum key exchange.

  • The Windows backend builds next to your program (backends/ beside it, or the folder in FERRIS_IDEA_BACKENDS_DIR), built with scripts/build-backends.sh.

  1. Choose File › Remote Development… and pick or type the host as for any SSH host.
  2. Type the folder as a Windows path, for example C:\Users\you\Projects\demo-shop.
  3. Ferris IDEA detects the system through PowerShell, uploads the backend to %LOCALAPPDATA%\ferris-idea\bin\ under a name with its version and a part of its SHA-256, and compares the checksum before it moves the file into place and before each start.

The project window then works as described in Work on a remote host over SSH.

Where Ferris IDEA protects something on Unix with owner-only file modes, a private folder or a Unix socket, a Windows equivalent of at least the same strength does not exist yet. There the operation is refused with not supported on this platform yet; it never runs with less protection.

On a Windows host Why
A broken connection starts a new backend instead of resuming the old one; open documents are reconciled with the files on the host, as after a host restart The resume socket is a Unix socket
Debugging with js-debug, Delve and Java is refused Their adapters would listen on a loopback port that every local account can reach
Git over SSH from the host uses a POSIX helper script Not yet checked on Windows

Language servers, search, Git, terminals, runs and the host’s agent tools go through the backend like on any other host. Paths show without the \\?\ prefix Windows uses internally.

A terminal on a Windows host starts PowerShell 7 if it is installed, else Windows PowerShell, else the command interpreter in %ComSpec%, by its full path, in the project folder. Agent commands (terminal_command) run the same way, with PowerShell as -NoLogo -NoProfile -NonInteractive -Command <command>, so write them in PowerShell syntax. When the timeout passes, the command and every process it started are ended.

In progress A WSL distribution is written as wsl://<distribution> followed by a folder, for example wsl://Ubuntu /home/you/demo-shop, and is reached through wsl.exe without SSH. WSL is a local channel of Windows, so this host string works only in a window that runs on Windows, and there is no Windows build of the window yet. On macOS and Linux a wsl:// host is refused with that reason.

To work in a WSL distribution today, run OpenSSH Server inside the distribution and connect to it as an SSH host from another machine, or start ferris-idea-serve serve <folder> --pair inside it and pair with it.

remote_host_probe reports a host’s system and processor and the backend that would be used, without changing anything; remote_project_open takes a Windows path as the folder.

  • remote_host_probechangessshWhat opening a host would use, without changing anything (SPEC-0321, Experimental): the transport, the host's system and processor, and the backend build picked for it.
  • remote_project_openchangesdry run by defaultrunsshOpen a folder on an SSH host as a remote project (experimental): this build's backend runs on the host (found or uploaded, checked by SHA-256) and owns the documents; the session survives network breaks.