-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
api_key_vault_cmd
configuration option for shell command to get api key from vault fails with ENOENT
#387
Comments
First, vscode-wakatime/src/options.ts Lines 240 to 246 in e0a7f36
child_process.spawn treats the first argument as the program's executable name, and only treats it a shell command (ie. interpreted by sh with sh syntax) if the Second, that line in the documentation is quite misleading, at least in regards to
Edit: Oh, it was moved. |
Hi @vorburger that's not the way it should be used api_key_vault_cmd = pass any_defined_key |
@gandarez with This is a problem in public async getApiKeyFromVaultCmd(): Promise<string> {
try {
const apiKeyCmd = await this.getSettingAsync<string>('settings', 'api_key_vault_cmd');
if (!apiKeyCmd) return '';
const options = Desktop.buildOptions();
const proc = child_process.spawn(apiKeyCmd, options); where it treats the whole string as one executable. I've filed #386 to fix it. The |
I see. Let's just wait for @alanhamlett input. |
The
api_key_vault_cmd
configuration option which according to https://github.com/wakatime/wakatime-cli/blob/develop/USAGE.md can be used to specify a "shell command to get api key from vault" fails for me, on Linux, for example for a simple test like this in.wakatime.cfg
:I'm getting this in the VSC Developer Tools:
I'm intentionally opening this as a separate bug from #295 which seems to be Windows with specific restricted policy.
This is with
WakaTime.vscode-wakatime@24.4.0
(fromcode --list-extensions --show-versions
).The text was updated successfully, but these errors were encountered: