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: when there are no symbols navigation window gives error #256

Closed
petobens opened this issue May 26, 2023 · 2 comments
Closed

bug: when there are no symbols navigation window gives error #256

petobens opened this issue May 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@petobens
Copy link

Neovim version (nvim -v)

Latest Master

Operating system/version

Arch Linux

Output of :AerialInfo

Describe the bug

If I run :AerialNavToggle on a buffer that doesn't have symbols I get:

Error executing Lua callback: ...ocal/share/nvim/lazy/aerial.nvim/lua/aerial/nav_view.lua:227: attempt to index local 'symbol' (a nil value)
stack traceback:
        ...ocal/share/nvim/lazy/aerial.nvim/lua/aerial/nav_view.lua:227: in function 'focus_symbol'
        ...ocal/share/nvim/lazy/aerial.nvim/lua/aerial/nav_view.lua:338: in function 'open'
        ...ocal/share/nvim/lazy/aerial.nvim/lua/aerial/nav_view.lua:346: in function 'toggle'
        ...local/share/nvim/lazy/aerial.nvim/lua/aerial/command.lua:124: in function <...local/share/nvim/lazy/aerial.nvim/lua/aerial/command.lua:123>

On the other hand :AerialToggle opens without an error (and simply reports that there are no symbols).

Steps To Reproduce

See above

Expected Behavior

Exit/ continue gracefully

Minimal example file

Minimal init.lua

-

Additional context

No response

@petobens petobens added the bug Something isn't working label May 26, 2023
@stevearc
Copy link
Owner

Fixed. Thanks for the report!

@petobens
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants