question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Windows] Add `wslMode` to settings

See original GitHub issue

It seems the WSL mode in Windows is very powerful, as it allows to keep all tools in their original OSX/Linux versions and plug them in into the native Windows IDEs.

Adding a setting to enable wslMode would allow Windows users to quickly configure the extension without the need to install bridges or any other hack, and it would allow us to tweak the data that goes from the server to the VSCode client, to make sure everything works properly.

A couple of use cases for this setting:

  • Prepending bash -ic to paths: so instead of having to install ocaml-on-windows, just adding this setting on VSCode would work
  • Adapting file paths: because bsb or merlin would be running on Linux mode, we would need to adapt from file:///mnt/c/project/myFile.re to C:\project\myFile.re so the diagnostics work properly (underline text on file, double click to open, etc)

There are probably more cases.

@freebroccolo @chenglou @superherointj

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Mar 17, 2018

@jchavarri yeah, in OCaml.

I’ll just add btw that if someone wants to create a PR for the current implementation that gets WSL working in a robust way, I’m happy to merge that as a temporary measure. I’m just spread a bit thin with other projects at the moment and it’s kind of hard to justify putting a lot more energy into a rewrite of the current server core in typescript if the intention is to move on to something better soon after anyway.

2reactions
superherointjcommented, Oct 11, 2017

There was a breakthrough in thinking by realizing BuckleScript couldn’t be used on native Windows because it was generating invalid Merlin files and that was causing problems with Merlin.

  • Automating adding ‘bash -ci’ prefix is a convenience change.

  • Right now, the most important thing to happen to get extension working w/ Windows & WSL is to fix Unix/Windows path translation issue .

#TheOneWindowsThing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced settings configuration in WSL - Microsoft Learn
A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem ...
Read more >
Setting Up Windows Subsystem for Linux (WSL) and Windows ...
Setting Up Windows Subsystem for Linux (WSL) and Windows Terminal. 1. Enable Developer Mode. Open the Settings app and click Update & Security...
Read more >
Stepwise Guide to Enable Windows 10 Subsystem for Linux
To enable the Windows Subsystem for Linux (Beta), open the Control Panel, click Programs and Features, and click Turn Windows Features On or...
Read more >
Setup Windows Subsystem Linux (WSL) on Windows 10
Before activating the WSL, we need to activate the developer mode in windows. Open Windows settings and click on the Update & Security...
Read more >
How to set up Linux on Windows with WSL 2 | by Sigrid Huemer
1. Enable WSL · 2. Check if virtualization is enabled · 3. Enable Virtual Machine feature · 4. Restart machine · 5. Download...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found