This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
null-ls trying to use user folder as command name on windows #1598
Labels
bug
Something isn't working
FAQ
Issues
Neovim Version
v0.9.1
Dev Version?
Operating System
Windows 11
Minimal Config
Steps to Reproduce
Have a Node Js installed
created a file sample.js
Ran the file and it worked and gave output as expected.
Execute the formatter:
:lua vim.lsp.buf.format()
Reproducibility Check
minimal_init.lua
template and that my issue is reproducible by runningnvim --clean -u minimal_init.lua
and following the steps above.Expected Behavior
The miss-formatted text should get formatted
Actual Behavior
Null-ls trying to use user folder as command name on windows 11. The file is not getting formatted
Debug Log
[TRACE 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/client.lua:97: starting null-ls client
[TRACE 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:102: received LSP request for method initialize
[TRACE 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method initialized
[TRACE 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method textDocument/didOpen
[TRACE 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS_ON_OPEN
[DEBUG 19-06-2023 03:33:03 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:24: no generators available
[TRACE 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:102: received LSP request for method textDocument/formatting
[TRACE 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_FORMATTING
[DEBUG 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:321: spawning command "prettier" at D:\Code Files\Javascript with args { "--stdin-filepath", "D:\Code Files\Javascript\loops.js" }
[TRACE 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:205: error output: 'C:\Users\Argon' is not recognized as an internal or external command,
operable program or batch file.
[TRACE 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:206: output: nil
[TRACE 19-06-2023 03:33:47 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:210: ignoring stderr due to generator options
[TRACE 19-06-2023 03:33:56 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method textDocument/didOpen
[TRACE 19-06-2023 03:33:56 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS_ON_OPEN
[DEBUG 19-06-2023 03:33:56 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:24: no generators available
[TRACE 19-06-2023 03:34:19 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method textDocument/didChange
[TRACE 19-06-2023 03:34:19 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS
[DEBUG 19-06-2023 03:34:19 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:24: no generators available
[TRACE 19-06-2023 03:34:21 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method textDocument/didSave
[TRACE 19-06-2023 03:34:21 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS_ON_SAVE
[DEBUG 19-06-2023 03:34:21 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:24: no generators available
[TRACE 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/rpc.lua:102: received LSP request for method textDocument/formatting
[TRACE 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_FORMATTING
[DEBUG 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:321: spawning command "prettier" at D:\Code Files\Javascript with args { "--stdin-filepath", "D:\Code Files\Javascript\rst.js" }
[TRACE 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:205: error output: 'C:\Users\Argon' is not recognized as an internal or external command,
operable program or batch file.
[TRACE 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:206: output: nil
[TRACE 19-06-2023 03:34:27 PM] C:/Users/Argon/AppData/Local/nvim-data/lazy/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:210: ignoring stderr due to generator options
Help
Yes, but I don't know how to start. I would need guidance
Implementation Help
If there is a mistake from my side or the error is causing due to my config file then I would need help to fix it.
Requirements
The text was updated successfully, but these errors were encountered: