zephyrproject-rtos / eclipse-plugin

Zephyr Eclipse Plugin
Eclipse Public License 2.0
16 stars 18 forks source link

Can't build Zephyr application, java null pointer exception is triggered during build due to missing CMAKE_CXX_COMPILER information #49

Closed martanav closed 2 years ago

martanav commented 2 years ago

When trying to build a zephyr application, I get a Java null exception on project.

image

During build process, the plugin reads information from cache (CMakeCache.txt). When it reaches CMAKE_CXX_COMPILER, information retrieved is null, since CMakeCache.txt includes CMAKE_CXX_COMPILER as a STRING, and the plugin is looking for FILEPATH. https://github.com/zephyrproject-rtos/eclipse-plugin/blob/17572aafd51a3fe7fa9fd8a4e4c81f2f28527517/plugins/org.zephyrproject.ide.eclipse.core/src/org/zephyrproject/ide/eclipse/core/internal/build/CMakeCache.java#L114

Using: Ubuntu 20.04 CDT 2019-12, CDT 2021-12, 2021-06, 2021-03 Zephyr SDK 0.13.1 Zephyr 2.7.1

martanav commented 2 years ago

Fixed with PR #50