How can i avoid "type UUserWidget incomplete" error in VS?
But i get the "red lines" in Visual Studio in my new UserWidget class with the following error: Type UUserWidget is incomplete
The header file looks like this:
I also included UMG, Slate and SlateCore to my Build file and added the header files to my MyGame.h file
I already saw this post here but already did everything they suggested.
The code compiles and the Editor / Game runs fine but i still get this annoying errors in visual studio. Is there something i can do about it?
EDIT: I also have the VS configuration of this link here: https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/index.html
My IntelliSense configuration:
So in this case it wasn't the fault of Intellisense but Resharper (Jetbrain VisualStudio Extension). When i disable Code Inspection the squiggle are gone. Unfortunately i couldn't find the setting for this particular error so i have to turn it off completely. Thanks for the help.
Your can also exclude some files from analysis to remove "wrong" errors in certain files.
answered Jun 10 '15 at 07:30 AM
By "red lines" do you mean the squiggle lines where Intellisense detects errors?
I use Visual Assist, and generally have Intellisense turned off, so I don't see these squiggles. In general, any Intellisense errors can be ignored. The code that you provided is fine, and shouldn't provide any actual problems. With Intellisense enabled however, you are likely to see a large number of "errors" in the Error List.
None of these errors will prevent the project from building successfully, though. Intellisense tends to have a difficult time with large code bases, such as UE4, and the large amount of reflection that takes place in the Unreal Build Tool when building a project in Visual Studio doesn't help either. As you use the Engine, you will learn what errors are actually important, and which ones can be safely ignored.
answered Jun 09 '15 at 09:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here