Pio check fails, when running verbose, checks are passed

greetings

I have a problem with pio check. When running with the default env I get the error:

❯ platformio check
Checking d1_mini > cppcheck (board: d1_mini; platform: espressif8266@2.4.0; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: cppcheck failed to perform check! Please examine tool output in verbose mode.
========================================================================================== [FAILED] Took 8.10 seconds ==========================================================================================

Environment      Tool      Status    Duration
---------------  --------  --------  ------------
d1_mini          cppcheck  FAILED    00:00:08.098
nodemcuv2        cppcheck  IGNORED
local_unittests  cppcheck  IGNORED
==================================================================================== 1 failed, 0 succeeded in 00:00:08.098 ====================================================================================

When running with verbose as requested I get:

platformio check -v
Checking d1_mini > cppcheck (board: d1_mini; platform: espressif8266@2.4.0; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[......]
11/11 files checked 100% done


No defects found
========================================================================================== [PASSED] Took 8.05 seconds ==========================================================================================

Environment      Tool      Status    Duration
---------------  --------  --------  ------------
d1_mini          cppcheck  PASSED    00:00:08.053
nodemcuv2        cppcheck  IGNORED
local_unittests  cppcheck  IGNORED
========================================================================================= 1 succeeded in 00:00:08.053 =========================================================================================

Any idea whats wrong here and howto fix/debug that?

Can you upload the project for which this is reproducable? You can do a bug report to GitHub - platformio/platformio-core: A professional collaborative platform for embedded development then.

of course: the project can be found here:

could u reproduce this. just to be sure, no layer8 problem is involved :wink: