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

 All Forums
 Visual Assist
 Technical Support
 Goto command problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Clif
New Member

6 Posts

Posted - Jul 23 2009 :  11:22:43 AM  Show Profile  Reply with Quote
Visual Assist X 10.5.1727.0

Goto command (Alt-G and [Goto]button) goes well from function source to header, but never goes vice versa (from header to source).
Both files (.h and .cpp) located in same directory and reparsed.
Directory is listed in headers and sources directories lists.
Symbols database rebuild doesn't help.
Help, please.

feline
Whole Tomato Software

United Kingdom
13797 Posts

Posted - Jul 23 2009 :  2:50:19 PM  Show Profile  Reply with Quote
If you go to the cpp file and use alt-m are all of the functions listed correctly? It almost sounds like VA cannot find the function implementations.

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

Clif
New Member

6 Posts

Posted - Jul 23 2009 :  6:19:35 PM  Show Profile  Reply with Quote
Functions are listed correctly.
And all other functions work well, only Alt-G is a problem.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13797 Posts

Posted - Jul 24 2009 :  1:47:25 PM  Show Profile  Reply with Quote
This is rather odd. If you call one of these functions and then press Alt-g on the function call what happens? Does VA list both the declaration and the implementation in a menu, or does it go directly to the declaration in the .h file?

Do you have:

VA Options -> Performance -> Parse all files when opening a project

turned on or off?

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

Clif
New Member

6 Posts

Posted - Jul 28 2009 :  03:25:29 AM  Show Profile  Reply with Quote
When I'm in .cpp file, alt-g drops me correctly to func declaration in .h. Go-listbox shows only implemetation meanwhile.
When I'm in .h file, alt-g does nothing. Go-listbox shows only declaration.

"Parse all files when opening a project" is off, because project is massive. But, anyway, manual reparse is unsuccessful.
Previous versions of asssist didn't fail with this function (project is the same).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13797 Posts

Posted - Jul 28 2009 :  7:02:10 PM  Show Profile  Reply with Quote
If you open VA's Find Symbols dialog is this function listed?
If you open VA's Open File dialog is this cpp file listed? If it is not part of the project, or VA does not think it is part of the project this might be a factor.

Since parse all files is turned off then you will need to open the cpp file, or somehow tell VA to parse the file. Until this happens VA will not know about the implementation. But once you have opened the cpp file VA should know about it.

This sounds like a parser problem, but normally these problems also effect the Alt-M list and VA Outline. Are there any obvious problems with either of these?

If you use Alt+Up Arrow and Alt+Down Arrow to move to the next and previous function in this cpp file does VA correctly stop at this "problem" function, or does it jump over it, or stop somewhere in the middle of the function? I would expect to see some problems with these commands if there was a parser problem at work here.

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

volker
Starting Member

1 Posts

Posted - Jul 29 2009 :  02:30:12 AM  Show Profile  Reply with Quote
I can confirm the behaviour observed by Clif (version 10.5.1727.0, VS 2008, 9.0.21022.8). I started with a 'Clear History, cache and temporary files' and 'Rebuild Symbol databases' in the Visual Assist X Options.
After opening a project which contains both .cpp and .hpp files, I observe the following behaviour:

Alt+G works from source to header but not the other way. Alt+M in the source file shows all functions. 'Parse all files when opening a project' was not activated.

>> If you go to the cpp file and use alt-m are all of the functions listed correctly?

Yes. Alt+M does not show any problem.

After activating the 'Parse ...' option and restarting the IDE, I can choose from both options (*.cpp or *.hpp) when pressing Alt+G (in header AND source).

(BTW: Wouldn't it make sense to directly go from the *.hpp to the *.cpp and vice versa when pressing Alt+G on the declaration/definition when the 'target' is unique?)

Is it necessary to keep the option 'Parse all files ...' activated?
Go to Top of Page

Clif
New Member

6 Posts

Posted - Jul 29 2009 :  03:43:35 AM  Show Profile  Reply with Quote
feline, all functions that you listed (va-outline,alt-m,alt-up/down) work fine.
Except, maybe, va-find symbol (works only if [Show only symbols defined in current solution] is unchecked - is it correct?)

"Parse all files..." helped with Alt-G behaviour. But is it mandatory to do so?
Why can't assist correctly parse files, when I open it?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13797 Posts

Posted - Jul 29 2009 :  12:59:21 PM  Show Profile  Reply with Quote
I am seeing a very similar problem here:

case=30226

I would expect opening the cpp file to be sufficient for VA to parse the file and alt-g to work correctly.

If you use the menu command:

VAssistX -> Tools -> Reparse Current File

to manually reparse the cpp file does alt-g in the header file now take you to the .cpp file? This works for me.

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

Clif
New Member

6 Posts

Posted - Jul 30 2009 :  03:18:14 AM  Show Profile  Reply with Quote
No. [Reparse current file] doesn't help.
Only "Parse all files when opening a project" does.
But this makes assist work slowly on our huge project (scrolling twitches, PgDown can hang for a seconds)...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
13797 Posts

Posted - Jul 30 2009 :  12:26:18 PM  Show Profile  Reply with Quote
This is unexpected, you are seeing a different effect to me.

Do you have the time to setup a simple test for this? A new default solution with a function declaration in the header file and the function implementation in a .cpp file will be fine. With "Parse all files when opening a project" still turned off manually reparsing the .cpp file should be enough to get alt-g working, letting you jump into the cpp file.

Parsing all files, this should only slow things down when you first load the solution. Once parsing has finished you should not see any slow down at all. If both the IDE and VA are parsing at the same time then this can cause quite a lot of slow down, these two FAQ's about avoiding this clash might help you:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8464

http://docs.wholetomato.com?W133

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

Clif
New Member

6 Posts

Posted - Jul 31 2009 :  12:18:13 PM  Show Profile  Reply with Quote
I'll try, thanks.
Go to Top of Page

support
Whole Tomato Software

5562 Posts

Posted - Aug 22 2009 :  7:26:52 PM  Show Profile  Visit support's Homepage  Reply with Quote
case=30226 is fixed in build 1731

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Whole Tomato Software Forums © 2014 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000