Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 496750

Summary: app-vim/perl-support fails when creating *.t : E121: Undefined variable: g:Perl_Templates
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: logfile generated by vim -V9tfile
emerge --info perl-support
emerge --info vim-core
logfile generated by vim -V9pmfile foo.pm

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-01-02 10:33:48 UTC
Created attachment 366756 [details]
logfile generated by vim -V9tfile

$ env -i HOME=/tmp/fakehome vim -V9pmfile foo.pm 

# Observe a templated pm file is given
# ESC :w
# :q

$ env -i HOME=/tmp/fakehome vim -V9plfile foo.pl

# Observe a templated pl file is given
# ESC :w
# :q

$ env -i HOME=/tmp/fakehome vim -V9tfile foo.t

> "foo.t" [New File]
>
> Error detected while processing BufNewFile Auto commands for "*.t":
> E121: Undefined variable: g:Perl_Templates
> E116: Invalid arguments for function mmtemplates#core#InsertTemplate
> 
> Press ENTER to continue

# ENTER
# Observe Empty File
# ESC :w
# :q

=app-vim/perl-support-5.1
=app-editors/vim-core-7.4.94
=app-editors/vim-7.4.94
=app-editors/gvim-7.4.94
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-01-02 10:36:06 UTC
Created attachment 366758 [details]
emerge --info perl-support
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-01-02 10:36:33 UTC
Created attachment 366760 [details]
emerge --info vim-core
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2014-01-02 10:37:42 UTC
Created attachment 366762 [details]
logfile generated by vim -V9pmfile foo.pm