Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409499 - net-im/mcabber[vim-syntax]: MCabber_log_ftdetect already exists, add ! to replace it
Summary: net-im/mcabber[vim-syntax]: MCabber_log_ftdetect already exists, add ! to rep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 08:44 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2014-03-30 12:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-24 08:44:12 UTC
When reloading filetype detection I get following error only for mcabber:

Error detected while processing /usr/share/vim/vimfiles/ftdetect/mcabber_log-ftdetect.vim:
line    8:
E122: Function MCabber_log_ftdetect already exists, add ! to replace it

Either ! should be added or condition to skip definition of function if already exists.

This is how the beginning of my vimrc looks like:

" Init pathogen plugin
filetype off            " We need to reload filetype detection for pathogen
call pathogen#runtime_append_all_bundles()

" File-type detection
filetype on

Reproducible: Always
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-02-16 12:45:44 UTC
Could you fix it? Fix is very easy:

Just replace "function" with "function!" in /usr/share/vim/vimfiles/ftdetect/mcabber_log-ftdetect.vim
Comment 2 David Heidelberg (okias) 2013-10-08 00:12:47 UTC
Can you test lastest git tarball ebuild? https://bugs.gentoo.org/show_bug.cgi?id=438952 code look same, but I can't see any error in vim.
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-08 07:35:49 UTC
(In reply to David Heidelberger (okias) from comment #2)
> Can you test lastest git tarball ebuild?
> https://bugs.gentoo.org/show_bug.cgi?id=438952 code look same, but I can't
> see any error in vim.

I don't use mcabber anymore… But fix of the issue is trivial, as you can see in comment #1.
Comment 4 David Heidelberg (okias) 2014-01-12 16:28:11 UTC
I can't see that error anymore. So, probably fixed (but not by adding !)
Comment 5 Wolfram Schlich (RETIRED) gentoo-dev 2014-03-30 12:51:22 UTC
Fixed in =net-im/mcabber-0.10.2_p20131025-r1.