spmeesseman / vscode-taskexplorer

Run and Manage Tasks for Visual Studio Code
Other
141 stars 30 forks source link

Cannot run tasks with arguments #188

Open az-hienas opened 1 year ago

az-hienas commented 1 year ago

Hello,

I have installed extension in VS code inside a Dev Container environment.

Task explorer picks up on tasks and runs tasks fine when I click the run button, but when I try to right click and Run with arguments and then I type the argument I get the error:

Error running command taskExplorer.runWithArgs: The "path" argument must be of type string. Received undefined. This is likely caused by the extension that contributes taskExplorer.runWithArgs.

I am working on an M1 Mac in VS Code Dev Containers.

I have tried to install the extension directly on the host Mac and see if running with arguments works on the host, but it's even worse there, it doesn't even pick up the tasks. I've tried this on 2 different generations of Macbook Pros, will probably create a separate issue for this though.

Thank you

az-hienas commented 1 year ago

The extension also works fine with running tasks without arguments on a Remote Ubuntu machine via VS Code , but when I try to run tasks with arguments I get the same error as above.

I've tried running both bash scripts and python scripts which are the main types of files I would like to run with arguments

az-hienas commented 1 year ago

If it helps in anyway when trying to right click and open I get this error:

Error running command taskExplorer.open: Cannot read properties of undefined (reading '0'). This is likely caused by the extension that contributes taskExplorer.open.

Also when trying to run with no terminal I get:

Error running command taskExplorer.runNoTerm: The "path" argument must be of type string. Received undefined. This is likely caused by the extension that contributes taskExplorer.runNoTerm.