-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Tagbar window doesn't update after switching buffers #162
Comments
I'm still not able to reproduce this. This is rather frustrating. Are the files that trigger the bug themselves large? The size of the project shouldn't matter, as Tagbar only generates tags for the current file. Do you have any publicly available example files that I could try? Also, do you have more than one tab open? |
Usually I have more than one tab page open, but I'm able to reproduce the bug on a new Vim instance without opening any tabs. The files are usually larges, but I believed that the problem was the project size, so I haven't focused too much on the files. I've just found an easy way to reproduce the problem:
class Class1
{
}
class Class2
{
}
The same two files placed in the same folder doesn't triggers the bug. Please let me know if you are still unable to reproduce the issue, then I can check if it is caused by some setting/plugin on my setup. |
Still no go ... what version of Vim are you using? Maybe it is a Vim bug that got fixed recently. |
I'm using the version 7.3, downloaded from vim.org:
|
Oh, that's a pretty old version. If possible I would suggest downloading the new 7.4 release, not just because of this issue but also in general. If upgrading doesn't fix it I'll give it a try with Windows in a virtual machine. |
I'll update to new version soon, maybe it include the fix. But I found a setting in my
When I remove it the issue disappears. Maybe tagbar is relying the path being unchanged, but I didn't investigate this further. |
Even with that autocommand it's working fine for me, even with a minimal configuration. Have you tried a current Vim version to see if that fixes it for you? |
The new version of Vim indeed solves the problem. Thank you very much! |
Great, thanks for checking! Good to know that I wasn't just doing something wrong ... |
Sometimes Tagbar window doesn't update after switching buffers. After entering this state, it behaves like each buffer is tied to a different instance of Tagbar, so executing
:TagbarToggle
in different buffers leads to multiple Tagbar windows on the same tab.As mentioned on issue #153, it is not clear all the details needed to reproduce this problem. This is the procedure to reproduce it:
:TagbarToggle
-> (opens Tagbar window):TagbarToggle
-> (closes Tagbar window):TagbarToggle
-> (opens Tagbar window):TagbarToggle
-> two Tagbar windowsIt only works for some files, though. I didn't detect what is specific to the files that trigger the problem, other than being part of a large project (what causes longer executions of
ctags
).The text was updated successfully, but these errors were encountered: