-
Notifications
You must be signed in to change notification settings - Fork 77
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: "AerialOpen float" is always empty, but "left" and "right" work #331
Comments
I just updated my nightly build to So it seems to only be broken in my nightly builds from neovim-nightly-overlay for some reason. Very strange. Sorry for the noise! |
On Neovim 0.10, calling timer:stop() is not canceling the callback. There appears to be some minimum amount of buffer time remaining in the timer in order for it to be able to be canceled correctly. I'm getting around this by adding a simple guard statement
I found two bugs. One of them was easy to fix, the other one I have filed upstream neovim/neovim#27121 |
In case it's helpful to anyone, I'm using this workaround until the bug is fixed upstream: vim.keymap.set('n', '<leader>af', function()
-- NOTE: Workaround for https://github.com/stevearc/aerial.nvim/issues/331
require('aerial').refetch_symbols()
vim.cmd.AerialOpen 'float'
vim.cmd.doautocmd 'BufWinEnter'
end) |
This appears to be fixed upstream now. Can you try it again on the most recent nightly? |
Works for me now without manually triggering the autocommand, but I still need to do refetch_symbols first or else the symbols might be stale. Not sure if that is the same issue or not. |
When you say the symbols might be stale, what problem does this manifest as? Like if you've recently added a symbol it may not be present? Or there won't be any symbols? And is this sporadic or does it happen every time for you? |
Yes, after I open Aerial for the first time, the symbols will be correct at first, but won't update as I add/remove them in the buffer until I call refetch_symbols.
Every time. I just checked my config and switching from |
Hmmm...this sounds like it might be related to the specific LSP server. Does this happen with other LSP servers? Another thing you can try is setting the config value Also, does this only happen for |
It happens with both tsserver and lua_ls. Not sure about others.
It happens with both.
That works! |
If |
Neovim version (nvim -v)
v0.10.0-dev-d2e7cc6
(Just tested v0.9.4 and it works, so it's specifically an issue with nightly)
Operating system/version
NixOS 23.11
Output of :AerialInfo
Describe the bug
AerialOpen left
andAerialOpen right
always work, butAerialOpen float
is always empty:The first time I run
AerialOpen float
in a Neovim session, it shows "Loading", but nothing ever happens:If I reopen it, it's an empty window like above.
Steps To Reproduce
:AerialOpen float
Expected Behavior
Should have the same content as
:AerialOpen left/right
Minimal example file
Minimal init.lua
Result:
Additional context
Tried with and without my Aerial config, didn't make a difference.
:AerialNavOpen
works, so the only thing that doesn't work is:AerialOpen float
, which is my preferred use case 😄The text was updated successfully, but these errors were encountered: