-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
append ".cmd" to command arg0 if it fails on Windows #2130
Comments
I don't check the system c code but can we do it like |
possibly. |
yup it not work in event loop unless we set |
What is the current state? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I'd recommend using https://github.com/williamboman/mason-lspconfig.nvim if you're on Windows. It patches the commands for you automatically. |
This would be such a terrific addition! I just tore my hair out with this error! An lsp was erroring out because the language server command did not exist, I make sure to add it to the path, and still no dice. Once I added the .cmd to the end of the lsp start command it magically worked. Thank you so much for noticing! It makes me incredibly happy that I was not the only one with this issue. |
Problem
Commonly on Windows, some commands require the
.cmd
suffix. This is often missed, leading to issues like #2032 , and the solution is copy-pasted into configs: #2039Proposal
@williamboman #2032 (comment) :
Or is there a reason why we don't use
vim.fn.system()
(which should do this automatically) instead ofuv_spawn
(vim.loop.spawn
))? (Probably the reason is: that doesn't work in Lua "fast" callbacks)The text was updated successfully, but these errors were encountered: