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
 Why in the hells doesn't this function?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 09 2018 :  11:32:54 AM  Show Profile  Reply with Quote

Simple scenario - a class with an embedded class (dialog with a data wrapper) - with a std::vector of such wrappers:


	// Scratch area for working with sections
	struct VirtualSection
	{
		VirtualSection(const CString & name);
		VirtualSection(CMacroInterpreter * pInterpreter, SECTION * sec);

		SECTION *	sec;			// pointer to real section (if exists: added sections = null)
		CString		name;			// section name

		bool		current;		// current (only one)
		bool		hidden;			// hidden
		bool		locked;			// locked

		int			straight;		// straight lines in real section (not edited)
		int			arc;			// arcs in real section (not edited)
		int			circle;			// circles in real section (not edited)
		int			subroutine;		// subroutines in real section (not edited)
		int			text;			// annotations in real section (not edited)
		int			dimension;		// dimensions in real section (not edited)
		int			construction;	// construction lines in real section (not edited)
		int			group;			// groups in real section (not edited)
		int			other;			// all other types in real section (not edited)
		int			total;			// total number of items in real section (not edited)
	};
	typedef std::vector<VirtualSection> SectionsVector;

	SectionsVector			m_sections;				// virtual state of the macro engine (indexes match what the engine will see at any given point in time)


When I'm trying to fill in an access to m_sections[index] - and then dot + ctrl+space to get a list of possibilities.

NOTHING.

Stupid stuff about Pos - what the hell is a Pos symbol doing there - and a total blank on how to expand into an element in m_sections?!!!!

This is bread & butter of VA - and It's totally failing on me, forcing me to waste time looking up this crap by hand.

Wicked Frustrating!!!

VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 15.0.27130.2010 Professional
msenv.dll version 15.0.27130.2010
Comctl32.dll version 6.10.16299.192
Windows 10 10.0 Build 16299
4 processors (x86-64, WOW64)
Language info: 1252, 0x409

Platform: Project defined
Stable Includes:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\include;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\include;

Other Includes:

Stable Source Directories:
C:\Program Files (x86)\Windows Kits\10\Source\10.0.16299.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\src;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\crt\src;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\atl;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\mfcm;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.12.25827\atlmfc\src\mfc;

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 09 2018 :  11:35:26 AM  Show Profile  Reply with Quote
NOTE / Addendum:

after collecting all of the above info - which forced me to open the header - going back to the .cpp and trying to get a screen cap of what nonsense it was producing instead gave me a coherent list of members of VirtualSection - as it should have done always.

This makes me think that VA is failing to parse headers - even ones included in that very .cpp file!

Here's the top of the .cpp file in question (and you'll notice that its .h file is the second thing included!)

// SectionsDialog.cpp : implementation file
//

#include "StdAfx.h"
#include "SectionsDialog.h"
Go to Top of Page

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 09 2018 :  11:37:52 AM  Show Profile  Reply with Quote
Also worth mentioning - I recently told it to regen all cache data because I was getting frustrated with it's abject failures last week. I figured it was worth trying to wipe out any garbage, and VS has updated twice in recent memory.

Despite this - VA has been incredibly obtuse - red-underlining obviously defined symbols in lots of projects and now this - defeating the primary purpose for it's existence - i.e. to expand members so I don't have to have a didactic memory.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 10 2018 :  2:55:21 PM  Show Profile  Reply with Quote
Is the file SectionsDialog.h added to the project?

Are SectionsDialog.h and .cpp located in the same directory? I'm wondering if VA is able to reach the header.

In case they are located in a seperate directory, can you please try
1. close SectionsDialog.h tab
2. rebuild your symbol dialogs
3. restart VS
4. open your project and SectionsDialog.cpp
5. wait until VA finishes parsing
6. now, go over the filename in #include "SectionsDialog.h" - does alt+G work? If Visual Assist is unable to locate the file for some reason it could explain what you are seeing. In this case, either trying to figure out why VA miss the include path or adding the file to your project should help.
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