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

