Open cnason opened 6 years ago
I may be having this issue: I have an include file somewhere and a source file with a definition for a class used in the source:
$ rc --is-indexed /INCLUDE_FILE
indexed
$ rc --is-indexed /SOURCE_FILE
indexed
When I try to follow the usage of a type I get no results:
rc --absolute-path -f /SOURCE_FILE:40:29
A colleague is not having this problem with the same project but I'm not able to figure out how their configuration differs from mine. I'm open to just receiving advice on how to investigate my index more closely to find the source of the issue.
Same problem
Something I discovered that helped a lot in my case:
If you're using cmake then make sure you -DCMAKE_EXPORT_COMPILE_COMMANDS=1
and link to it somewhere rtags can find it. Then make sure you compile the project (ie ninja
made things much more discoverable).
This didn't fix everything but brought it up to 'good enough' for me.
Observing the same behavior. Files show up as indexed and rdm
shows zero errors while indexing. Querying with atom or rc
directly from the command line (with -f) yields zero results, no output from rc whatsoever.
I had this problem and spent hours trying to figure it out. Files were showing up as indexed but not able to find/follow symbols, even though the symbols appeared successfully in certain other queries. Although I couldn't get to the bottom of the problem rdm -C
and recreating the project fixed it for me.
Please mark appropriate
Problem description
I am using Atom-rtags and attempting to "Find Symbol at Point". No Results are found. I am running rdm. Our system using make. I'm using bear to create compile_commands.json I run "rc -J" and can see files being indexed from output of rdm. When I execute "Find Symbol at Point", rdm output is: rc -z -K -U /home/cnason/dandymuffin/output/hme/Hme.cpp:20:23 --no-context --json Query opened 1 files for project /home/cnason/dandymuffin/ rc --current-file=/home/cnason/dandymuffin/output/hme/Hme.cpp -f /home/cnason/dandymuffin/output/hme/Hme.cpp:21:25 -K --all-targets Query opened 1 files for project /home/cnason/dandymuffin/
Expected behavior
I expect Atom to jump to the definition of the symbol.
Actual behavior
No results are found.
Environment
Feature request
Describe the feature we should add to RTags.