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

global doesn't work on win7

Open doubao86 opened this issue 6 years ago • 1 comments

Hi there,

GNU global doesn't work with vscode on my Windows 7, it has annoyed me for some days. I've googled for the below error, but failed to solve it:

[Extension Host] Error: Error: spawn C:\Windows\system32\cmd.exe;C:\Program Files\Java\bin ENOENT `global --encode-path " " -xa QPayDecrypt3DES` (exited with error code ENOENT)

What makes me confused is that why there is some java/bin path in the above error message:(

The related configure is:

"contributes":{
	"configuration":{
		"codegnuglobal.executable": "C:\\gnu_global\\bin\\global.exe",
	},
},

And my system PATH is like this:

C:\gnu_global\bin\;...

And if I execute the command on the console inside vscode, it works.

What is the problem? any help will be appreciate.

doubao86 avatar Sep 13 '18 01:09 doubao86

Please check you environment var set : ComSpec should be : %SystemRoot%\system32\cmd.exe not be %SystemRoot%\system32\cmd.exe ;C:\Program Files\Java\bin

ragcatshxu avatar Sep 13 '18 14:09 ragcatshxu