Variable only exists if I run editor through VS

Does anyone know why this is happening? My variable exists in c++, and if I run the editor everything compiles and works fine.
If I run from the ue project file, it doesn’t compile and things it doesn’t exist.



edit:
I noticed it looks like my blueprints are holding onto some old versions of classes. going to clean out all of the generated folders and try again from scratch source c++.

edit2: regenerated and rebuilt everything except my config folder. that seems to have worked.