Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Parsing files not part of project

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Adequat Posted - Mar 09 2018 : 02:47:44 AM
I often come to this annoying situation:
I have file "foo.cpp" in my project, and I open file "foo.cpp" from an older version of my project. That is, they share most of the same symbols.
VA then parses this file too. And later, when I have closed, VA still has references to the old file.
The problem then can arise: I do a "goto symbols" and start editing the old foo.cpp by mistake.
How could this be prevented?
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 10 2018 : 05:57:35 AM
Are you being taken to the wrong "foo.cpp" by Alt-g, Goto Related and Find Symbol? Or only some of these commands?

For the Find Symbol dialog, do you have "Show only symbols defined in current solution" turned On or Off? Or do you move between On and Off for this setting? With this turned On, symbols from the wrong "foo.cpp" should not be showing up.

I have tried setting up a simple test for this problem, and am focusing on Alt-g, and so far have not been able to make this happen on demand. So knowing a few more details about how and when you are seeing this problem would be helpful.
Adequat Posted - Mar 10 2018 : 02:07:58 AM
Although my solution has tons of projects, the goto scope is set to "Project".
But I also use Goto related, or even "find symbol".

When I open the other version of foo.cpp, it is never relative to the solution.

A solution could be "don't parse anything that is not part of the solution"... but I would not be satisfied either because of this:
I work with the Qt framework, and regularly debug-trace it at the source level. The Qt framework source code is out of my solution, but my projects include its headers.
In that case, I am happy that, when I open a Qt source file, it parses its identifiers and allows me to navigate among these, without any effort from my side.

Hence a solution would be:
"Only parse a file if it is part of the solution, or if it belongs to some custom directory"
sean Posted - Mar 09 2018 : 10:27:37 AM
when you open the other version of foo.cpp, where is it located (relative to the solution)?

also, if you close and then re-open the solution, does goto symbol still show the same behavior?

and what exact command does "goto symbols" refer to?
feline Posted - Mar 09 2018 : 08:20:42 AM
In VA options, on the Goto page, what do you have your scope of Goto set to? Project or Solution? Does changing this to Project make any difference?

When you get this problem, are you given a choice of files to go to, or do you just get one instance of "foo.cpp" listed?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000