I am using Visual Studio 2022, I had the same issue with Visual Studio Code.
I am trying to add an #include in my header Grabber.h, by doing so the GENERATED_BODY() function will move from line 12 to line 13, and the UClass from line 9 to line 10 creating the following issue see pics. The program will generate compiler errors if those lines are moved down.
Dan Thank you for the tip “what is the actual output of compiling”, I found the compiling error and I fixed it. Missing c++ lines???
I got my project working, it was missing code c++ lines “just gone?” and I had to reconfigure a couple of my blueprints for some reason.
Anyway the issue GENERATED_BODY() remains. I need to be extremely careful when compiling from VS, If GENERATED_BODY() is generating an error and I compile my cpp files, it will fatally crash my project