FS#15403 - [vim] refuses to start with mercurial 1.3
Attached to Project:
Arch Linux
Opened by serge (xchllataa) - Monday, 06 July 2009, 14:28 GMT
Last edited by Allan McRae (Allan) - Tuesday, 07 July 2009, 13:57 GMT
Opened by serge (xchllataa) - Monday, 06 July 2009, 14:28 GMT
Last edited by Allan McRae (Allan) - Tuesday, 07 July 2009, 13:57 GMT
|
Details
Description:
After recent mercurial update (1.2.1-1 -> 1.3-1) vim refuses to start: $ vim Error detected while processing /etc/vimrc: line 47: E484: Can't open file /usr/share/vim/vim72/syntax/syntax.vim Press ENTER or type command to continue It is because mercurial installs a file to /usr/share/vim/vim72/syntax/HGAnnotate.vim. If the /usr/share/vim/vim72 directory is removed, vim works. Additional info: vi 7.2.65-1 vim 7.2.65-1.1 mercurial 1.3-1 |
This task depends upon
Closed by Allan McRae (Allan)
Tuesday, 07 July 2009, 13:57 GMT
Reason for closing: Fixed
Additional comments about closing: mercurial 1.3-2
Tuesday, 07 July 2009, 13:57 GMT
Reason for closing: Fixed
Additional comments about closing: mercurial 1.3-2
Error detected while processing /etc/vimrc:
line 47:
E484: Can't open file /usr/share/vim/vim72/syntax/syntax.vim
Error detected while processing /home/gborzi/.vimrc:
line 20:
E484: Can't open file /usr/share/vim/vim72/syntax/syntax.vim
Error detected while processing /etc/gvimrc:
line 35:
E484: Can't open file /usr/share/vim/vim72/syntax/syntax.vim
every line where the error is detected contains "syntax on". I have reinstalled both vim and gvim and they still give the error message, so I'd say that's not a borked installation problem.
Im with core and extra repo enabled in my machine, so im sure it is not the cause of the problem.
Tobias, by the way, the testing vim did not go to extra/core ? Im sure i have not using testing for a long time and it is fresh install of x86_64 arch.
I don't have testing repo enabled. Also I have never modified /etc/vimrc. So it is not a repository mixup.
The attached diff against the PKGBUILD modifies the path of the vim file (HGAnnotat.vim). It also replaces use of $startdir/{pkg,src} with ${pkg,src}dir as an added bonus :-)
IIRC there's been some discussion about the location of vim files, /usr/share/vim or /usr/share/vim/vim72. I don't know if it has been settled once and for all yet.
I would believe vim is not at fault here.
It's the mercurial package that does not install its syntax file at the right place, then vim when it starts seems a "vim72" directory and attempts to use it.
The fix has to go into mercurial so HGAnnotate.vim goes into /usr/share/vim/syntax and not /usr/share/vim/vim72/syntax.
I am new to this bug reporting tool so I don't know whether I should open up a new bug entry tagged [mercurial] or not.