EasyClangComplete: [Bug] Completions loaded from cache after file save.

I have this problem since I installed EasyClangComplete. Here’s an example:

problem

the weird thing is that after change test to ::test the completion is work very well

weird

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 37 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Hmm not sure how this works performance wise but removing TU.PARSE_CACHE_COMPLETION_RESULTS flag from initial parsing does the job.

include_macros=True option needs to be added to the tu.codeComplete() call parameter list.

Ok, will happen soon.

I don’t really know. I should probably keep this issue open though.

What I am sure of is that the completions come from libclang itself. Just the way they do when I complete with a dot, but they don’t get updated properly.

Yep, I totally understand the issue. I hope I will have the time to fix this during this week. It should not be too hard.

Ok, I know the reason. It should be easy to fix too. We cache the completions in a specific position of the document. We just need to invalidate this cache on file save.