spf13 / PIV

PHP Integration environment for Vim
250 stars 36 forks source link

Error in phpDoc generation #1

Closed moffe42 closed 13 years ago

moffe42 commented 14 years ago

"pdv_cfg_CommentEnd" is not defind. So an error is generated when using ,pd on methods

yuxel commented 13 years ago

I can reproduce this bug. When typing ",pd" on a function line, it gives these errors,

Error detected while processing function 
PhpDocSingle..PhpDoc..PhpDocFunc..PhpDocFuncEndAuto:                                                                                                          
Undefined variable: g:pdv_cfg_CommentEnd
Invalid arguments for function append
spf13 commented 13 years ago

This issue is fixed in the latest release.

yuxel commented 13 years ago

Thanks for fixing this issue.

johncongdon commented 13 years ago

I am still getting this error, and I just installed today from github. Am I missing the latest release somehow?

ghost commented 13 years ago

same here, freshly installed from github "Undefined variable: g:pdv_cfg_CommentEnd" when I hit ',pd'

ghost commented 13 years ago

actually, the version of piv/ftplugin/php/doc.vim installed via spf13-vim is out of date. I think I'm going to have to get rid of spf13-vim, it's very buggy*

[edit] * I take that back, it's not 'very buggy' at all

spf13 commented 13 years ago

I'm happy to help resolve any issues. I'll checkout and see if I can reproduce. In the meantime, I recommend checkout out the 3.0 branch of spf13-vim. It's quite close to ready for production use and resolves many of the current issues in spf13-vim. I'm expecting to release it in the next couple weeks and would love some more real world feedback.

spf13 commented 13 years ago

Enough feedback that it's not resolved, I'm looking into the issue now.

ghost commented 13 years ago

I can see the declaration of pdv_cfg_CommentEnd in the PIV repo, but the line is not there in my local copy after checking out the spf13-vim repo. which is very odd as piv is included as a submodule in spf13-vim

Thanks for looking into this, I'll take a look at v3.0 and see how I get on

spf13 commented 13 years ago

One of the problems with using git submodules to handle plugins is they point to a specific refspec (commit). It means that every time any of the plugins have a new version I need to manually update the refspec the submodule is pointing to.

The 3.0 branch is using vundle which simply points to the head of a git repo which is a much better fit for spf13-vim. Over half the reported bugs were directly the result of issues with submodule pointers.

I'm really interested in how you like 3.0. Please email me and let me know.

spf13 commented 13 years ago

This has been resolved in HEAD and 3.0.