- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to spawn .cmd executables on windows #111
Comments
I've just tested this on my Linux machine and can not replicate the error - so it's isolated to Windows 11. gofmt is working fine in both os |
None of us have a windows device I believe. Attach a lot of debugging info and also try to fix the issue yourself. Make sure/check that the process is executable ( |
I personally don't see an obvious issue so :( And as you said it's your win machine only so if it's not a |
You need to add {
cmd = "prettier.cmd",
args = { '--stdin-filepath' },
fname = true,
stdin = true,
} |
@UnderCooled thanks for helping out with this. I looked at the I'm not accustomed to windows systems - isn't it true that some of the programs that, for example, guard-collection uses, could be If that's the case, I'm not sure how we could resolve this besides offering a warning to windows systems that no extension is specified. |
@barrett-ruth you can patch guard.nvim/lua/guard/spawn.lua Line 38 in 394317c
local cmd = vim.fn.exepath(opt.cmd) :echo exepath('npm')
D:\dev_env\lang\node\npm.CMD |
fix(#111): resolve windows executable paths
Revert "fix(#111): resolve windows executable paths"
closes #68 #86 #123 #109 #76 #141 #111 ## changes - [x] remove uv.spawn wrapper in favour of vim.system - [x] `do_lint` now respects *all* config fields - [x] linter can now use lnum_end and col_end - [x] added step by step tutorial for advanced usage - [x] remove all version checking code, only supports 0.10+ from now on - [x] apply exepath fix for windows ## internal changes - [x] events now contains truly all autocmd related functions - [x] utils now contains execution checking functions - [x] use custom simpler table copy
:checkheath guard
shows prettier as executablebut when testing prettier on an HTML file I get the message:
[Guard] failed to spawn process prettier
This is my config:
running
cat index.html | prettier --stdin-filepath index.html
from the commandlne outputs the formatted file with no errors.Any ideas what I can check/test to try and get this working?
The text was updated successfully, but these errors were encountered: