Comments
-
Greg Hurrell
Haven't seen this one personally. So for some reason it can't unload the buffer.
I wonder if you have any settings in your
.vimrc
which might be responsible for this; can you post the contents of your.vimrc
?Also, does this happen all the time? Or is there only a limited set of circumstances under which it occurs? (ie. when there are no buffers open, when there are multiple buffers etc)
-
anonymous
Hey I'm the one who's currently dealing with that error. Wincent I believe you have a Mac, so if you would be inclined to download and compile a local version of Vim 7.3 (the one that I'm using) so that it might help you better understand some of the problems (ie - it might have to do with the configure options).
My vimrc hasn't been a problem before and Command-T worked fine on my Ubuntu installation.
Anyways, you can download the code (as I'm sure you'd rather read it before running it) for a script to install Vim 7.3 on your Mac here, let me know if you have any issues.
PS - Using a regular terminal with iTerm 2.
-
anonymous
having the same issue under macvim.
-
anonymous
I am now seeing this same issue as well, but under vim on Ubuntu, compiled with Ruby 1.9.2.
I notice it, though, under one condition: If now buffer is actually open (IE I just started vim), it will throw the same error.
Here is my vimrc (Very short vimrc): https://gist.github.com/861968
-
anonymous
Having a similar issue when I try to open a file:
Error Dected while processing function CommandTAcceptSelection cannot unload last buffer
This only happens however if I try using this command-t when I'm not already in a file. For instance if I do a vim . in my current directory and I'm in my NERDTree by default, this is when I get that error.
-
anonymous
Also having this problem, would love to use Command-T but it's probably not that useful while this persists.
Again, it only happens for me when there are no buffers open (e.g. in a directory listing after first opening MacVim)
-
Greg Hurrell
Just tried again to repro this and can't see it myself.
So if anyone who can repro it would like to submit a patch to work around the issue I'd be happy to look it, but can't do anything about it myself.
-
utkarsh
Created
,
edited
Hi Wincent,
I'm having the same problem on Ubuntu 10 and 11. I can consistently reproduce the error using the following steps:
-
cd into an existing project with a few files (I used
rails new foo && cd foo
). - Start command line vim in foo
vim .
. -
Search for a file (I typed
gf
that brought up Gemfile as the first result) and press return.
Screenshot of the error - http://dl.dropbox.com/u/2164813/tmp/command-t-bug-1778.png
I'm using the following hack as a temporary solution for now - http://dl.dropbox.com/u/2164813/tmp/command-t-bug-1778.diff.txt
I'm using NERDTree, BufExplorer, and a few autocomplete plugins with vim right now. Snapshot of the current settings is available at https://github.com/utkarshkukreti/dotfiles/tree/13a74b6ee55ec58aa5e9ffa122583849d3eaa79b
If you need any more help trying to debug this, feel free to contact me by mail. I'd be happy to help.
-
cd into an existing project with a few files (I used
-
Greg Hurrell
Hmmm, your so-called "hack" doesn't look that hackish to me. I'll give it a try here and see if there are any adverse effects.
-
Greg Hurrell
Ok, I've been able to reproduce using command line Vim and your instructions, but your patch doesn't resolve the issue for me.
At least now I can repro, though, so I think I'll be able to fix it.
-
Greg Hurrell
Status changed:
- From: new
- To: open
-
utkarsh
That's strange. I sent the patch to two of my friends, and it worked for them (Both on Ubuntu 10.10).
-
Steve Losh
I'm seeing the same problem with MacVim 7.3 on OS X.
I tried utkarsh's patch and it did make the errors go away, but the GoToFile window is still open at the bottom of the screen until I either close it manually or go to another file.
-
anonymous
This was fixed for me by updating my copy of macvim. I wasn't good about checking version of my old one, but updating to macvim snapshot 57 seems to have done the trick.
-
anonymous
Utkarsh's patch "fixes" the issue for me.
-
anonymous
The problem only appears on first use for me. The BufLeave autocmd occurs before the selected file is opened, so at the time, the match window is the only open buffer.
-
dmkash
I can confirm that the error is still present in MacVim snapshot 61 running on Mac OS X 10.7. It is only when I open a project directory in MacVim and I don't have an actual file open. Once I have some buffers going, Command-T works as expected.
-
anonymous
I have the exact same issue as dmkash.
-
anonymous
I'm also having this issue, just like dmkash described. Any ETA on this one? It's the only bad part of CommandT, the rest is golden!
-
Greg Hurrell
I haven't had much time to work on Command-T of late so I don't really have a reliable ETA.
There was Utkarsh's patch (see above), but that doesn't fix the issue, at least on my machine, so I can't really merge that in.
-
anonymous
FYI, it appears as though 7.3-61 fixes this on Lion (via homebrew). Was having the problem with *-60 and upgrade to be pleasantly and unexpectedly surprised.
-
anonymous
Amended about fix in 7.3-61 - still have problem when I start with "$ mvim ." but not if I start without the directory, so "$ mvim" works fine. I don't know if this was the case in the previous version of mvim.
-
anonymous
Just to clarify: mvim . with macvim 61 is still broken
-
anonymous
I too can go around this by using
mvim
instead ofmvim .
Finally. -
anonymous
I discovered that netrw was causing this on my setup. You can turn it off by adding
let g:loaded_netrwPlugin = 1
to your vimrc. While I was trying to debug I also found out that for some reason netrw doesn't count as a buffer. When you open macvim with only netrw, thenVIM::Buffer.count
registers as 0. -
anonymous
Still broken.
I think the reason this faults is when you use NERDTree. For example: mvim . and when NERDTree is the active buffer do <leader>t and select a file -- boom! the error.
Can you guys reproduce it this way?
-
Marius Gedminas
A boring /me too: on Ubuntu with latest command-t from git (without NERDTree; with just netrw) I get the unload buffer problem when I do 'vim .' followed by \t followed by ctrl-c. The "fix" makes the error message on ctrl-c disappear, but it also leaves the command-t window open.
-
Marius Gedminas
Incidentally, 'vim .' followed by \t followed by <Ctrl-W> q closes command-t without any errors.
-
Greg Hurrell
Closed bug #1949 as a duplicate of this one.
-
Greg Hurrell
Cross-referencing this forum topic.
-
Greg Hurrell
Attempted fix for this here.
Should arrive on the the GitHub mirror and the Gitorious mirror within about half an hour.
-
anonymous
This still happens for me. When I start vim with a directory (e.g. to drop into NERDTree) I see this error every time I try to use Command-T in that session.
-
Greg Hurrell
Closing due to lack of activity.
-
Greg Hurrell
Status changed:
- From: open
- To: closed
Add a comment
Comments are now closed for this issue.