bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed patch - Better choice of default for gtags-visit-rootdir


From: Shigio YAMAGUCHI
Subject: Re: Proposed patch - Better choice of default for gtags-visit-rootdir
Date: Mon, 28 Sep 2015 14:00:22 +0900

It was reproduced. Sure, it is a bug.
Your fix will be included in the next version of GLOBAL.
Thank you for the report and code!

(reproduce procedure)

[Shell command line]
$ cp /dev/null main.c
$ ls 
main.c
$ emacs -f gtags-mode main.c

[Emacs mini buffer]
M-x gtags-visit-rootdir[ENTER]
v
Visit root directory: /tmp/test/[ENTER]
v
/tmp/test/main.c is not directory.      <= MYSTERIOUS ERROR

Regards,
Shigio


2015-09-28 12:59 GMT+09:00 Earl Chew <address@hidden>:
On 27/9/2015 15:38, Shigio YAMAGUCHI wrote:
Hello,
Sorry but I don't understand what is problem.
Would you please tell me a method by example which reproduce
the situation of the problem?

The key to reproducing this problem is to start in a new directory tree
that is lacking GTAGS, GRTAGS and GPATH. The order of operations
is:

1) gtags-visit-rootdir to establish the correct root directory
2) Then issue gtags in shell to establish database

Suppose I have the source directory tree rooted at .../src, and in
that directory I also have .../src/test.py.

I visit .../src/test.py. In the text buffer, I now issue
gtags-visit-rootdir and the minibuffer shows me ".../src/"
so I accept and press RETURN. It is important to accept
the minibuffer content by only pressing RETURN, and not typing
anything else. When I do this, I get the error:

".../src/test.py is not a directory"

I will send to you directly a series of screen shots showing the above
sequence, to avoid spamming the mailing list.

Earl




--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]