Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Null-ls is not registering any sources #1624

Open
3 of 5 tasks
damorenor opened this issue Jul 11, 2023 · 1 comment
Open
3 of 5 tasks

Null-ls is not registering any sources #1624

damorenor opened this issue Jul 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@damorenor
Copy link

damorenor commented Jul 11, 2023

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 / lsp

Steps to Reproduce

  1. Deleted my previous nvim config files (where I installed plenty of formatters)
  2. Plugged new minimal nvim config files
  3. :PackerSync
  4. :echo executable('stylua')
  5. :NullLsInfo

Reproducibility Check

  • I confirm that my minimal config is based on the minimal_init.lua template and that my issue is reproducible by running nvim --clean -u minimal_init.lua and 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.
@damorenor damorenor added the bug Something isn't working label Jul 11, 2023
@salimp2009
Copy link

salimp2009 commented Jul 12, 2023

I added stylua and it looks like it is working
image
and from my null-ls config
image
I also diabled formatting in lua_ls settings
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants