Unknown function: perlomni#data#p5bfunctions (completing builtin 'scalar') #18

Closed
ghost opened this Issue Oct 20, 2012 · 7 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Oct 20, 2012

Hi.

Action

I start typing scalar in insert mode and invoke omni completion like so:

my $foo = sc^X^O

Expected behaviour

a completion list containing the word 'scalar'

Actual behaviour

I get the following error:

Error detected while processing function PerlComplete..<SNR>39_CompFunction:
line    2:
E117: Unknown function: perlomni#data#p5bfunctions

Pressing enter or space repeatedly, I end up with more traceback. The first couple of entries are:

Error detected while processing function PerlComplete..<SNR>39_CompFunction:
line    2:
E116: Invalid arguments for function copy(perlomni#data#p5bfunctions())
Press ENTER or type command to continue
Error detected while processing function PerlComplete..<SNR>39_CompFunction:
line    2:
E15: Invalid expression: copy(perlomni#data#p5bfunctions())

Eventually, I get the message pattern not found and no completion list.

Environment

VIM 7.3 on Ubuntu 12.04.

perlomni installed by checking out from git ( revision 66943ce ) and running make install.

Any thoughts?

Nick

Owner

c9s commented Oct 20, 2012

Thanks for the detailed report, seems like the p5bfunctions function is not in the autoload script ?

Collaborator

mattn commented Oct 20, 2012

Hmm, I can't reproduce it. Probably, you set cpoptions in your vimrc. What value of it?

@ghost

ghost commented Dec 6, 2012

Hi!
I have the same errors and I have Ubuntu 12.04 & Vim 7.3 too. How can it be fixed?

Collaborator

mattn commented Dec 7, 2012

@sunfield @e-dem probably, you don't install perlomni.vim correctly, I guess.

That's error occur when autoload/perlomni.vim is not exists in your runtime paths.

@ghost

ghost commented Dec 7, 2012

@mattn yes, you are right! I've edited the file config.mk and have replaced the string DIRS=ftplugin plugin bin on DIRS=ftplugin autoload bin. Then I've done make install and it works very well now.
Thanks @mattn and @c9s for the advice and for this plugin.

@mattn mattn added a commit that referenced this issue Dec 7, 2012

@mattn mattn fix Makefile. related issue #18 8638102
Collaborator

mattn commented Dec 7, 2012

@e-dem thanks for your notice! i fixed it.

Owner

c9s commented Sep 30, 2014

Closing it since it's fixed.

c9s closed this Sep 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment