I've been using and loving Bufexplorer for well over 15 years, but in recent months, it's sometimes opened a buffer other than the one I selected. This happens maybe once or twice a week, and I've always just quit gVim and started a new session to work around it.
I haven't filed an issue before now, because, unfortunately, I don't have a reliable set of steps for making it happen. But I can reproduce the issue in my gVim session right now. I'm hoping that, if I tell you about my setup and what's changed, you could suggest things to try, to see whether I can reproduce it more reliably.
I started this gVim session a few hours ago, using a Bash script that loads 26 files. Honestly, I wrote the script because of this bug; I always made heavy use of :mksessions, but having a clean starting point of frequently needed files for this project has been pretty useful, too. Anyhow, I've been using Bufexplorer and other tools during this session without issue, until now. Now, when I type \bs (\ being my Leader), I see 27 buffers, the highest number being 33, because I've loaded a few other files and deleted them (d) in Bufexplorer. That's all good, except that, consistently, when I move the cursor to buffer 33, a file called 'home.html', and type Enter, it instead loads buffer 4, one of the 'urls.py' files that I've also been editing.
When I first noticed this issue today, I had my session split into four windows, and I was trying to use \bs to open a fifth. I closed most of the windows with :q, and used \be to load various other files, all of which loaded correctly. Still, when I try to load the file I want, 'home.html', it loads that 'urls.py' instead. Strangely, 'home.html' is listed with the %a attributes, but I'm pretty sure I never actually had it open. The relevant 'urls.py' is also listed as active, i.e. with a.
One thing I did that might have confused Bufexplorer this time is that previously, for 'home.html', file, I used :file and :w to create a copy of the file under a new name. I've had this issue come up without me having done that, though, so this may be a red herring. I've also done this many times over the years without Bufexplorer acting up, but maybe this is a new bug, or something related to a newly installed plug-in.
When I've previously noticed this issue, once or twice I found that the buffer I wanted was actually being loaded into another tab. I've never used tabs in gVim, so it may have happened more often than that without me noticing. There are no tabs visible now, though. I recently disabled the menu bar in my .vimrc, but even when I make it appear again now, with set guioptions+=m, still no tabs appear.
I'm using bufexplorer 7.5.0 (so #117, which seemed vaguely related, should be fixed?) under gVim 9.1. I was also experiencing this issue under gVim 8.2. My OS is Linux Mint 21.3 Cinnamon.
These are the other plug-ins I have installed:
Plug 'editorconfig/editorconfig-vim'
Plug 'jlanzarotta/bufexplorer'
Plug 'tmhedberg/SimpylFold'
Plug 'vim-scripts/indentpython.vim'
Plug 'Rigellute/shades-of-purple.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'dense-analysis/ale'
Plug 'nvie/vim-flake8'
Plug 'sbdchd/neoformat'
Plug 'tpope/vim-surround'
Plug 'mtdl9/vim-log-highlighting'
Plug 'stevearc/vim-arduino'
Plug 'tpope/vim-abolish'
Plug 'chrisbra/csv.vim'
Plug 'madox2/vim-ai'
I've installed the bottom three pretty recently, but after I started noticing this issue. I've used most of the rest since well before I started noticing this issue. However, I've made a lot of changes to my ALE setup (dense-analysis/ale) and YouCompleteMe in recent months. I honestly can't remember whether this issue started happening before I started making those changes, and since this issue occurs fairly seldomly, even if I revert those changes today, it'd take a week or two of this issue not occurring, to convince myself that they're related. And then it would open the whole can of worms for which changes are causing the problem.
But if you can think of things to try that might reproduce the issue more quickly, I could give it a go and let you know.
Sorry this is so vague.
I've been using and loving Bufexplorer for well over 15 years, but in recent months, it's sometimes opened a buffer other than the one I selected. This happens maybe once or twice a week, and I've always just quit gVim and started a new session to work around it.
I haven't filed an issue before now, because, unfortunately, I don't have a reliable set of steps for making it happen. But I can reproduce the issue in my gVim session right now. I'm hoping that, if I tell you about my setup and what's changed, you could suggest things to try, to see whether I can reproduce it more reliably.
I started this gVim session a few hours ago, using a Bash script that loads 26 files. Honestly, I wrote the script because of this bug; I always made heavy use of
:mksessions, but having a clean starting point of frequently needed files for this project has been pretty useful, too. Anyhow, I've been using Bufexplorer and other tools during this session without issue, until now. Now, when I type\bs(\being my Leader), I see 27 buffers, the highest number being 33, because I've loaded a few other files and deleted them (d) in Bufexplorer. That's all good, except that, consistently, when I move the cursor to buffer 33, a file called 'home.html', and type Enter, it instead loads buffer 4, one of the 'urls.py' files that I've also been editing.When I first noticed this issue today, I had my session split into four windows, and I was trying to use
\bsto open a fifth. I closed most of the windows with:q, and used\beto load various other files, all of which loaded correctly. Still, when I try to load the file I want, 'home.html', it loads that 'urls.py' instead. Strangely, 'home.html' is listed with the%aattributes, but I'm pretty sure I never actually had it open. The relevant 'urls.py' is also listed as active, i.e. witha.One thing I did that might have confused Bufexplorer this time is that previously, for 'home.html', file, I used
:fileand:wto create a copy of the file under a new name. I've had this issue come up without me having done that, though, so this may be a red herring. I've also done this many times over the years without Bufexplorer acting up, but maybe this is a new bug, or something related to a newly installed plug-in.When I've previously noticed this issue, once or twice I found that the buffer I wanted was actually being loaded into another tab. I've never used tabs in gVim, so it may have happened more often than that without me noticing. There are no tabs visible now, though. I recently disabled the menu bar in my
.vimrc, but even when I make it appear again now, withset guioptions+=m, still no tabs appear.I'm using bufexplorer 7.5.0 (so #117, which seemed vaguely related, should be fixed?) under gVim 9.1. I was also experiencing this issue under gVim 8.2. My OS is Linux Mint 21.3 Cinnamon.
These are the other plug-ins I have installed:
I've installed the bottom three pretty recently, but after I started noticing this issue. I've used most of the rest since well before I started noticing this issue. However, I've made a lot of changes to my ALE setup (
dense-analysis/ale) and YouCompleteMe in recent months. I honestly can't remember whether this issue started happening before I started making those changes, and since this issue occurs fairly seldomly, even if I revert those changes today, it'd take a week or two of this issue not occurring, to convince myself that they're related. And then it would open the whole can of worms for which changes are causing the problem.But if you can think of things to try that might reproduce the issue more quickly, I could give it a go and let you know.
Sorry this is so vague.