bug-global
[Top][All Lists]
Advanced

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

gtags-find-tag returns directory not found


From: LynX
Subject: gtags-find-tag returns directory not found
Date: Wed, 10 Jun 2015 21:48:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hello all,


>What is your environment (OS)?

Windows

>Which version of GLOBAL are you using?

GLOBAL 6.4

>What did you do? (command line)

I am using gtags plugin for Emacs.

M-x gtags-visit-rootdir <dir with gtags>
M-x gtags-find-tag <tag>

>What did you expect from it?

I would like to jump to the tag.

>What was occurred? (as is)

I get: "directory not found" whereas the path is correct and it contains correct gtags meta files


It seems that GTAGSROOT (at least on Windows) should contain directory file name and not the directory name (so it should not contain last /):

c:\Users\LynX\workspace>set GTAGSROOT=c:\Users\LynX\workspace <-- ok

c:\Users\LynX\workspace>global -l df
rhino/src/org/mozilla/javascript/optimizer/DataFlowBitSet.java

c:\Users\LynX\workspace>set GTAGSROOT=c:/Users/LynX/workspace <-- ok

c:\Users\LynX\workspace>global -l df
rhino/src/org/mozilla/javascript/optimizer/DataFlowBitSet.java

c:\Users\LynX\workspace>set GTAGSROOT=c:\Users\LynX\workspace\ <-- fails

c:\Users\LynX\workspace>global -l df
global: directory 'c:\Users\LynX\workspace\' not found.

c:\Users\LynX\workspace>set GTAGSROOT=c:/Users/LynX/workspace/ <-- fails

c:\Users\LynX\workspace>global -l df
global: directory 'c:/Users/LynX/workspace/' not found.

I created the patch for gtags-visit-rootdir from gtags.el and tested it on Windows and Linux.

Please let me know if I can help any further.


lynx@:~/global$ cvs diff gtags.el
Index: gtags.el
===================================================================
RCS file: /sources/global/global/gtags.el,v
retrieving revision 1.53
diff -r1.53 gtags.el
524c524
<     (setq input (read-file-name "Visit root directory: " path path t))
---
> (setq input (directory-file-name (read-file-name "Visit root directory: " path path t)))
lynx@:~/global$




reply via email to

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