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

Null-ls is not registering any sources #1624

@damorenor

Description

@damorenor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions