Code Monkey home page Code Monkey logo

Comments (10)

oblique avatar oblique commented on May 27, 2024

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.

leoliu avatar leoliu commented on May 27, 2024

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.

oblique avatar oblique commented on May 27, 2024

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.

oblique avatar oblique commented on May 27, 2024

If I remove the --from-here=2:projectB/b.c the global gives the correct result.

from ggtags.

leoliu avatar leoliu commented on May 27, 2024

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.

oblique avatar oblique commented on May 27, 2024

Ok, thanks!

from ggtags.

leoliu avatar leoliu commented on May 27, 2024

Bug reported upstream: http://thread.gmane.org/gmane.comp.gnu.global.bugs/1624

from ggtags.

leoliu avatar leoliu commented on May 27, 2024

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.

oblique avatar oblique commented on May 27, 2024

everything works perfect ;)

from ggtags.

leoliu avatar leoliu commented on May 27, 2024

Great and thanks.

from ggtags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.