doom-nvim icon indicating copy to clipboard operation
doom-nvim copied to clipboard

[BUG] module 'null-ls' not found:

Open baurmatt opened this issue 3 years ago • 0 comments
trafficstars

Current Behavior:

Opening a new YAML file (e.g. /tmp/test.yaml) triggers an error:

Error detected while processing BufWinEnter Autocommands for "*.yaml":
E5108: Error executing lua ...baur/.config/nvim/lua/doom/modules/langs/config/init.lua:55: module 'null-ls' not found:
        no field package.preload['null-ls']
        no file './null-ls.lua'
        no file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/null-ls.lua'
        no file '/usr/local/share/lua/5.1/null-ls.lua'
        no file '/usr/local/share/lua/5.1/null-ls/init.lua'
        no file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/null-ls.lua'
        no file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/null-ls/init.lua'
        no file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/null-ls.lua'
        no file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/null-ls/init.lua'
        no file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/null-ls.lua'
        no file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/null-ls/init.lua'
        no file './null-ls.so'
        no file '/usr/local/lib/lua/5.1/null-ls.so'
        no file '/opt/homebrew/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/null-ls.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/Users/mbaur/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/null-ls.so'
stack traceback:
        [C]: in function 'require'
        ...baur/.config/nvim/lua/doom/modules/langs/config/init.lua:55: in function <...baur/.config/nvim/lua/doom/modules/langs/config/init.lua:44>
        [string ":lua"]:1: in main chunk

Expected Behavior:

Opens without error :)

Steps To Reproduce:

  1. Deploy doom-nvim 4.0.2 on MacOS
  2. With this config:
diff --git a/config.lua b/config.lua
index b21b463..a383a70 100644
--- a/config.lua
+++ b/config.lua
@@ -13,6 +13,7 @@
 --     require("surround").setup({mappings_style = "sandwich"})
 --   end
 -- })
+doom.use_package("rodjek/vim-puppet", "godlygeek/tabular")

 -- ADDING A KEYBIND
 --
@@ -41,6 +42,16 @@
 --   { "FileType", "javascript", function() print('This is a javascript file') end }
 -- })

+-- ADDING VIM configuration
+--
+doom.preserve_edit_pos = true
 doom.indent = 2
+doom.clipboard = false
+doom.max_columns = 200
+doom.disable_numbering = true
+doom.relative_num = false
+
+vim.opt.foldenable = false
+vim.opt.mouse = ''

 -- vim: sw=2 sts=2 ts=2 expandtab
diff --git a/modules.lua b/modules.lua
index 9912e20..27ea364 100644
--- a/modules.lua
+++ b/modules.lua
@@ -59,7 +59,7 @@ return {
     -- Scripts
     "lua",
     "python",
-    -- "bash",
+    "bash",
     -- "fish",

     -- Web
@@ -79,10 +79,10 @@ return {
     -- "kotlin",
     -- "java",

-    -- "config",          -- JSON, YAML, TOML
-    -- "markdown",
-    -- "terraform",       -- Terraform / hcl files support
-    -- "dockerfile",
+    "config",          -- JSON, YAML, TOML
+    "markdown",
+    "terraform",       -- Terraform / hcl files support
+    "dockerfile",
   },
 }
  1. Open a new YAML file: vim /tmp/test.yaml

Logs

Check Health Output

nvim: health#nvim#check

Configuration

  • OK: no issues found

Performance

  • OK: Build type: Release

Remote Plugins

  • OK: Up to date

terminal

  • INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
  • INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  • INFO: $TERM_PROGRAM='iTerm.app'
  • INFO: $COLORTERM='truecolor'

nvim-lsp-installer: require("nvim-lsp-installer.health").check()

nvim-lsp-installer report

  • OK: neovim version >= 0.7.0
  • OK: Go: go version go1.18.3 darwin/arm64
  • WARNING: cargo: not available
  • WARNING: luarocks: not available
  • OK: Ruby: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin21]
  • OK: RubyGem: 3.2.3
  • WARNING: Composer: not available
  • OK: PHP: PHP 8.1.8 (cli) (built: Jul 8 2022 10:46:35) (NTS)
  • OK: npm: 8.16.0
  • OK: node: v18.6.0
  • OK: python3: Python 3.9.13
  • OK: pip3: pip 22.1.1 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
  • OK: javac: javac 18.0.1
  • OK: java: openjdk version "18.0.1" 2022-04-19
  • WARNING: julia: not available
  • OK: wget: GNU Wget 1.21.3 built on darwin21.3.0.
  • OK: curl: curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
  • OK: gzip: Apple gzip 353.100.22
  • OK: tar: bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8
  • OK: bash: GNU bash, version 5.1.16(1)-release (aarch64-apple-darwin21.1.0)
  • OK: sh: Ok
  • OK: GitHub API rate limit. Used: 1. Remaining: 59. Limit: 60. Reset: Mon Aug 15 14:40:50 2022.

nvim-treesitter: require("nvim-treesitter.health").check()

Installation

  • OK: tree-sitter found 0.20.6 (parser generator, only needed for :TSInstallFromGrammar)
  • OK: node found v18.6.0 (only needed for :TSInstallFromGrammar)
  • OK: git executable found.
  • OK: /opt/homebrew/bin/gcc-11 executable found. Selected from { "/opt/homebrew/bin/gcc-11", "cc", "gcc", "clang", "cl", "zig" } Version: gcc-11 (Homebrew GCC 11.3.0_2) 11.3.0
  • OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

Parser/Features H L F I J

  • yaml ✓ ✓ ✓ ✓ ✓
  • toml ✓ ✓ ✓ ✓ ✓
  • json5 ✓ . . . ✓
  • lua ✓ ✓ ✓ ✓ ✓

Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang}

provider: health#provider#check

Clipboard (optional)

  • OK: Clipboard tool found: pbcopy

Python 3 provider (optional)

  • WARNING: No Python executable found that can import neovim. Using the first available executable for diagnostics.
  • WARNING: Could not load Python 3: /opt/homebrew/bin/python3 does not have the "neovim" module. python3.10 not found in search path or not executable. /opt/homebrew/bin/python3.9 does not have the "neovim" module. python3.8 not found in search path or not executable. python3.7 not found in search path or not executable. /opt/homebrew/bin/python does not have the "neovim" module.
    • ADVICE:
      • See :help |provider-python| for more information.
      • You may disable this provider (and warning) by adding let g:loaded_python3_provider = 0 to your init.vim
  • INFO: Executable: Not found

Python virtualenv

  • OK: no $VIRTUAL_ENV

Ruby provider (optional)

  • INFO: Ruby: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin21]
  • WARNING: neovim-ruby-host not found.
    • ADVICE:
      • Run gem install neovim to ensure the neovim RubyGem is installed.
      • Run gem environment to ensure the gem bin directory is in $PATH.
      • If you are using rvm/rbenv/chruby, try "rehashing".
      • See :help |g:ruby_host_prog| for non-standard gem installations.
      • You may disable this provider (and warning) by adding let g:loaded_ruby_provider = 0 to your init.vim

Node.js provider (optional)

  • INFO: Node.js: v18.6.0
  • WARNING: Missing "neovim" npm (or yarn) package.
    • ADVICE:
      • Run in shell: npm install -g neovim
      • Run in shell (if you use yarn): yarn global add neovim
      • You may disable this provider (and warning) by adding let g:loaded_node_provider = 0 to your init.vim

Perl provider (optional)

  • WARNING: "Neovim::Ext" cpan module is not installed
    • ADVICE:
      • See :help |provider-perl| for more information.
      • You may disable this provider (and warning) by adding let g:loaded_perl_provider = 0 to your init.vim

vim.lsp: require("vim.lsp.health").check()

  • INFO: LSP log level : WARN
  • INFO: Log path: /Users/mbaur/.cache/nvim/lsp.log
  • INFO: Log size: 69286 KB

vim.treesitter: require("vim.treesitter.health").check()

  • INFO: Runtime ABI version : 14
  • OK: Loaded parser for json5: ABI version 13
  • OK: Loaded parser for lua: ABI version 13
  • OK: Loaded parser for toml: ABI version 13
  • OK: Loaded parser for yaml: ABI version 13

which_key: health#which_key#check

WhichKey: checking conflicting keymaps

  • WARNING: conflicting keymap exists for mode "n", lhs: "gc"
  • INFO: rhs: <Cmd>lua require("Comment.api").call("toggle_linewise_op")<CR>g@
Doom Report Output
E5107: Error loading lua [string ":lua"]:1: unexpected symbol near '<eof>'

Anything else:

baurmatt avatar Aug 15 '22 11:08 baurmatt