Does anybody use cscope together with VIM?

208 views
Skip to first unread message

Justin Li

unread,
Dec 14, 2008, 10:09:40 AM12/14/08
to v...@vim.org
My Vim version is 7.2, when I install Cscope plugin, it seems that it can not use cscope command.

For example, when I type :cs add /home/cciss/work/jm10.2/JM/cscope.out /home/cciss/vim72, there is a error message "E319: Sorry, the command is not available in this version". My guess is that the most recent cscope plugin is for Vim version 7.1, thus it could be not compatible with 7.2 version.

For you information, actually, the cscope.out is exist at that time, as following:
cciss@justin:~/work/jm10.2/JM$ ls -l cscope.*
-rw-r--r-- 1 cciss cciss  303104 2008-12-14 22:26 cscope.in.out
-rw-r--r-- 1 cciss cciss 2569859 2008-12-14 22:26 cscope.out
-rw-r--r-- 1 cciss cciss 1944816 2008-12-14 22:26 cscope.po.out

So, is there anybody could explain this problem for me, thanks in advance.

Jusin
--
Department of Electronic Engineering
City University of Hong Kong

Gary Johnson

unread,
Dec 14, 2008, 3:08:31 PM12/14/08
to vim...@googlegroups.com

The reason for the error is explained in the text below

:help E319

which is:

Sorry, the command is not available in this version

You have used a command that is not present in the version of Vim
you are using. When compiling Vim, many different features can
be enabled or disabled. This depends on how big Vim has chosen
to be and the operating system. See |+feature-list| for when
which feature is available. The |:version| command shows which
feature Vim was compiled with.

The problem is that the vim you are using was built without the
+cscope feature. This has nothing to do with any plugin you might
be using to access cscope's features.

Where did you get the version of vim you are using? If it is the
default vim on your system, it may be the tiny version that doesn't
have many features compiled in. If that is the case, then one
solution is to use your system's package manager to install a more
fully-featured version. If you built this vim yourself, you just
need to rebuild it after running configure again with the
--enable-cscope option.

If you need help with any of that, let us know what system you are
using and include the output of the :version command in your post.

Regards,
Gary

Tony Mechelynck

unread,
Dec 14, 2008, 10:23:33 PM12/14/08
to vim...@googlegroups.com

or with --with-features=big or --with-features=huge

>
> If you need help with any of that, let us know what system you are
> using and include the output of the :version command in your post.
>
> Regards,
> Gary

For Windows, you can download a Big distribution at
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721
-- click the clipboard-like icon for the ":version" text.

For Unix/Linux, see my HowTo page
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm to guide you
through compiling your own.


Best regards,
Tony.
--
Love and scandal are the best sweeteners of tea.

Justin Li

unread,
Dec 14, 2008, 10:47:35 PM12/14/08
to v...@vim.org

eesyli

unread,
Dec 14, 2008, 10:52:08 PM12/14/08
to vim_use

eesyli

unread,
Dec 14, 2008, 10:58:39 PM12/14/08
to vim_use
I am so sorry for posting so many times of the same contents. I am a
baby-user of this mailing list, so there might be some mistakes
happen.

Sorry again.

Justin

Tony Mechelynck

unread,
Dec 14, 2008, 11:08:54 PM12/14/08
to vim...@googlegroups.com, Sheny...@gmail.com
This is the third almost identical post on the same subject. Before the
second one, you had already received two replies, so please read them.

Regards,
Tony.
--
When we are planning for posterity, we ought to remember that virtue is
not hereditary.
-- Thomas Paine

eesyli

unread,
Dec 15, 2008, 2:03:38 AM12/15/08
to vim_use
Thanks Gary Johnson's kind answer, the problem is solved.

It is just because the cscope feature is not enabled in my VIM, when I
re-configure it with --enable-cscope, and re-make&&re-make install.
The 'cs' command can be used.

Best regards,

Justin

Ben Schmidt

unread,
Dec 15, 2008, 2:49:32 AM12/15/08
to vim...@googlegroups.com
Hi, Justin,

It's great that Gary's solution worked for you.

May I also suggest with Tony, though, that you use --with-features=big
or --with-features=huge. Using --enable-cscope is enough for your
current situation, but it is likely that without big or huge features
you will have other things missing that you want soon.

Ben.

eesyli

unread,
Dec 15, 2008, 3:18:48 AM12/15/08
to vim_use
Thank you Ben and Tony, I would like to use your suggestion of using
--with-features=big or huge.

The Gary's solution is my first try to solve this problem, maybe yours
--with-features=big or huge are next one.

Thank you very much for your kind and useful addition.

Best regards,

Justin

Chris Jones

unread,
Dec 16, 2008, 2:43:42 PM12/16/08
to v...@vim.org
On Mon, Dec 15, 2008 at 05:08:54AM +0100, Tony Mechelynck wrote:
> This is the third almost identical post on the same subject. Before the
> second one, you had already received two replies, so please read them.
>
> Regards,
> Tony.

Tony;

This is probably someone thinking the original message did not go
through. I've encountered some serious lag on this mailing list between
the time I send and the time it actually appears to be posted. Also it
appears that only sending to v...@vim.org works for me. The
reply_to address of vim...@googlegroups.com doesn't work.

Cheers,
Chris

--
"You must be the change you wish to see in the world." -- Mahatma Gandhi

Tony Mechelynck

unread,
Dec 16, 2008, 3:27:20 PM12/16/08
to v...@vim.org, Chris Jones
On 16/12/08 20:43, Chris Jones wrote:
> On Mon, Dec 15, 2008 at 05:08:54AM +0100, Tony Mechelynck wrote:
>> This is the third almost identical post on the same subject. Before the
>> second one, you had already received two replies, so please read them.
>>
>> Regards,
>> Tony.
>
> Tony;
>
> This is probably someone thinking the original message did not go
> through. I've encountered some serious lag on this mailing list between
> the time I send and the time it actually appears to be posted. Also it
> appears that only sending to v...@vim.org works for me. The
> reply_to address of vim...@googlegroups.com doesn't work.
>
> Cheers,
> Chris
>

Hm. Works for me. The poster later said he had got bounces for the first
posts; nevertheless they did appear on the list. ?-)

Before resending and reresending (etc.) a post, it might be useful to
wait some time (maybe an hour or two) and check http://groups.google.com/


Best regards,
Tony.
--
[clop clop]
GUARD #1: Halt! Who goes there?
ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of
Camelot. King of the Britons, defeator of the Saxons,
sovereign of
all England!
GUARD #1: Pull the other one!
The Quest for the Holy Grail (Monty
Python)

bill lam

unread,
Dec 16, 2008, 9:37:21 PM12/16/08
to vim...@googlegroups.com
On Tue, 16 Dec 2008, Tony Mechelynck wrote:
> Before resending and reresending (etc.) a post, it might be useful to
> wait some time (maybe an hour or two) and check http://groups.google.com/

I think the poster could not receive his own email after sending to
the mailing list. This is a feature of gmail. More info can be
googled with keywords gmail, mailman.

Either check the web-base mail achieve as Tony has suggested, or
subscribe with another gmail account for receiving mail.

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩282 白居易 後宮詞
淚濕羅巾夢不成 夜深前殿按歌聲 紅顏未老恩先斷 斜倚薰籠坐到明

Reply all
Reply to author
Forward
0 new messages