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
 Technical Support
 Alt-G using namespace problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AbbaJeee
New Member

4 Posts

Posted - Oct 02 2011 :  6:28:03 PM  Show Profile  Reply with Quote
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
18724 Posts

Posted - Oct 03 2011 :  3:18:52 PM  Show Profile  Reply with Quote
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
Go to Top of Page

AbbaJeee
New Member

4 Posts

Posted - Oct 04 2011 :  06:23:35 AM  Show Profile  Reply with Quote
Visual Assist 1856
Visual Studio 2010

Maybe it is due to vs 2010?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Oct 04 2011 :  6:48:43 PM  Show Profile  Reply with Quote
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
Go to Top of Page

AbbaJeee
New Member

4 Posts

Posted - Oct 05 2011 :  03:45:04 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Oct 05 2011 :  4:35:44 PM  Show Profile  Reply with Quote
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
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2012 :  11:04:15 AM  Show Profile  Reply with Quote
case=61788 is fixed in build 1918
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