microsoft / microsoft/vscode-cmake-tools
Windows network drive as sourceDirectory
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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