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
 Auto Complete for Unreal C++ not working.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AaditD
New Member

USA
7 Posts

Posted - Mar 27 2018 :  12:00:48 AM  Show Profile  Reply with Quote
I installed visual assist for VS 2017 comunity edition, and went through the documentation for setting it up for unreal. the Keywords are being color coded correctly but i cannot for the life of me get it to auto complete for me.

AaditD
New Member

USA
7 Posts

Posted - Mar 27 2018 :  01:05:12 AM  Show Profile  Reply with Quote
VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 15.6.27428.2002 Community
msenv.dll version 15.0.27428.2002
Comctl32.dll version 6.10.16299.309
Windows 10 10.0 Build 16299
8 processors (x86-64, WOW64)
Language info: 1252, 0x809

Platform: Project defined
Stable Includes:
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\Include\um;
C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;
C:\Program Files (x86)\Windows Kits\8.1\Include\shared;
C:\Program Files (x86)\Windows Kits\8.1\Include\um;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\VS\UnitTest\include;
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\VS\include;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\atlmfc\include;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\include;
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;
C:\Program Files (x86)\Common Files;

Other Includes:

Stable Source Directories:
C:\Program Files (x86)\Windows Kits\10\Source\10.0.10240.0\ucrt;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\VS\src;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\crt\src;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\atlmfc\src\atl;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\atlmfc\src\mfcm;
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\atlmfc\src\mfc;
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Mar 27 2018 :  06:03:21 AM  Show Profile  Reply with Quote
A couple of basic sanity checks first. When you open a code file in the IDE, are you seeing VA's context and definition fields at the top of the editor?

If you press Alt-M does anything happen? You should see a drop down list appear, from the context field, showing a list of all of the methods in the current file.

Are you seeing any listboxes at all, ever, when typing in the editor?

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

AaditD
New Member

USA
7 Posts

Posted - Mar 27 2018 :  12:24:22 PM  Show Profile  Reply with Quote
Yes, there is the context and definition field.
Alt M expands the list of methods on the top left.
No I'm not seeing any list boxes.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Mar 27 2018 :  1:50:28 PM  Show Profile  Reply with Quote
So VA is active in the files, and understands the code, this is something.

With focus in the code, can you please trigger the menu command:

VAssistX -> Insert VA Snippet...

a menu should appear at the caret position. If you then expand the "VA Snippets with shortcuts" option, and select on of the snippets, is this snippet inserted into your file?

If you look in the VA Options dialog, do you have any options turned On under the "Enhanced Listboxes" and "Suggestions" pages? Also, what do you have:

VA Options -> Enhanced Listboxes -> Source of C/C++ content: Visual Assist OR Default Intellisense

set to?

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

AaditD
New Member

USA
7 Posts

Posted - Mar 27 2018 :  9:37:57 PM  Show Profile  Reply with Quote
VA snipped worked. i could put in a struct.
in enhanced listboxes I have all options selected except "commit selections: with aditional characters"
The source of C/c++ content is Visual Assist.
In Suggestions i have all checked except include bits from surrounding lines, include refactoring suggestions and enable in C#
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Mar 28 2018 :  05:06:13 AM  Show Profile  Reply with Quote
All of this sounds fine, and some things are working normally.

As a quick check, can you please try making a new, default C++ solution, and see if VA listboxes are working there? It sounds like this is a solution, or Unreal specific problem, but I want to actually check that theory.

Also, in your Unreal solution, can you please go to the top of a code file, and then, on a blank line, type:

#in

you should see VA snippets for #include lines. Do you? If you start typing a #include statement, do you get any listboxes to help you type the file name you want to include? I am wondering if listboxes might work in some parts of the file, but not others.

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

AaditD
New Member

USA
7 Posts

Posted - Mar 28 2018 :  10:41:05 PM  Show Profile  Reply with Quote
I tried a new c++ default windows desktop application. It did not auto complete for me, none of the varaibles popped up.

When i tried the #include in the UE4 solution options did show up!the autocomplete for the #include showed up, and after that file names to include.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Mar 29 2018 :  08:29:48 AM  Show Profile  Reply with Quote
OK, this is a bit odd. When you typed the #include line, did you get a listbox after you had typed "#in" ? You should have, this is a VA Snippet listbox. If so, and Snippets are working, then other snippets should also work, so this will be one of the next tests.

In the new default C++ project, can you please try adding the simple test variable:

std::string strTest;

do you get any listbox while typing this line?
Now, on a new line, type:

strTest.

do you get a listbox after typing the dot? If not, what happens if you now press CTRL-SPACE? This should force a listbox to appear, even if one did not appear by default.

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

AaditD
New Member

USA
7 Posts

Posted - Mar 29 2018 :  12:08:22 PM  Show Profile  Reply with Quote
When i tried std string test-
the list box for #include "" showed up after #in.
No listbox showed up while typing the variable declaration.
However tryping strTest. did make a list box for functions to call on the string.

Also I tried CRTL +SPace in my UE4 project and the list box appeared, However it only shows methods from the .H file and variables that were parameters of the function I was in.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Mar 29 2018 :  4:38:42 PM  Show Profile  Reply with Quote
OK, sitting in a simple, newly created Unreal project here, I have a class derived from "ACharacter". Sitting in the header file, the class declaration starts:

UCLASS(MinimalAPI, const, Blueprintable, BlueprintType)
class FLYING_4_18_1_API AMyFelineCharacter : public ACharacter
{

"ACharacter" is shown in Italic text for me, since I have told VA to show symbols from stable include directories in Italic. When I press Alt-g on "ACharacter" I am taken to the file:

C:\Program Files\Epic Games\UE_4.18\Engine\Source\Runtime\Engine\Classes\GameFramework\Character.h

when I press Alt-Shift-G on ACharacter and select "Goto Member..." from the resulting menu, I get a dialog that lists 1136 members of this class.

Can you please try the same tests on your system, and see what results you get? I am trying to work out if this is a problem with getting VA to show listboxes, or a problem with VA detecting and parsing the Unreal Engine code. Hopefully this will help to tell us which direction to focus on.

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

AaditD
New Member

USA
7 Posts

Posted - Apr 01 2018 :  06:39:16 AM  Show Profile  Reply with Quote
Hi, I swapped out my computer cause it had some other problems, but now the autocomplete seems to be working fine! Thank you for your help! i appreciate it!I love Visual Assist.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18983 Posts

Posted - Apr 02 2018 :  07:24:26 AM  Show Profile  Reply with Quote
Thank you for the update, I am glad that everything is now working properly for you. This was a strange problem, and it sounds like all of these problems may have had a common cause, what ever that was.

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