gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

Strange error when opening some commit #11

Closed VitekJezek closed 13 years ago

VitekJezek commented 13 years ago

Sometimes when browsing history (= I have open browsing mode, and clicking return at commits) appears this :

Error detected while processing function 65_BufReadObject..65_ReplaceCmd: line 26: E325: ATTENTION Error detected while processing function 59_OpenGitvCommit: line 26: E171: Missing :endif

For me it appear everytime, when I try open commit 0eaefff from this repository (https://github.com/gregsexton/gitv.git )

Silex commented 13 years ago

FWIW, I can open that commit just fine... maybe this problem raises from fugitive who had some bumps yesterday, try to update both gitv & fugitive to the latest version and tell if this happens again.

VitekJezek commented 13 years ago

Thank for comment.

I have found out what is problem - I had opened two instances of VIM (=two Gitv) viewing the same commit.

gregsexton commented 13 years ago

This is an error being thrown by the fugitive function ReplaceCmd. Probably because gitv wipes buffers on replacing them. I would suggest you'll have problems running gitv on the same repo in two instances of Vim simultaneously, as I never designed the plugin with this in mind.

I'll play with running two instances and see what I can find/fix. If you have any other problems like this let me know.

Thanks,

Greg