frigidcode

frigidcode

Has anyone had any luck using VSCode (win 10) and WSL (asdf elixir/erlang) with Elixir LS? I’m not even sure its possible, I am curious to if it will work and if anyone has it working then what is involved?

VSCode will run in Windows 10
Projects + Elixir + Erlang would run via WSL
ElixirLS would need its language server to run in WSL and communicate with VSCode in Windows 10.

Showing Posts 14 to 5

robert

robert

Also working here, Set elixir in the wsl 2 and use vscode in windows with wsl remote.
in wsl 2 terminal, run “code ‘somedirwithyourcode’” install the elixir LS extension in the wsl and that’s all.

benperiton

benperiton

Ok thanks, looks like there’s something weird going on with my PATH so elixir is not starting … I’ll have a play

toberoni

toberoni

Indeed, it works like a charm.

During the last weeks I’ve been using the remote WSL extension with the VSCode Insiders build. I can now keep everything in WSL. Autocomplete, syntax highlighting and Git all work seamlessly.

olivermt

olivermt

Yes. Took me two min to set up.

benperiton

benperiton

Is this possible using the remote Wsl extension now?

cnck1387

cnck1387

You can configure VSCode (on Windows) to use git that’s installed in WSL. I don’t even have git installed on Windows but the VSCode Git integration works.

One key thing is to keep all of your source code outside of WSL’s file system, so it gets mounted in by WSL. Then you’ll have no problem opening and modifying the files from Windows or directly in WSL if you use nano or something.

olivermt

olivermt

I went back to running vscode from windows just keeping everything else in wsl. The main thing to run in wsl natively is git due to how git on windows does weird things with ntfs that somehow makes wsl folders either unreadable without a reboot or just plain corrupts them.

cnck1387

cnck1387

Hey, good luck with the set up and if you have any questions let me know. Also thanks for the support!

bevo009

bevo009

Well hello Nick, I started using MobaXterm after following one of your excellent tutorials. :slight_smile:

That video and included references looks just what I’m after, I’ll let you know how I go with it.

You’ve been very prolific, I may end up doing your docker course once I get through all the free tutorials, it might save me some time cross-referencing umpteen blogs and books. I’ve had docker on my to-do list for a while, and using the windows version of vs code via wsl is a pretty great motivation. (I’m doing the tmux tutorial atm so I have a bit to go yet).

Thanks!

cnck1387

cnck1387

I use WSL full time and VSCode (installed on Windows).

However, I also run my web apps in Docker so I don’t have to worry about installing things directly inside of WSL’s filesystem. At some point in the future VSCode is going to support seamlessly finding interpreter and library code running in a container instead of the local machine, so if you happen to use Docker, you’ll get the best of both worlds.

For the time being, I don’t even use extensions like Elixir-LS. I just installed vscode-elixir to get syntax highlighting.

Overall I’m super happy with the set up. I never liked heavy auto-complete because I find it creates micro-stutters and 95% of the time it gets in the way. My philosophy has always been to use snippets (works just fine with WSL) to help deal with code complete / boilerplate.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews