Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Version error not reported with vim 7.2 #10

Open
sktw opened this Issue Feb 1, 2012 · 2 comments

Comments

Projects
None yet
3 participants

sktw commented Feb 1, 2012

I am currently trying to write a vim plugin using python, and I came across threesome while searching for some sample code. The threesome source has really helped me to get started, so thanks!

Anyway, I decided to try running threesome out of interest. I'm running vim 7.2, and I didn't realise that it required vim 7.3+. However, the error handling code in threesome.vim didn't report the version problem (or if it did, the message got lost). Instead, I just got an unknown function error message from vim.

I ran threesome directly from the command line, rather than from a VCS. Here's the command line and message:

$ gvim -f file1.txt file2.txt file3.txt file4.txt -c 'ThreesomeInit'

Error detected while processing command line:
E117: Unknown function: threesome#ThreesomeInit

(System setup: vim 7.2 on Ubuntu 10.04, i386.)

Removing the version test eliminates this error, so the problem must be in the test logic.

The same thing happens if your vim doesn't have python support compiled in. You get the un-informative "Unknown function" error message.

Owner

sjl commented Apr 20, 2012

Can you run :messages and see if the warning message is in there? Also, if you could paste the result of :messages here it would probably be easier to tell what function it's choking on.

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