Closed j4m3s closed 7 months ago
I can't reproduce this issue:
$ pio project init -d aaa --ide qtcreator -b uno
The following files/directories have been created in /private/tmp/aaa
include - Put project header files here
lib - Put project specific (private) libraries here
src - Put project source files here
platformio.ini - Project Configuration File
Resolving uno dependencies...
Already up-to-date.
Updating metadata for the qtcreator IDE...
What kind of issue is this?
Configuration
Operating system: Ubuntu 20.04
PlatformIO Version (
platformio --version
): PlatformIO Core, version 6.1.7Description of problem
When initialising a project for qtcreator, only the contents of
src
are added to the platformio.files file. This means that the files intest
andlib
must be added manually in the IDE in order to be able to see & edit them. That's not the end of the world, but each time platformio.ini is changed, the project must be re-init'd to update the qtcreator metadata and it gets frustrating having to re-add the files each time.Steps to Reproduce
Actual Results
Only the files in
src
are visible (though the files in lib are present inplatformio.includes
so autcomplete works fine.Expected Results
The files in
lib
andtest
should also be added.Additional info
Shared code is put in
lib
as-per the best practice detailed in the unit testing docs - and the tests are obviously put intest
:)I believe the fix is straightforward: a modification to
platformio.files.tpl
to iterate and add the contents of the lib and test directories?