[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim-dev
Subject:    file open bug?
From:       nate () cse ! psu ! edu (Nathan Coraor)
Date:       2003-11-19 20:55:06
[Download RAW message or body]

Here's one for the "weird" file:

All the systems in question are Solaris 9.  /usr/local on our
workstations is mounted via cachefs from a central NFS server.  When
this server goes down, /usr/local is unavailable... however, when it
comes back up, workstation life resumes as normal.

...except for Vim.  Specifically, syntax highlighting.  It only happens
on certain workstations, which leads me to speculate that it was only
on one where either:

  Someone was using Vim when the server went down, or...
  The syntax.vim file was cached via cachefs when the server went down.

Specifically what happens is:

  1. Server goes down.
  2. Server comes back up.
  3. User tries to invoke Vim with syntax on.
  4. User receives the follwing:

    Error detected while processing /home/user/.vimrc:
    line   11:
    E484: Can't open file /usr/local/share/vim/vim62/syntax/syntax.vim

The weird part about it is that the file in question is fine...

> ls -l /usr/local/share/vim/vim62/syntax/syntax.vim
-rw-r--r--   1 root         1228 Aug 14 11:12 \
/usr/local/share/vim/vim62/syntax/syntax.vim

> cat /usr/local/share/vim/vim62/syntax/syntax.vim
" Vim syntax support file
" Maintainer:   Bram Moolenaar <Bram@vim.org>
" Last Change:  2001 Sep 04
  ...

I've found that if I unmount and remount /usr/local, it works again.

I just trussed a broken one and got:

stat("/share/vim/vim62/syntax/syntax.vim", 0xFFBFEB60) Err#2 ENOENT
open("/share/vim/vim62/syntax/syntax.vim", O_RDONLY) Err#2 ENOENT
Error detected while processing /home/staff/nate/.vimrc:write(1, "1B [ 3 5 ; 1 H E r \
r o r".., 74)       = 74

Which lead me to try:

> ln -s /usr/local/share /share

...and now it works.  Why is it looking in /share?

Thanks,
--nate

--------
nathan coraor
cse it support
nate@cse.psu.edu


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic