-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path to mvn incorrect when wsl.conf changes the root mount #206
Comments
I didn't know the /etc/wsl.conf feature, and I find it in the official docs. Yes, it makes sense that we should support this. What's in my mind now is:
|
Less elegant but also less work would be to offer another field in the settings to specify the mount point, potentially read-only unless wsl bash is set as the default terminal. It might even be possible to interrogate that file for the mount setting when the user sets WSL-bash as the terminal shell to use. I only offer this as a quick fix, since it's a fragile approach. But considering the wsl.conf is only available in Insider builds, who knows whether Windows might add support to interrogate it through an SDK in the future. Plus, it's unlikely a Code user would be using an environment that they haven't configured if the default mount point was changed. So on seeing a path error when using the plugin, the user should know how to change it, especially if the plugin error message pointed out the setting. |
wslpath is for this, inspired by https://github.com/jdneo/vscode-leetcode/blob/master/src/utils/wslUtils.ts#L12-L17 default$ wslpath -u C:\\Windows
/mnt/c/Windows
$ wslpath -w /mnt/c/Windows
C:\Windows set the
|
@rdcoe v0.14.0 has been shipped. It should work now. |
Describe the bug
The maven plugin fails to execute if the /etc/wsl.conf changes the root mount point, because the plugin expects /mnt/ as the mount point.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The mvn path should refer to the correct mount point for wsl, i.e., / not /mnt/
Environments (please complete the following information as much as possible):
The text was updated successfully, but these errors were encountered: