vscode-runner icon indicating copy to clipboard operation
vscode-runner copied to clipboard

Missing env vars

Open hazg opened this issue 8 months ago • 1 comments

I use mise as an environment variables manager When loading a project through the plugin, the vscode extensions stop seeing the paths to the executables. I have to write them manually where possible, but this is not a cure-all.

/usr/bin/env: 'ruby': No such file or directory

for example

When loading just through krunner, terminal or shortcut - everything is ok.

internal terminal vscode - all ok, the problem is in vscode extensions that do not allow to specify paths.

hazg avatar May 08 '25 05:05 hazg

That sounds like it might be a bug with Mise, as we open the VS Code workspace simply by calling the executable the same way you would from a terminal:

https://github.com/Merrit/vscode-runner/blob/61d0aca941a485f9df539f8c1fe78dbca5ec539b/bin/vscode_runner.dart#L274

Which would be something like:

code --folder-uri=<uri>

We don't do anything with env vars.

Merrit avatar May 08 '25 17:05 Merrit