code-gnu-global icon indicating copy to clipboard operation
code-gnu-global copied to clipboard

File paths issue when using Mingw-w64 global.exe

Open rileyhulick opened this issue 7 years ago • 2 comments

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.

rileyhulick avatar Feb 18 '18 21:02 rileyhulick

Met the same issue and fixed by .replace(/^\/c\//, "/C:/"); :smiley:

YihaoPeng avatar May 24 '18 04:05 YihaoPeng

worked also for me. Please add!

schroeca avatar Apr 01 '19 09:04 schroeca