I’ve faced an issue with intellisense in Visual Studio while working with TArrays. The problem is that intellisense is not able to find TArray’s native functions like “Add()”, “Emplace()”, “Empty()”, “Num()” etc and even iterate over it (cause “begin()” is not found as well). It’s not even work with simple types e.g.
TArray<int> some_array;
some_array.Add(5);//class TArray<%params%> has no member "Add"
I’ve checked this issue with other containers like TMap and seems like it is ok.
Compilation is ok, reproduced both with VS and VAX intellisense. Anyway, it’s quite annoying and makes intellisense highlighting useless.
Seems like the issue appeared after update of VS, as it was working before update. Currently I’m using Microsoft Visual Studio Community 2019 Version 16.4.3 (and yeah, i didn’t update it for a while, so probably the issue appeared not in the latest version of VS)
Hi all.
If someone is interested or faced the same problem - I found a root cause of this issue as well as solution for it. Issue was caused by Visual Studio cached files. I’ve deleted .vs folder in the directory of my project , reopen VS and it reindexed all project files from scratch. After this procedure the problem is gone.
IMO, I would recommend VisualAssist … Just seems to be better at UE4 Intellisense context, but it does cost $ ($99 for individual license). but you only pay once for a whole year and you don’t have to renew and keep using it unless you wish to have their updates
Hi! I agree with you, Visual Assist makes programming much easier especially with Unreal Engine API. But, as I wrote above, the root cause of the issue I raised was Visual Studio cache. It means that it was reproducible with Visual Studio native intellisense as well as with Visual Assist intellisense.
Just a heads up, if you’re in university (or have access to an old university email account), you can get Visual Assist for the student rate - $49/year.