Menu

#859 "Implementation of" is searching in all projects instead of current one

Undefined
open
nobody
Bug_Report
2019-08-02
2019-08-01
No

Hi,

I have this problem since a few years but I was able to reproduce it more easily with the nightly build svn 11810. I'm working on multiple generation of a product spanning 20 years.

When two (or more) projects are opened in C::B and a function that have the same name in both project then using the "Find implementation of: <what is="" selected="">" will open the first one found instead of the one is currently active project.</what>

See attached file that contains 2 test projects.

How to reproduce:
- Open Project Test A and Project Test B.
- Activate B and use "Find implemantation" in the file "CallThis.c" on the function "TestThis".

Result:
It will open the file in Project Test A even if "Project Test B" is the active one.

Can the find pick the one in the active project first and then fall-back to others ? Or this could be configurable ?

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2019-08-02
    • labels: --> CodeCompletion
     
  • Morten MacFly

    Morten MacFly - 2019-08-02

    Actually, this is intended. Very often a typical setup of a workspace is libs or sdks as projects and a main project to combine these. In that case you want to search implementations in all projects. Maybe we can priorise CC suggestions to first show the ones of the active project or make this an option?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.