Comments (10)
One workaround is to avoid using symbolink, remove gtags files from /projectA
and go to their common parent directory (in my example /
) and run
find /projectA /projectB -type f | gtags -f -
But, I don't want to do this, can you think a better solution?
from ggtags.
Thank you for the bug report. I noted this bug already and was hesitating to fix it in ggtags because it was due to `global' itself. But now I think we'd better make ggtags handle it because such scenarios are common.
Please test the fix thoroughly and let me know if there are issues. Thank you.
Leo
from ggtags.
Thanks!
I still getting the following error:
-*- mode: ggtags-global; default-directory: "/tmp/projectA/" -*-
Global started at Sun Nov 17 11:39:29
global -v --result=grep --path-style=shorter --from-here=2:projectB/b.c aa
global: '/tmp/projectB/b.c' is out of the source project.
Global exited abnormally with code 1 at Sun Nov 17 11:39:29
from ggtags.
If I remove the --from-here=2:projectB/b.c
the global
gives the correct result.
from ggtags.
C-u M-. will force finding definition tags i.e. without --from-here which provides some sort of dwim.
The bug you are seeing is basically due to this: when index projectA, gtags uses ./B/b.c; but --from-here resolves the symlink and find that file not in the project. I think this one should be fixed in global. Let me think about it. Thanks.
BTW, it seems global
normalise paths so symlinks are likely to cause problems.
Leo
from ggtags.
Ok, thanks!
from ggtags.
Bug reported upstream: http://thread.gmane.org/gmane.comp.gnu.global.bugs/1624
from ggtags.
Are you able to test the global.c patch found in http://article.gmane.org/gmane.comp.gnu.global.bugs/1626 with ggtags.el from git? Thank you. Leo
from ggtags.
everything works perfect ;)
from ggtags.
Great and thanks.
from ggtags.
Related Issues (20)
- Should 'ggtags-include-pattern' be a buffer local variable? HOT 4
- Is there an option to override project root? HOT 2
- file path is shortened in the output buffer HOT 2
- Tag navigation and compilation mode HOT 1
- How to use this gtags-cscope feature from ggtags.el
- CPU is pinned to 100%, with excessive gtags processes spawned HOT 6
- ‘global’ non-zero exit: sh: global: command not found HOT 2
- POSIX realpath required
- wrong-type-argument error on compilation-auto-jump timer
- ggtags causes company-capf to fail when GTAGS doesn't exist
- ggtags-fontify-code conflicts with hl-line-mode HOT 1
- ggtags doesn't work with xref in Emacs 27.2 since latest update HOT 3
- GTAGSLIBPATH not searched HOT 1
- `ggtags-fontify-code` should be called optionally HOT 2
- With tramp: Error running timer ‘compilation-auto-jump’: (wrong-type-argument stringp nil) HOT 5
- 'xref-find-definitions' problem in symbolic link directory HOT 6
- xref-pop-marker-stack doesn't return to previous location HOT 1
- Use default gtags backend unless GTAGSLABEL is set
- Enhancement: Use Emacs' sqlite API (built-in or via module)
- Make integration with xref and capf user configurable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggtags.