Closed JuPrgn closed 3 weeks ago
The test file is also created inside the first subdirectory inside test/
Both of those things make sense.
The module_generator plugin puts the files in the first folder in the list, unless something else is specified when you call it. You're using the splat operator as the first item, so it's searching the /src/**
folder and listing all the subdirectories... and (annoyingly enough) that operator returns src
as the last item on that list.
You can fix the default by updating your paths like so:
:paths:
:test:
- test/
- +:test/**
:source:
- src/
- src/**
:include:
- src/
- src/** # In simple projects, this entry often duplicates :source
:libraries: []
You can also specify which path you want the module generator to use when you call it, like so:
ceedling module:create[src:filename]
Thank you very much Mark
Those paths are not used anymore by the plugin ?
:module_generator:
:project_root: ./
:source_root: src/
:inc_root: src/
:test_root: test/
Oh. Hm? Good point. I'll take a look. Perhaps we changed the naming to be more consistent?
It appears those features are called path_src
, path_inc
and path_tst
but I'm not 100% sure that they aren't clobbered by ceedling every time? I'd need to run some experiments.
I tested those and they are clobbered by Ceedling
It would be nice if we can keep those options in case it is a simple fix but it is not an important feature, I could specify the directory on the call as you described it.
I think I see a straightforward solution... but I'll need to test it. :)
Great thank you ! Please let me know if I can help to test it
This should be fixed in the latest pre-release #60c24c2
@mvandervoord It works great, thank you !
Awesome! Thanks for checking @JuPrgn !
Hi, I am switching from Ceedling 0.31.0 to 1.0.0 (currently using 1.0.0-9fc30fb). Using module generator pluggin it seems the source files are created in another place than the path I set in my project.yml Header and C files are created in
src/bsp/
inner directory instead ofsrc/
directory.Is something wrong with my configuration or is this a bug ?
This is my configuration :