Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostics fail with files accessible by multiple paths #1102

Open
1 of 7 tasks
redm123 opened this issue Nov 29, 2017 · 0 comments
Open
1 of 7 tasks

Diagnostics fail with files accessible by multiple paths #1102

redm123 opened this issue Nov 29, 2017 · 0 comments

Comments

@redm123
Copy link

redm123 commented Nov 29, 2017

Please mark appropriate

  • rtags (rdm/rc/rp)
  • Emacs Lisp
    • ac-rtags.el
    • company-rtags.el
    • helm-rtags.el
    • flycheck-rtags.el
    • ivy-rtags.el
    • rtags.el

Problem description

My repo lives under /devel/git/myrepo, but there is also a symlink in /home/myuser/git pointing to /devel/git. So a file is accessible by two paths:

/devel/git/myrepo/MyFile.cpp
and
/home/myuser/git/myrepo/MyFile.cpp

Rdm knows the files by /devel/ paths. My emacs however sometimes knows the files by the symlinked path. Now when I trigger diagnostics rdm properly finds the issues:

[100%] 1/1 12:58:16 /devel/git/myrepo/MyFile.cpp in 5721ms. (862 syms, 737 symNames, 15 includes, 1 of 1562 files, symbols: 2600 of 56395, 58178 cursors, 1880416 bytes written) (5393/300/15ms) (dirty). (priority 10)
Jobs took 5.90s. We're using 269mb of memory.
Output from /devel/git/myrepo/MyFile.cpp:
Fixit for /devel/git/myrepo/MyFile.cpp:74:12: Insert ";"

The problem is now that the diagnostics, as well as overlays, don't show up in the Emacs buffer. So at some point matching the results from rdm fails. Probably because the buffer is known under a different path (the symlinked one; even though it is the same file)

Expected behavior

If the resolved path is the same for Emacs and rdm files should be properly matched and diagnostics and overlays should show up in the buffer.

Actual behavior

Diagnostics buffer stays empty. Overlays are not shown.

Environment

  • Your operating system:
    Linux Ubuntu 14.04
    Emacs 24.3

  • LLVM/Clang version: 3.8

Feature request

Describe the feature we should add to RTags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants