#include apparently not working; file format not recognized; a lot of confusion
I used cubeMX to generate code for the USB init. Somehow some #include calls are not working. They can't find the file. But if I ctrl+click I get directed to the correct file. I tried refreshing, rebuilding the index, open as admin and specificly adding the files as an include option in the preferences. Nothing worked. Then all of a sudden all hal-driver files produced errors. At some point it resolved itself(?) and then "core_cm7.h" gave me an error message because of a #error. And now I get this message:

file format not recognized. What is happening?
I work on CubeIDE 1.1.0 and STM32h743.