Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Alt-G using namespace problem

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
AbbaJeee 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(){}
6   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 29 2012 : 11:04:15 AM
case=61788 is fixed in build 1918
feline 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
AbbaJeee 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 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.
AbbaJeee Posted - Oct 04 2011 : 06:23:35 AM
Visual Assist 1856
Visual Studio 2010

Maybe it is due to vs 2010?
feline 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.

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