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

err when open *.org file (VimOrganizer) #19

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

ERROR:

Error detected while processing function QuickfixsignsSet..<SNR>151_UpdateSigns..<SNR>151_Place
Sign:                                                                                          
line   22:                                                                                     
E155: Unknown sign: QFS_Mark_'                                                                 
Error detected while processing function QuickfixsignsSet:                                     
line   57:                                                                                     
E171: Missing :endif

I have tested some aspects, and finally find the problem is at here, but this config is copy from VimOrganizer.

au! BufRead,BufWrite,BufWritePost,BufNewFile *.org                          
au BufEnter *.org  call org#SetOrgFileType()
tomtom commented 12 years ago

When does this error occur? When starting vim or when opening a file? I.e. were signs for marks displayed before? How exactly can I reproduce this error?

Which version of vim & quickfixsigns do you use?

stardiviner commented 12 years ago

sorry for my less report info: I think it occurs at open .org file, because there is no this error at other file, and starting vim. Vim version: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:10:13) Included patches: 1-429 Yes, I use quickfixsigns script. I do not know how to reproduce this error. maybe you can install quickfixsigns script to test.

tomtom commented 12 years ago

Please begin with an empty vimrc file and an empty .vim directory. Add whatever is necessary to reproduce this error and describe what you find (vimrc, directory structure, version of the plugins used etc.).

Since I am the author of quickfixsigns, I already have it installed. I also tested VimOrganizer and couldn't find a problem in my setup.

stardiviner commented 12 years ago

Just like the first post, I tested, and find out what causes this problem, If there is not this two lines:

au! BufRead,BufWrite,BufWritePost,BufNewFile *.org                          
au BufEnter *.org  call org#SetOrgFileType()

then that error will not occur.

tomtom commented 12 years ago

Well, it's nice & ok that the error occurs in your setup, it doesn't in mine though. Therefore the information you provide isn't of much help.

The error also does not occur when using the following minimal_vimrc:

set nocp
filetype plugin indent on
syntax on

let s:ps = ['quickfixsigns']

for s:p in s:ps
    exec 'set rtp+=~/.vim/tvim/'. s:p .'_vim'
endfor
unlet! s:p s:ps

set rtp+=~/.vim/bundle/VimOrganizer
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()

and when running vim with:

gvim -u minimal_vimrc bundle/VimOrganizer/VimOrganizerCheatsheet.org