You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having an issue with incorrect detection of the drive C mount point in WSL2 as mentioned in issue #218, despite this having been fixed in PR #219. It was detecting it according to my old configuration even though I'd changed it back to /mnt/c by commenting out the lines in wsl.conf. After removing the commented lines it worked as expected.
Looking at this commit in the PR, the problem seems to be the regex which isn't excluding lines that start with #. The problem does not occur if I add a negative lookbehind:
I was having an issue with incorrect detection of the drive C mount point in WSL2 as mentioned in issue #218, despite this having been fixed in PR #219. It was detecting it according to my old configuration even though I'd changed it back to
/mnt/c
by commenting out the lines in wsl.conf. After removing the commented lines it worked as expected.Looking at this commit in the PR, the problem seems to be the regex which isn't excluding lines that start with
#
. The problem does not occur if I add a negative lookbehind:const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
The text was updated successfully, but these errors were encountered: