This repository was archived by the owner on Aug 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 761
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
Null-ls is not registering any sources #1624
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
FAQ
- I have checked the FAQ and it didn't resolve my problem.
Issues
- I have checked existing issues and there are no issues with the same problem.
Neovim Version
0.9.1
Dev Version?
- I am using a stable Neovim release version, or if I am using a dev version of Neovim I have confirmed that my issue is reproducible on a stable version.
Operating System
Linux - Ubuntu 20.04 (WSL
Minimal Config
-- to the minimal config just add stylua
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
},
})
-- and in packer Mason / lspSteps to Reproduce
- Deleted my previous nvim config files (where I installed plenty of formatters)
- Plugged new minimal nvim config files
- :PackerSync
- :echo executable('stylua')
- :NullLsInfo
Reproducibility Check
- I confirm that my minimal config is based on the
minimal_init.luatemplate and that my issue is reproducible by runningnvim --clean -u minimal_init.luaand following the steps above.
Expected Behavior
Null-ls should be able to recognize the sources available 😄
Actual Behavior
While running NullLsInfo it says:
* Note: current buffer has no sources attached
Stylua (and other formatter, i.e. like black) is present on Mason and it is executable both outside and inside of nvim, since
:echo executable('stylua') returns 1
btw, thanks to @jose-elias-alvarez for such an amazing job! 😏
Debug Log
[WARN Thu Jul 6 16:10:05 2023] /home/dmoreno/.local/share/nvim/site/pack/packer/start/null-ls.nvim/lua/null-ls/generators.lua:94: failed to run generator: ...site/pack/packer/start/null-ls.nvim/lua/null-ls/loop.lua:165: command stylua is not executable (make sure it's installed and on your $PATH)
Help
No
Implementation Help
No response
Requirements
- I have read and followed the instructions above and understand that my issue will be closed if I did not provide the required information.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working