I have tried to start a c++ project with both visual studio 2022 and 2026 and I get the same errors with the PCH warning sometimes not appearing in 2026. If I enter the files with errors, even more errors will appear. I haven’t found anything that solves my problem and I’ve been at this for 12+ hours.
Edit 1: Seems like the Intellisense is kinda slow and dosent really suggest things either, so if i just ignore the errors I cant really work. I’m honestly on the edge of just completely giving up on UE…
Edit 2:
Just restarting unlocked another message, great! ”Browsing operations around this macro may fail. Consider adding it to a hint file.”
Checking with my peers, the errors you are getting (IntelliSense PCH file not generated, template parameter not deduced, size of array greater than zero) are all tied to a conflict with PCH, IntelliSense, and the VS setup. Your code is most likely working as intended.
So, to pinpoint the exact cause, a full cache clear is your best bet. To do that, close both UE and VS, then go to your project’s main directory, and delete folders .vs and Intermediate. After that, locate your .uproject file, right click it and apply “Generate Visual Studio project files”.
After that, before restarting anything, please double-check that ALL components required for Visual Studio are installed and enabled in your setup, which can be seen in the following guide:
Once you checked all elements, restart both UE and VS, then test your setup again. If the issue persists, I would recommend rolling back to 5.6, as it’s the most stable version of the engine. 5.7 was released about a week ago, unexpected behaviours are still possible at this stage.
Thank you for your reply @brs-sebascova. I just deleted visual studio 2022 and did a complete re-install of visual studio 2026. I deleted and created a new project and had no luck.
@nande Sorry but this is not my class giving errors. This is a newly created empty project. If I create an empty actor class I get those errors, but they are for engine files and not for anything I created. Here are images of 2 files that are throwing errors:
that dosn’t always matter. in cpp errors tend to cascade. if it happens when you add a class, then it’s a problem with the new class. can you share the code of the new class?
thanks for the screen, those are ue internal classes, it’s very typical in cpp you’ll get errors referencing template classes as a symptom, but it’s not the cause.
@nande Yeah my bad! I didn’t start to think about the fact the errors occurred only when I had files created until I was writing my previous message.
Here is the files:
that file seems innocuous, and it has the .generated.h
maybe you need to regenerate project files:
close visual studio and ue.
right click the project file (uproject)
select regenerate solution or project files
reopen with vstudio
maybe if you add the BlueprintType to the uclass meta but i don’t think that’ll make a difference.
try this: can you run the project with that class there?
If so, then there’s a problem with intellisense, which afaik it’s pretty bad already.
notes:
i would never recommend to create a class with visual studio, i’d recommend to do it through ue.
if your project is not paid, try using rider. it’s free for non commercial stuff and other cases. rider works much better and doesn’t need to regenerate the solution manually.
you could also try vs code, but i don’t like ms products.