Missing paths in metadata json when using build_src_filter
(result on broken code insight features with CLion)
#4723
Labels
Milestone
Hello,
There seems to be some issues with
build_src_filter
and metadata command:include
andsrc
project folders are added twice to the json configuration file when using metadata command.build_src_filter
, metadata json file does not change. Others custom source folders are not added.build_src_filter
, CLion code insight is broken, even if, in this case, the json file is the same. That could be a plugin issue, and not a PIO-core issue.Configuration
Operating system: Windows 10
PlatformIO Version: 6.1.10
CLion: 2023.2
PIO CLion plugin: 232.8660.142
Steps to Reproduce
pio init --board nucleo_f446re
build_src_filter
to get all .c/.cpp/.h files recursively from the root of the project:> pio project config --json-output
> pio project metadata --json-output -e nucleo_f446re --json-output-path export.json
Actual Results
export.json
, the pathdummy/
is missing, andinclude/
andsrc/
paths are added twice.src
andinclude
folder.This result on a broken code insight with CLion (and I suspect with other IDE as well).
Expected Results
dummy/
folder should be present in the json file.Additional info
About CLion, this seems to be a plugin issue and not a PIO core issue. Should a YouTrack issue be created ?
This issue could be linked with this issue as well: #4718
Because the
platformio.ini
is usingbuild_src_filter
as well, and the user is reporting having issues with CLion code insight.The text was updated successfully, but these errors were encountered: