cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Development scripts don't work on VSCode if using WSL workspace

Open wolfmanstout opened this issue 3 years ago • 1 comments

Logging this in case others run into the same problem. Not only does it not work but it'll add unwanted extensions to your VSCode installation, so it's best to avoid. The root cause is that --extension-dir is ignored when running VSCode via WSL (it logs Ignoring option 'extensions-dir': not supported for code.). Neither "Run Extension" or "Extension Tests" work, presumably due to this.

The workaround is straightforward: install the native Windows version of Node.js and use a non-WSL workspace. Everything works fine through Powershell.

I'm happy to add a quick note to the documentation to help others avoid this, perhaps on Step 2 here: https://www.cursorless.org/docs/contributing/

wolfmanstout avatar Aug 19 '22 06:08 wolfmanstout

Yikes.

I'd be inclined to do two things:

  • Add to the docs, as suggested.
  • Detect the missing support for --extensions-dir somehow. I'm not sure how hard this would be.

auscompgeek avatar Aug 19 '22 22:08 auscompgeek