Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error executing vim.schedule lua callback: ...LazyVim/lua/lazyvim/plugins/extras/linting/nvim-lint.lua:52: attempt to index local 'linter' (a function value) #1569

Closed
3 tasks done
NeckBeardPrince opened this issue Oct 3, 2023 · 0 comments · Fixed by #1570
Labels
bug Something isn't working

Comments

@NeckBeardPrince
Copy link
Contributor

NeckBeardPrince commented Oct 3, 2023

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.9.2

Operating system/version

14.1 Beta (23B5046f)

Describe the bug

So far, I've only noticed this when opening Terraform (.tf) files.

Error executing vim.schedule lua callback: ...LazyVim/lua/lazyvim/plugins/extras/linting/nvim-lint.lua:52: attempt to index local 'linter' (a function value)
stack traceback:
        ...LazyVim/lua/lazyvim/plugins/extras/linting/nvim-lint.lua:52: in function <...LazyVim/lua/lazyvim/plugins/extras/linting/nvim-lint.lua:50>
        vim/shared.lua: in function 'tbl_filter'
        ...LazyVim/lua/lazyvim/plugins/extras/linting/nvim-lint.lua:50: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Steps To Reproduce

  1. Open .tf file
  2. Boom

Expected Behavior

Not the error

Repro

Issue does not appear.

:checkheath

==============================================================================
lazy: require("lazy.health").check()

lazy.nvim ~
- OK Git installed
- OK no existing packages found by other package managers
- OK packer_compiled.lua not found
- WARNING {flash.nvim}: unknown key <vscode>

==============================================================================
lazyvim: require("lazyvim.health").check()

LazyVim ~
- OK Using Neovim >= 0.9.0
- OK `git` is installed
- OK `rg` is installed
- OK `fd` is installed
- OK `lazygit` is installed

==============================================================================
nvim: require("nvim.health").check()

Configuration ~
- OK no issues found

Runtime ~
- OK $VIMRUNTIME: /opt/homebrew/Cellar/neovim/0.9.2/share/nvim/runtime

Performance ~
- OK Build type: Release

Remote Plugins ~
- OK Up to date

terminal ~
- key_backspace (kbs) terminfo entry: `key_backspace=^H`
- key_dc (kdch1) terminfo entry: `key_dc=\E[3~`
- $TERM_PROGRAM="iTerm.app"
- $COLORTERM="truecolor"

==============================================================================
provider: health#provider#check

Clipboard (optional) ~
- OK Clipboard tool found: pbcopy

Python 3 provider (optional) ~
- `g:python3_host_prog` is not set.  Searching for python3 in the environment.
- Multiple python3 executables found.  Set `g:python3_host_prog` to avoid surprises.
- Executable: /opt/homebrew/bin/python3
- Other python executable: /usr/bin/python3
- Python version: 3.11.5
- pynvim version: 0.4.3
- OK Latest pynvim is installed.

Python virtualenv ~
- OK no $VIRTUAL_ENV

Ruby provider (optional) ~
- Ruby: ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
- 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) ~
- Node.js: v20.8.0
- WARNING Missing "neovim" npm (or yarn, pnpm) package.
  - ADVICE:
    - Run in shell: npm install -g neovim
    - Run in shell (if you use yarn): yarn global add neovim
    - Run in shell (if you use pnpm): pnpm install -g 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

==============================================================================
telescope: require("telescope.health").check()

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- OK fd: found fd 8.7.0

===== Installed extensions ===== ~

Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured

Telescope Extension: `notify` ~
- No healthcheck provided

Telescope Extension: `projects` ~
- No healthcheck provided

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

- LSP log level : WARN
- Log path: /Users/<redacted>/.local/state/nvim/lsp.log
- Log size: 67 KB

vim.lsp: Active Clients ~
- No active clients

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

- Nvim runtime ABI version: 14
- OK Parser: bash       ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/bash.so
- OK Parser: dockerfile ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/dockerfile.so
- OK Parser: gitcommit  ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/gitcommit.so
- OK Parser: gitignore  ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/gitignore.so
- OK Parser: git_config ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/git_config.so
- OK Parser: git_rebase ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/git_rebase.so
- OK Parser: go         ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/go.so
- OK Parser: hcl        ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/hcl.so
- OK Parser: http       ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/http.so
- OK Parser: ini        ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/ini.so
- OK Parser: javascript ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/javascript.so
- OK Parser: jq         ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/jq.so
- OK Parser: json       ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/json.so
- OK Parser: json5      ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/json5.so
- OK Parser: jsonc      ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/jsonc.so
- OK Parser: lua        ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/lua.so
- OK Parser: markdown   ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/markdown.so
- OK Parser: markdown_inline ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/markdown_inline.so
- OK Parser: python     ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/python.so
- OK Parser: query      ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/query.so
- OK Parser: regex      ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/regex.so
- OK Parser: terraform  ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/terraform.so
- OK Parser: tsx        ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/tsx.so
- OK Parser: typescript ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/typescript.so
- OK Parser: vim        ABI: 14, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/vim.so
- OK Parser: yaml       ABI: 13, path: /Users/<redacted>/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so
- OK Parser: c          ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.2/lib/nvim/parser/c.so
- OK Parser: lua        ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.2/lib/nvim/parser/lua.so
- OK Parser: query      ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.2/lib/nvim/parser/query.so
- OK Parser: vim        ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.2/lib/nvim/parser/vim.so
- OK Parser: vimdoc     ABI: 14, path: /opt/homebrew/Cellar/neovim/0.9.2/lib/nvim/parser/vimdoc.so

==============================================================================
vimtex: health#vimtex#check

VimTeX ~
- OK Vim version should have full support!
- WARNING bibtex is not executable!
  - ADVICE:
    - bibtex is required for cite completions.
- WARNING biber is not executable!
  - ADVICE:
    - Biber is often required so this may give unexpected problems.
- OK General viewer should work properly!
- ERROR |g:vimtex_compiler_method| (`latexmk`) is not executable!

==============================================================================
which-key: require("which-key.health").check()

WhichKey: checking conflicting keymaps ~
- WARNING conflicting keymap exists for mode **"n"**, lhs: **" e"**
- rhs: ` `
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"gc"**
- rhs: ` `
@NeckBeardPrince NeckBeardPrince added the bug Something isn't working label Oct 3, 2023
@folke folke closed this as completed in b1ad480 Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant