Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Error .../plugged/symbols-outline.nvim/lua/symbols-outline.lua:307: attempt to index field 'view' (a nil value) #213

Open
PorcoRosso85 opened this issue Apr 5, 2023 · 6 comments

Comments

@PorcoRosso85
Copy link

PorcoRosso85 commented Apr 5, 2023

image

image

Why error?
Any thoughts?

what I've installed and its env...

  1. lua_language_server
  2. nixos ( in container )
  3. macos host

please ask me anything to solve this issue, thanks.

@shemerey
Copy link

shemerey commented Apr 5, 2023

Have the same problems

NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.3/share/nvim"

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

lazyvim: require("lazyvim.health").check()
========================================================================
## LazyVim
  - OK: Using Neovim >= 0.8.0
  - OK: `git` is installed
  - OK: `rg` is installed
  - OK: `fd` is installed
  - OK: `lazygit` is installed

man: require("man.health").check()
========================================================================
  - OK: plugin/man.vim not in $VIMRUNTIME
  - OK: autoload/man.vim not in $VIMRUNTIME

noice: require("noice.health").check()
========================================================================
## noice.nvim
  - OK: **Neovim** >= 0.8.0
  - WARNING: **Neovim** 0.9.0 (nightly) is recommended, since it fixes some issues related to `vim.ui_attach`
  - WARNING: Noice may not work correctly with Neovide. Please see #17
  - OK: You're using a GUI that should work ok
  - OK: **vim.go.lazyredraw** is not enabled
  - OK: **nvim-notify** is installed
  - OK: **TreeSitter vim** parser is installed
  - WARNING: **TreeSitter regex** parser is not installed. Highlighting of the cmdline for regex might be broken
  - OK: **TreeSitter lua** parser is installed
  - WARNING: **TreeSitter bash** parser is not installed. Highlighting of the cmdline for bash might be broken
  - WARNING: **TreeSitter markdown** parser is not installed. Highlighting of the cmdline for markdown might be broken
  - WARNING: **TreeSitter markdown_inline** parser is not installed. Highlighting of the cmdline for markdown_inline might be broken
  - OK: `vim.notify` is set to **Noice**
  - OK: `vim.lsp.handlers["textDocument/hover"]` is set to **Noice**
  - OK: `vim.lsp.handlers["textDocument/signatureHelp"]` is set to **Noice**
  - OK: `vim.lsp.handlers["window/showMessage"]` is set to **Noice**
  - OK: `vim.lsp.util.convert_input_to_markdown_lines` is set to **Noice**
  - OK: `vim.lsp.util.stylize_markdown` is set to **Noice**

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'

provider: health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: pbcopy

## Python 3 provider (optional)
  - INFO: pyenv: Path: /opt/homebrew/Cellar/pyenv/2.3.10/libexec/pyenv
  - INFO: pyenv: Root: /Users/zork/.pyenv
  - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
  - WARNING: Could not load Python 3:
    /Users/zork/.pyenv/shims/python3 does not have the "neovim" module.
    python3.10 not found in search path or not executable.
    /Users/zork/.pyenv/shims/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.
    /Users/zork/.pyenv/shims/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-darwin22]
  - 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.12.1
  - 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

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: /Users/zork/.local/state/nvim/lsp.log
  - INFO: Log size: 0 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 14
  - OK: Loaded parser for c: ABI version 13
  - OK: Loaded parser for help: ABI version 14
  - OK: Loaded parser for lua: ABI version 13
  - OK: Loaded parser for vim: ABI version 14

which_key: health#which_key#check
========================================================================
## WhichKey: checking conflicting keymaps
  - WARNING: conflicting keymap exists for mode **"n"**, lhs: **"gc"**
  - INFO: rhs: `v:lua.MiniComment.operator()`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"i"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'i')`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"il"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'i', {'search_method': 'prev'})`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"in"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'i', {'search_method': 'next'})`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"a"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'a')`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"al"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'a', {'search_method': 'prev'})`
  - WARNING: conflicting keymap exists for mode **"v"**, lhs: **"an"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('x', 'a', {'search_method': 'next'})`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"i"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'i')`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"il"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'i', {'search_method': 'prev'})`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"in"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'i', {'search_method': 'next'})`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"a"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'a')`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"al"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'a', {'search_method': 'prev'})`
  - WARNING: conflicting keymap exists for mode **"o"**, lhs: **"an"**
  - INFO: rhs: `v:lua.MiniAi.expr_textobject('o', 'a', {'search_method': 'next'})`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"c"**
  - INFO: old rhs: `:e $MYVIMRC <CR>`
  - INFO: new rhs: `<cmd>lua require("which-key").show("c", {mode = "n", auto = true})<cr>`
  - WARNING: buffer-local keymap overriding global for mode **"n"**, buf: 0, lhs: **"g"**
  - INFO: old rhs: `:Telescope live_grep <CR>`
  - INFO: new rhs: `<cmd>lua require("which-key").show("g", {mode = "n", auto = true})<cr>`

@greenteamer
Copy link

same problem

2 similar comments
@rollysys
Copy link

same problem

@pezcore
Copy link

pezcore commented Apr 15, 2023

same problem

@qverkk
Copy link

qverkk commented Apr 17, 2023

I had the same. Besides installing vimPlugins.symbols-outline-nvim you need to setup symbols-outline in nvim with require("symbols-outline").setup() somewhere in ur config. Hope it helps

@sourabhxyz
Copy link

sourabhxyz commented May 14, 2023

If anyone came here when using lazy.nvim, then this answer worked for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants