BUG: Search in duplicated files in different projects

Post general DPack questions or problem reports here.

Moderator: Sergey

BUG: Search in duplicated files in different projects

Postby sergeym » March 4th, 2010, 8:25 pm

Please consider the following problem:

There are two projects in one solution - prjA and prjB. Both have different files with the same name F. Now searching a symbol in file F of prjB (alt+M) actually makes search in F of prjA.

Thanks.
sergeym
Junior Member
 
Posts: 9
Joined: March 4th, 2010, 8:16 pm

Re: BUG: Search in duplicated files in different projects

Postby Sergey » March 5th, 2010, 1:26 am

Cannot reproduce it. All works fine here. You may wanna attach a test case. I think it'll also help to troubleshoot it if you mention which files you had opened in the editor, and which one was the active one. Thanks.

PS Your user name confuses the hack out of me, naturally. :shock:
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: BUG: Search in duplicated files in different projects

Postby sergeym » March 5th, 2010, 8:16 am

Sergey,

Actaully the problem is even more complicated and seems very confusing.

There are two projects in one solution - prjA and prjB. Both have shared file. In that file there are two functions surrounded with #ifdef unique for each project. Defines are in project properties (Properties>C/C++>Preprocessor). Whatever project is active, USysWare Code browser shows always first function.

Can you provide an option of completely switching off #ifdef hiding in Code browser?

Thanks

PS back to USSR :lol:
Attachments
dtest.zip
(3.5 KiB) Downloaded 738 times
dpack.JPG
dpack.JPG (76.68 KiB) Viewed 7892 times
sergeym
Junior Member
 
Posts: 9
Joined: March 4th, 2010, 8:16 pm

Re: BUG: Search in duplicated files in different projects

Postby Sergey » March 5th, 2010, 11:58 am

Not a bug afaict. In general DPack relies on VS's code model to process what's available in the file. Your conditionals setup confuses VS's code model. It seems as if it makes the code model report what's in the file by whichever project processes it first, which I assume is ProjA. Case in point: bring up Class View and take a look at 'Global Functions and Variables' under both ProjA and ProjB. They both say 'foo_A' is the one that's available. They get that info off of code model as well.

Conditionals isn't something that's exposed through the code model. So, I'm afraid there isn't much I can do about it. Sorry.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: BUG: Search in duplicated files in different projects

Postby sergeym » March 5th, 2010, 12:53 pm

Thank you for quick reply!

I wish MS VS code model could be more configurable :(
sergeym
Junior Member
 
Posts: 9
Joined: March 4th, 2010, 8:16 pm

Re: BUG: Search in duplicated files in different projects

Postby sergeym » March 15th, 2010, 2:56 pm

sergeym
Junior Member
 
Posts: 9
Joined: March 4th, 2010, 8:16 pm

Re: BUG: Search in duplicated files in different projects

Postby Sergey » March 15th, 2010, 8:39 pm

Thanks for the reference. I'll see if I can test your particular case when I get a hold of RTM bits. There will be lots of pressure to release it ASAP so hopefully I'll get to it.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA


Return to DPack Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron