Skip to content

Error when waf binary from PATH. #1

Description

@knowack1

Hi,

thank You for a very nice plugin.
In our environment we have waf binary installed in the system.
Hence my configuration is:
set makeprg=waf

Unfortunately this leads to an error:
"binary specified in 'makeprg' not found"

Currently I locally patch plugin sources to solve this problem:

--- a/plugin/buildmenu.vim
+++ b/plugin/buildmenu.vim
@@ -262,7 +262,7 @@ function! s:buildMenu.RunPreChecks() dict
                echoe "g:BuildmenuPosition contains illegal value! set it to 'left' or to 'right'"
        endif
 
-       if !filereadable(&makeprg)
+       if !executable(&makeprg)
                echoe = "error: binary specified in 'makeprg' not found (" . &makeprg . ")." . s:abortmsg
        endif

Maybe It is worth to consider above in master branch.

Thanks,
Karol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions