delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/11/21:56:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 12 Sep 2008 09:56:03 +0800
From: goooguo <goooguo AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: is this a bug of vim?
Message-ID: <20080912015603.GA1556@GUO>
References: <20080911115134 DOT GA660 AT GUO> <17393e3e0809111720l6ea19d33n584dc405dd6e4fab AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <17393e3e0809111720l6ea19d33n584dc405dd6e4fab@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, Sep 11, 2008 at 08:20:40PM -0400, Matt Wozniski wrote:
>2008/9/11 goooguo:
>> hi,
>>        When I open a file by ":tag indent" or "g]", vim complains that
>> "Unable to open swap file, recovery impossible", which is very annoying.
>> However, if I open a file via ":edit fname" or ":tabedit fname", no error
>> message will be issued.
>It looks to me that this is happening because your cscope.out file
>contains windows-style paths.  Is that the case?  If so, you should
>know that cygwin only supports the use of posix-style paths.  That
>being said, this patch defeats the entire point of having both a
>"short" file name (ie, the one the user used) and a full file name
>(ie, fully qualified).  So, normally, if you were to do :e hello.c,
>then sfname would be set to 'hello.c' and ffname would be set to
>$PWD/hello.c; this patch completely breaks that.
this patch is only a temporary way to workaroud for me.
>
>~Matt
Yes, I think cscope.out is the culprit. Vim works fine if I remove 
cscope.out. My cscope utility is installed from "gnuwin32", which builds
the database with dos-type path.

For compatible reason, I install mlcscope from cygwin packages, vim works OK.

What interesting is that vim didn't issue any error message if I rebuild 
a cscope.out by gnuwin32 cscope.

Thank you for your reply.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019