E484 when setting filetype

35 views
Skip to first unread message

Benct Philip Jonsson

unread,
Dec 30, 2009, 8:29:59 AM12/30/09
to vim...@googlegroups.com
Whenever I do a set filetype=mason, or it is done from
any file in ~/.vim/ I get an error (translated by me from
Swedish, so the actual English wording may be different):

"Error detected while processing of Syntax Autocommands
E484: can't open file /usr/share/vim/vim71/syntax/mason.vim"

/usr/share/vim/vim71/ doesn't exist anymore on my machine,
but I don't get the error with other filetypes. The error
is not anywhere in ~/.vim/, as far as I can tell.

Doing ln -s /usr/share/vim/vim72/ /usr/share/vim/vim71/
"fixes" the problem, but I guess there is a proper way,
and a real error somewhere with something specifically
naming /usr/share/vim/vim71/ when it shouldn't.
How can I find out?

/BP 8^)>
--
Benct Philip Jonsson -- melroch atte melroch dotte se
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"C'est en vain que nos Josu�s litt�raires crient
� la langue de s'arr�ter; les langues ni le soleil
ne s'arr�tent plus. Le jour o� elles se *fixent*,
c'est qu'elles meurent." (Victor Hugo)

Gary Johnson

unread,
Jan 3, 2010, 3:25:08 PM1/3/10
to vim...@googlegroups.com
On 2009-12-30, Benct Philip Jonsson wrote:
> Whenever I do a set filetype=mason, or it is done from
> any file in ~/.vim/ I get an error (translated by me from
> Swedish, so the actual English wording may be different):
>
> "Error detected while processing of Syntax Autocommands
> E484: can't open file /usr/share/vim/vim71/syntax/mason.vim"
>
> /usr/share/vim/vim71/ doesn't exist anymore on my machine,
> but I don't get the error with other filetypes. The error
> is not anywhere in ~/.vim/, as far as I can tell.
>
> Doing ln -s /usr/share/vim/vim72/ /usr/share/vim/vim71/
> "fixes" the problem, but I guess there is a proper way,
> and a real error somewhere with something specifically
> naming /usr/share/vim/vim71/ when it shouldn't.
> How can I find out?

I would start with

grep -R vim71 ~/.vimrc ~/.vim

If that doesn't help, then try setting 'verbose' to some appropriate
value, execute ":set filetype=mason", and see what command causes
the error. See

:help 'verbose'

HTH,
Gary


Benct Philip Jonsson

unread,
Jan 4, 2010, 2:23:33 PM1/4/10
to vim...@googlegroups.com
Gary Johnson skrev:

> On 2009-12-30, Benct Philip Jonsson wrote:
>> Whenever I do a set filetype=mason, or it is done from
>> any file in ~/.vim/ I get an error (translated by me from
>> Swedish, so the actual English wording may be different):
>>
>> "Error detected while processing of Syntax Autocommands
>> E484: can't open file /usr/share/vim/vim71/syntax/mason.vim"
>>
>> /usr/share/vim/vim71/ doesn't exist anymore on my machine,
>> but I don't get the error with other filetypes. The error
>> is not anywhere in ~/.vim/, as far as I can tell.
>>
>> Doing ln -s /usr/share/vim/vim72/ /usr/share/vim/vim71/
>> "fixes" the problem, but I guess there is a proper way,
>> and a real error somewhere with something specifically
>> naming /usr/share/vim/vim71/ when it shouldn't.
>> How can I find out?
>
> I would start with
>
> grep -R vim71 ~/.vimrc ~/.vim

Thanks!

For some reason I forgot to grep for vim71 in ~/.vimrc,
and indeed there was a culprit -- an autocommand which
apparently could be commented out without consequences.

/BP

Reply all
Reply to author
Forward
0 new messages