mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
checkhealth: ignore 'wildignore' when seeking executables (#14495)
Certain values of 'wildignore', .e.g `*/node_modules/**`, would make the provider checks not find the right executables. Fixes https://github.com/neovim/neovim/issues/14388
This commit is contained in:
@@ -50,7 +50,7 @@ endfunction
|
|||||||
function! provider#node#Detect() abort
|
function! provider#node#Detect() abort
|
||||||
let minver = [6, 0]
|
let minver = [6, 0]
|
||||||
if exists('g:node_host_prog')
|
if exists('g:node_host_prog')
|
||||||
return [expand(g:node_host_prog), '']
|
return [expand(g:node_host_prog, v:true), '']
|
||||||
endif
|
endif
|
||||||
if !executable('node')
|
if !executable('node')
|
||||||
return ['', 'node not found (or not executable)']
|
return ['', 'node not found (or not executable)']
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function! provider#pythonx#Require(host) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_python_executable_from_host_var(major_version) abort
|
function! s:get_python_executable_from_host_var(major_version) abort
|
||||||
return expand(get(g:, 'python'.(a:major_version == 3 ? '3' : '').'_host_prog', ''))
|
return expand(get(g:, 'python'.(a:major_version == 3 ? '3' : '').'_host_prog', ''), v:true)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_python_candidates(major_version) abort
|
function! s:get_python_candidates(major_version) abort
|
||||||
@@ -44,7 +44,7 @@ function! provider#pythonx#DetectByModule(module, major_version) abort
|
|||||||
let python_exe = s:get_python_executable_from_host_var(a:major_version)
|
let python_exe = s:get_python_executable_from_host_var(a:major_version)
|
||||||
|
|
||||||
if !empty(python_exe)
|
if !empty(python_exe)
|
||||||
return [exepath(expand(python_exe)), '']
|
return [exepath(expand(python_exe, v:true)), '']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let candidates = s:get_python_candidates(a:major_version)
|
let candidates = s:get_python_candidates(a:major_version)
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:detect()
|
function! s:detect()
|
||||||
if exists("g:ruby_host_prog")
|
if exists("g:ruby_host_prog")
|
||||||
return expand(g:ruby_host_prog)
|
return expand(g:ruby_host_prog, v:true)
|
||||||
elseif has('win32')
|
elseif has('win32')
|
||||||
return exepath('neovim-ruby-host.bat')
|
return exepath('neovim-ruby-host.bat')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user