microsoft / microsoft/vscode-cmake-tools

Windows network drive as sourceDirectory

Open
#2,607 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: remote question
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

I run VSCode on a Windows machine and I run Ubuntu on WSL. My source code is on the Ubuntu machine which I can access as a network drive from Windows, using the following path: `\\wsl$\Ubuntu-22.04\...`

If I open my source code folder in VSCode the `${workspaceFolder}` variable will be correctly set to `\\wsl$\Ubuntu-22.04\my_project`
The source directory is set in `settings.json` as `"cmake.sourceDirectory": "${workspaceFolder}"`

With this setup I get the following error message when configuring the project:
`"sourceDirectory" is not a directory {"sourceDirectory":"/wsl$/Ubuntu-22.04/my_project"}`

The problem seems to be caused by double slashes being replaced with single ones.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce configuration in VS Code on Windows with WSL and `cmake.sourceDirectory` set to `${workspaceFolder}` for a `\\wsl$\Ubuntu-22.04\...` path. Trace how the source directory is converted before the reported validation, and consider the issue done when the network-drive path remains valid and configuration succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.