-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear module generator usage #996
Comments
Hi @fredo514 -- thanks for the note at the end. I'll look into that! I'm afraid that this structure isn't likely to make it easy to use module_generator... particularly since module_generator never creates directories... it just does its best to match your existing directories to the requested path. Would it be worthwhile for us to add the option to specify where EACH file goes when using this feature? Otherwise, the best scenario is likely that you create a folder where files are supposed to go initially upon creation and then you move them to the right spot when desired. You might be able improve it's guesses by getting more specific with the path specification... but I suspect it's not worth it in the long time. You'd just be trading one manual task (moving files to the right place) with another manual task (manually creating folders and then adding to the That might look something like this:
I'm still not confident it would always do the right thing using the above, but it's worth a try? |
(fixed the project.yml file example issue listed above) |
Thanks a lot for the answer. The provided path config indeed works if I create the folder manually before. I found the Vscode extension Template that basically lets me right-click on the src folder, enter a module name, and have the folder created automatically. It's 2 steps, but not the end if the world. I'm not sure if I understand what you mean by being able to specify the location of each files, but I think it could be useful if the plugin had these features:
|
Your first bullet makes sense to me. We have to avoid slashes currently, because of the way the command parser works... but I'm sure we can figure something out. I'm not sure what you mean by this:
Are you suggesting that we add new options that would modify whatever path is provided for |
There's surely many intricacies I'm not aware of, so you know best. Currently, if I use slashes in the If I understand correctly, the paths in My use case was to have a way to create modules in a project with a non-default directory structure. I really don't know enough of Ceedling's backend or even Ruby to know if it's even possible, but it would be really nice to have. Especially since some vendor tools force their own project directory structure that doesn't match ceedling's default (stm32cube, nordic, etc). For example, referring to my initial post, I wanted this module structure:
I'd like to be able to set paths and/or other settings to be able to call If you point me in the right direction, maybe I can give it a try and report back with a proof of concept? |
Hi,
First of all, let me thank you for the impressive tool you put out there and all the improvements added in 1.0.0!
I'm trying to use Ceedling with a non-standard project structure, e.g.:
But I can't find the right settings for creating that structure automatically when using
ceedling module:create
. The closest I got what setting paths toconfiguring module_generator with:
and calling
ceedling module:create[foo/foo]
. But it doesn't create the sub-directories I want. I.e. it creates:What am I doing wrong?
Also, the project.yml generated with
ceedling new
doesn't use the new path variables (path_src
, etc) in the:module_generator:
config.The text was updated successfully, but these errors were encountered: