tomtom / quickfixsigns_vim

Mark quickfix & location list items with signs
http://www.vim.org/scripts/script.php?script_id=2584
GNU General Public License v3.0
131 stars 13 forks source link

Error in ClearBuffer: "E158: Invalid buffer name: " #9

Closed blueyed closed 12 years ago

blueyed commented 13 years ago

Sometimes I am getting the following error a few seconds after saving a buffer (probably when CursorHold is triggered): DBG sign unplace 5280 buffer=0 Error detected while processing function QuickfixsignsSet..74_ClearBuffer: line 8: E158: Invalid buffer name: Press ENTER or type command to continue (I have uncommented the DBG line here)

Line 8 is: exec 'sign unplace '. def.id .' buffer='. def.bufnr

There is only 1 buffer currently, and it gets handled afterwards: DBG sign unplace 5276 buffer=1

This might be related to using the checksyntax plugin (just a guess), since the current buffer is a .php file and that plugin might create some temporary buffer/quickfix window shortly.

Let me know if I can provide any more information - I'll let the session open for now.

tomtom commented 13 years ago

Does https://github.com/tomtom/quickfixsigns_vim/commit/79c9f690bf48c6ba43338788af0e343d6876b45e help?

blueyed commented 12 years ago

This appears to be fixed, thanks!