code-gnu-global
code-gnu-global copied to clipboard
File paths issue when using Mingw-w64 global.exe
Mingw-w64 converts between Posix and Windows paths for inputs but not for outputs, so using its version of global.exe results in paths that look like /c/path/to/file
rather than C:/path/to/file
. VSCode doesn't know what to do with file:///c/path/to/file
so this results in basically every symbol lookup giving me "file not found" errors.
I was able to get this to work on my system by modifying src/global.js. On line 50:
var path = values.shift().replace("%20", " ");
I appended:
.replace(/^\/c\//, "/C:/");
EDIT: I'm mistaken in my terminology: it's MSYS2 that does the path conversion stuff, and MSYS2 whose global.exe I'm using. Mingw-w64 is the build environment.
Met the same issue and fixed by .replace(/^\/c\//, "/C:/");
:smiley:
worked also for me. Please add!