tobyS / pdv

PHP Documentor for VIM - Generates PHP docblocks
161 stars 32 forks source link

Could not detect parse config for '' #20

Closed kaiyulee closed 9 years ago

kaiyulee commented 9 years ago
Error detected while processing function pdv#DocumentWithSnip..<SNR>48_DetermineParseConfig:                                                                                 
line    6:
E605: Exception not caught: Could not detect parse config for ''

I used

let g:pdv_template_dir = $HOME."/.vim/bundle/pdv/templates_snip"                                                                                                                 
nnoremap <buffer> <C-p> :call pdv#DocumentWithSnip()<CR>
reubenmoes commented 9 years ago

@kaiyulee I had the same thing. I installed this to fix: https://github.com/SirVer/ultisnips

spruce-bruce commented 9 years ago

Hi - I'm getting this same error for both DocumentWithSnip and DocumentCurrentLine

I followed the above advice and installed ultisnips, but am still receiving this error.

My config:

let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates_snip"
 87 nnoremap <buffer> <C-k> :call pdv#DocumentWithSnip()<CR>

and my errors:

Error detected while processing function pdv#DocumentWithSnip..<SNR>128_DetermineParseConfig:
line    6:
E605: Exception not caught: Could not detect parse config for ' '
Error detected while processing function pdv#DocumentCurrentLine..pdv#DocumentLine..<SNR>128_DetermineParseConfig:
line    6:
E605: Exception not caught: Could not detect parse config for ' '

I'm going to start digging through the plugin code to see if I can find what might be missing

spruce-bruce commented 9 years ago

got it - i was just using the plugin wrong. I was trying to run the functions with my cursor on the line above the cursor instead of with the cursor on the line of the function declaration