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
 VA snippet macro bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

lex
Senior Member

40 Posts

Posted - Jan 20 2018 :  07:38:33 AM  Show Profile  Reply with Quote
I have a VA snippet for header files:

    #ifndef $SOLUTION_NAME_UPPER$_$PROJECT_NAME_UPPER$_$FILE_BASE_UPPER$_$FILE_EXT_UPPER$_
    #define $SOLUTION_NAME_UPPER$_$PROJECT_NAME_UPPER$_$FILE_BASE_UPPER$_$FILE_EXT_UPPER$_

    namespace $SOLUTION_NAME_LOWER$ { namespace $PROJECT_NAME_LOWER$ {
	    $end$
    }}

    #endif

The problem is that $PROJECT_NAME_XXX$ doesn't work for new files until the solution has been closed and reopened. It looks like this:

    #ifndef SOLUTION1__HEADER_H_
    #define SOLUTION1__HEADER_H_

    namespace solution1 { namespace  {
	
    }}

    #endif

And after the solution has been reopened:

    #ifndef SOLUTION1_PROJECT1_HEADER_H_
    #define SOLUTION1_PROJECT1_HEADER_H_

    namespace solution1 { namespace project1 {
	
    }}

    #endif

I'm using Visual Studio Community 2017.

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 20 2018 :  08:54:30 AM  Show Profile  Reply with Quote
Which version of VA are you using? Also which version of VS2017 are you using?

The current version of VS2017 is 15.5.4.

VA has had to make some changes to how it watches for changes to the loaded project in different versions of VS2017, so I need to know what versions you are using. If you are using the latest version of both VA and VS2017 then this should be working correctly.

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

lex
Senior Member

40 Posts

Posted - Jan 20 2018 :  09:35:29 AM  Show Profile  Reply with Quote
I didn't have the latest version of VS. It works with 15.5.4. Thank you!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 20 2018 :  11:10:42 AM  Show Profile  Reply with Quote
Excellent news, thank you for the update.

zen is the art of being at one with the two'ness
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