Author |
Topic  |
|
AbbaJeee
New Member

4 Posts |
Posted - Oct 02 2011 : 6:28:03 PM
|
Jumping to the declaration with Alt-G works always, but jumping to the definition does not work.
Alt-G to the definition works only if the namespace of the function has been explicitly defined by Foo::. If the namespace is only defined by "using namespace Foo;" then Alt-G does not work.
Alt-G imho is one of the most useful features in visual assist. It is one of the reasons why we bought Visual Assists for our team. I hope this gets fixed soon. Thanks! :)
FooBar.cpp: namespace Foo { class FooBar { public: FooBar(); ~FooBar(); void AltGNoWork(); void AltGDoWork(); }; }
FooBar.h: #include "AltGNoWork\\FooBar.h" using namespace Foo; FooBar::FooBar(){} FooBar::~FooBar(){}
void FooBar::AltGNoWork(){}
void Foo::FooBar::AltGDoWork(){} |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Oct 03 2011 : 3:18:52 PM
|
Which IDE and version of VA are you using?
Alt-g is working correctly for me in this case. I can jump from the declaration to the definition, and back again, as often as I want.
I am testing in VS2008 with VA 1856. |
zen is the art of being at one with the two'ness |
 |
|
AbbaJeee
New Member

4 Posts |
Posted - Oct 04 2011 : 06:23:35 AM
|
Visual Assist 1856 Visual Studio 2010
Maybe it is due to vs 2010? |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Oct 04 2011 : 6:48:43 PM
|
This is working correctly for me in VS2010 with VA 1859.
Can you please try creating a new, default C++ solution, copy in your test code, and see if you can reproduce the problem there? I am wondering if there is something else going on in your main solution that is a factor here. |
zen is the art of being at one with the two'ness |
 |
|
AbbaJeee
New Member

4 Posts |
Posted - Oct 05 2011 : 03:45:04 AM
|
quote: Originally posted by feline
Can you please try creating a new, default C++ solution, copy in your test code, and see if you can reproduce the problem there? I am wondering if there is something else going on in your main solution that is a factor here.
I did some more testing and found that the problem might have something to do with our directory structure.
solution\\solution.sln include\\projectName\\foobar.h source\\projectName\\foobar.cpp source\\projectName\\projectname.vcxproj
Here's a simple sln with the problem: http://dl.dropbox.com/u/27921945/AltGProblem.zip |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
Posted - Oct 05 2011 : 4:35:44 PM
|
Thank you for the sample solution, it helps a lot. I am seeing the same problem here, the directory layout of the code files is the problem, but I have no idea why. I would not expect it to matter like this, to have an effect like this:
case=61788 |
zen is the art of being at one with the two'ness |
 |
|
support
Whole Tomato Software
    
5566 Posts |
Posted - Oct 29 2012 : 11:04:15 AM
|
case=61788 is fixed in build 1918 |
 |
|
|
Topic  |
|