tw1nk / waf-task-provider

A Visual Studio Code plugin for detecting tasks from wscript files used in the https://waf.io buildsystem
MIT License
1 stars 0 forks source link

Waf Not Found #1

Open davidbitton opened 3 years ago

davidbitton commented 3 years ago

The only instance of "waf" is in the root of the workspace. Why would I be getting:

> Executing task: waf AP_Periph <

zsh:1: command not found: waf
The terminal process "/bin/zsh '-c', 'waf AP_Periph'" terminated with exit code: 127.

Press any key to close the terminal.

and i have this in my tasks.json file:

            "options": {
                "cwd": "${workspaceFolder}/"
            },

What else should I be doing? Thanks.

tw1nk commented 3 years ago

I think you need to make the waf file executable chmod +x waf

Or you could modify https://github.com/tw1nk/waf-task-provider/blob/master/src/utils.ts#L43 to be: let commandLine = 'python waf --help';

as waf is just a python file.

I haven't touched this in a really long time and it was more of a proof of concept to see if it would work.

davidbitton commented 3 years ago

@tw1nk it worked with the change