jaycetyle / vscode-gnu-global

Visual Studio Code GNU Global Extension
MIT License
33 stars 14 forks source link

spawnSync ENOENT in Remote-WSL and Remote-SSH #9

Open jaycetyle opened 5 years ago

jaycetyle commented 5 years ago

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.

xxyyttxx commented 5 years ago

I meet the same problem at macOS client, and fix with your solution.

HsuJv commented 3 years ago

@jaycetyle

Need the fix to this

We shall by default add the PATH to the spawnSync.env image

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.

jaycetyle commented 3 years ago

@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.

HsuJv commented 3 years ago

@jaycetyle

  1. Yes, the spawnSync works well with v0.3.5. Cheers!
  2. Fair enough, it explains why I get nothing worked since I'm setting this variable per workspace.

Regards.