Intellisense errors when including file

How is it even possible?

The source file is also messed, it says that methods does not belong to ASpotlightLampActor.

Try to set every #include before “…generated.h”

Does not do anything.

either way, the -generated.h file should always be the last #include in a header

Okay. Forward declaration also does not work.

Hi.

Where exactly do you see these errors? In Output after compilation or just in Error List window?

If that’s the 2nd, then you should ignore it as this window doesn’t work very well with UE4 and displays false errors. Attempting to compile will tell you if there are actual problems or not.

In case it’s the 1st one (Outpit), could you show what errors are you getting?

These are only intellisense errors but they are extremely annoying - in fact it disables any code completion, tooltips etc. Project compiles fine.
I am using VS 2017 Preview 6.0, but I asked also question how to switch it to non-preview version - maybe that is the case.