Open jaycetyle opened 5 years ago
I meet the same problem at macOS client, and fix with your solution.
@jaycetyle
Need the fix to this
We shall by default add the PATH to the spawnSync.env
And if possible, please have another release Regards.
P.S. Another thing is gnuGlobal.gtagsExecutable & gnuGlobal.globalExecutable seem somehow not work on my v0.3.4 plugin.
I've got no ideas about it so far. I'll have further investigation when free.
@HsuJv Many thanks for your help!! I've add the PATH to spawnSync env as you suggested and release v0.3.5. Please try it.
By the way, due to security issues, gnuGlobal.gtagsExecutable and gnuGlobal.globalExecutable cannot be set in workspace since v0.3.4, but they should still be able to set in user or remote settings.
@jaycetyle
Regards.
If we run command in Remote mode, it well report 'ERR spawnSync global ENOENT: Error: spawnSync global ENOENT'.
It can be fixed by given exe path like { "gnuGlobal.gtagsExecutable": "/usr/local/bin/gtags", "gnuGlobal.globalExecutable": "/usr/local/bin/global" }
Not sure why this happened, but it could be enhanced.