Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 File parsing persistence
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Adequat
Tomato Guru

182 Posts

Posted - Aug 08 2017 :  05:17:29 AM  Show Profile  Reply with Quote
When a new source file, out of the solution, is opened, it gets parsed by VA automatically.
This has advantages and drawbacks.

* Here an advantage: I am using Qt and something I need to browse in the source code. Qt being huge, I don't want to have it fully parsed. Parsing only the file(s) I open, is sufficient and good.

* Here a disadvantage, and even a source of trouble. Regularly I open a past version of a source file. Eg. in my solution, I have foo.cpp but I also open foo.cpp from an older folder, to compare stuff. The two foo.cpp are now parsed by VA, and have similar symbols.
The problem is that when I close the old foo.cpp, VA still remembers it, and I could "goto" old stuff easily, thinking this is the new foo.cpp. This ends up me editing the wrong file. This is bad.

The solution would be: when a file that does not belong to the solution, gets closed, it should be removed from VA memory.


Edited by - Adequat on Aug 08 2017 05:18:03 AM

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Aug 08 2017 :  08:52:08 AM  Show Profile  Reply with Quote
When you are being taken to the old version of the file, which VA command or commands are you using? I am thinking that the setting:

VA Options -> Projects and Files -> Restrict Goto (Alt+G) to active project

should help here.

For Qt, have you considered adding Qt to your stable include directories? This way VA will only parse the Qt library when rebuilding the symbol database, the rest of the time we just keep the Qt symbols in hand, to help with coding and navigation.

https://docs.wholetomato.com/default.asp?W213

zen is the art of being at one with the two'ness
Go to Top of Page

Adequat
Tomato Guru

182 Posts

Posted - Aug 09 2017 :  3:03:29 PM  Show Profile  Reply with Quote
"Restrict Goto (Alt+G) to active project" is not an option, as my solution is made of multiples modules, each one being a project. I need to goto these projects.

quote:
For Qt, have you considered adding Qt to your stable include directories?


I never felt the need for this.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000