Andersbakken / rtags

A client/server indexer for c/c++/objc[++] with integration for Emacs based on clang.
http://www.rtags.net
GNU General Public License v3.0
1.83k stars 252 forks source link

Handle include failed, infinite indexing #1287

Open hessryanm opened 5 years ago

hessryanm commented 5 years ago

Describe the bug When running RDM, there are thousands of messages in the rdm log similar to this one: handleInclude failed 0x0 inclusion directive include string.h /usr/local/opt/llvm/include/c++/v1/string.h:61:1 Indexing continually adds more files to be indexed, and never completes.

To Reproduce Steps to reproduce the behavior: Not sure if it will be reproducible, happens whenever running rdm.

Expected behavior Expected rdm to successfully resolve includes and not index forever.

Environment (please complete the following information):

Additional context Don't know if this is related, but when I try to start rdm with no arguments I get the message:

Can't initialize logging with -1 /usr/local/Cellar/openssl/1.0.2q/lib/ 0x6

rdm will only start if I specify a log location.

casch-at commented 5 years ago

I hit the same problem but it disappeared while bisecting the last 10 commits. I also cleared the rtags cache.

On 31 January 2019 19:39:34 CET, Ryan Hess notifications@github.com wrote:

Describe the bug When running RDM, there are thousands of messages in the rdm log similar to this one: handleInclude failed 0x0 inclusion directive include string.h /usr/local/opt/llvm/include/c++/v1/string.h:61:1 Indexing continually adds more files to be indexed, and never completes.

To Reproduce Steps to reproduce the behavior: Not sure if it will be reproducible, happens whenever running rdm.

Expected behavior Expected rdm to successfully resolve includes and not index forever.

Environment (please complete the following information):

  • OS/Version: OS X Mojave 10.14.2
  • RTags(rdm,rc): 2.21.126
  • LLVM/Clang: LLVM 7.0.1 through homebrew. Clang 10.0.0 from OS X. Not sure which is being used. Log message when building project say "clang-5.0: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]"

Additional context Don't know if this is related, but when I try to start rdm with no arguments I get the message:

Can't initialize logging with -1 /usr/local/Cellar/openssl/1.0.2q/lib/ 0x6

rdm will only start if I specify a log location.

-- Christian Schwarzgruber T: +43 699 194 166 34 E: c.schwarzgruber.cs@gmail.com

hessryanm commented 5 years ago

I tried clearing the cache but no result. As soon as I gave it something else to index the problem remanifested.

byguess commented 5 years ago

I have the same problem. Any advice to fix it?

hessryanm commented 5 years ago

Sorry, I'm still unable to use it, so I have no suggestions. Let me know if you find a fix!

mckellyln commented 5 years ago

Just to make sure, are you at the latest rct submodule ?

hessryanm commented 5 years ago

Yes.

On Tue, Feb 12, 2019 at 1:09 PM Mark Kelly notifications@github.com wrote:

Just to make sure, are you at the latest rct submodule ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Andersbakken/rtags/issues/1287#issuecomment-462914767, or mute the thread https://github.com/notifications/unsubscribe-auth/AApcs9wbdpKh9Z5-xaDOz9xnWRS4X68_ks5vMx9mgaJpZM4ac6JM .

mckellyln commented 5 years ago

Is there a set of source files or a repo I could use to try and reproduce ?

gtmacdonald commented 5 years ago

I'm seeing this issue as well on mojave.

@cslux What commit did you land on?

casch-at commented 5 years ago

I use the latest commit! Somehow that symptom did go away after deleting, the data dir :-.

Greg MacDonald notifications@github.com writes:

I'm seeing this issue as well on mojave.

@cslux What commit did you land on?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

gtmacdonald commented 5 years ago

@cslux Thx! That did the trick. For future searchers: rm ~/.rdm

sbenedetto commented 5 years ago

I also have the same problem. I'm using latest master. Removed data dir. Any hint on how to debug it?