Closed kubamus closed 1 month ago
I would appreciate an update for this, I am facing the same issue... Is there any workaround for now?
I would appreciate an update for this, I am facing the same issue... Is there any workaround for now?
Unfortunately I haven't found any workaround for this problem. Now I have a new Windows system with a fixed username, so I can't help any more.
Duplicate of #252. Looks like an upstream issue in Neovim or libuv
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
windows 11
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
Log file: C:\Users\Kuba M\AppData\Local\nvim-data\conform.log
Formatters for this buffer: LSP: lua_ls stylua ready (lua) C:\Users\Kuba M\AppData\Local\nvim-data\mason\bin\stylua.CMD
Describe the bug
Conform can't use a formatter because of how it handles paths with spaces. Why do I think it's because of the spaces? Just look at the 1st error in the log file, it truncates "C:\Users\Kuba M" (my windows user) to "C:\Users\Kuba" (which is an invalid user). The "stylua" formatter is located in "C:\Users\Kuba M\Documents\kuba\path".
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
Just install this plugin, and have a path to the formatter in PATH variable that contains spaces, e.g. "C:\Users\Kuba M\Documents\kuba\path"
Expected Behavior
I expect it to handle spaces and format my code.
Minimal example file
Not applicable
Minimal init.lua
Additional context
No response