delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/02/17:53:52

X-Spam-Check-By: sourceware.org
Message-ID: <b4376ea40701021453r6239bfd9t44b6dea199514154@mail.gmail.com>
Date: Tue, 2 Jan 2007 17:53:38 -0500
From: "Fred Ma" <FredMa AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: vim mlcscope interface issues
MIME-Version: 1.0
X-Google-Sender-Auth: cd269b7a2e303c03
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Note-from-DJ: This may be spam

If this shows up more than once, I apologize.  Gmail is telling me it
didn't get sent (twice), and it doesn't show up on the mailing list
archive, though that may be due to transit delay.

I'm ran into hanging problems with the the following combination,
updated today:

   cygwin   1.5.23-2
   vim      7.0.122-1
   mlcscope 14.1.8-2

The problem had to do with shelling out to build the cscope database
via "mlcscope -b -u *".  I specified the files "*" because I had
Matlab files; Matlab is ont a recognized language, so the files would
not be acted on by default.  I think the problem arose because "*"
also included the output file being built (cscope.out), so it
cscope.out kept get bigger as it analyzed itself.  Narrowing the files
down to "*.m" restricted the files to Matlab files only, and bypassed
that hanging problem.

However, I get the following error trying to add the connection to
cscope.out:

   cs_read_prompt EOF: No error

   E609: Cscope error:
   mlcscope: cannot read trailer offset from file cscope.out

The only reference I've found to it is
http://groups.google.ca/group/comp.editors/browse_frm/thread/2a614f2f0e87250e

I don't have cscope on my system, so that's not the explanation.  I
also have cscopeprg=/usr/bin/mlcscope.

I'll be downloading cscope as my next step.  Since I've gotten
vim/cscope to work on solaris before, I'm hopeful that it will be
straightforward.

I'm curious as to whether there has been any succcess or failures with
the current cygwin/vim/mlcscope combination, which will hint at
whether it is my setup or not.

Thanks.

Fred


> Date: Sun, 15 Oct 2006 17:03:42 -0500
> From: Dave & Diane <daveanddiane at kringlecottage dot com>
> Subject: Re: vim mlcscope interface issues
> Delivered-To: mailing list cygwin at cygwin dot com
>
> Interesting find. Looks like I'll have to work with the vim folks to see
> if they will add support for mlcscope. It is a completely different
> version than cscope, but the interface is generically the same so I
> don't think it would be too difficult to add support in vim and fix
> if_cscope.c to support both.
>
> In the meantime, if you don't have sourceforge cscope installed, you
> might try creating a symbol link called cscope and see if that works too.
>
> Frodak wrote:
> > Over the last several days I've been trying to use vim
> > with mlcscope and have come to the conclusion that the
> > two won't place nice.  Whenever performing a ":cs find
> > ..." vim would hang until I killed the mlcscope
> > process.  I couldn't find anything on-line about
> > compatibly issues between the two.  I downloaded
> > sourceforge cscope and had no issues with it working
> > with vim.
> >
> > I've decided to look at the vim source file
> > if_cscope.c line 633 and changed it to key off of the
> > string "mlcscope" instead of "cscope" it started to
> > work.
> >
> > Anyways, I thought I'd mention it because I had such a
> > tough time with it.
> >
> > :-)
> > Frodak

--
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