I have a project with a STM32 which I am coding in VS code platform IO.
My problem, is that intellisense for google mock simply can not work when the native test project is unable to build (because the “main” project relies on stm32 hal libraries). See below image for the error.
For clarity, pio test works fine:
Uploaded small project which shows the problem here:
Anybody can confirm that this is a bug (and hopefully it will be solved), or that there is a way to get around this with a workaround?
PS: I understand that I can’t build my native environment, since it will compile all c/c++ files which includes stm32 hal libraries. That’s fine. The pio test commands builds only my test runners / test files and will only include my “none hal dependent” classes. But if platformio intellisense would be able to resolve the googlemock headers (they can, using pio test, after all) it would make a huge difference !