-
Notifications
You must be signed in to change notification settings - Fork 21
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
Alternative paths for user friendly project organization (add project_path attribute to component element) #95
Comments
David, thanks for the suggestion. Could you take the time to create an example (just text, not a real project), so that we better understand the request. It can be pretty simple. Right now we show the Cclass as the identifier for a component group in the project window. I assume you would like to achieve something similar. |
@DavidJurajdaNXP , base_path is not the one work for shape project tree view. To provide user friendly view, "project_path" is enough. |
This seems to be related how IDE show software components (see here #93 (comment)) Is this correct? If not, what is the underlying problem you try to solve? NOTE: we are working on a VS Code plug-in that provides a "Project View" for Open-CMSIS-Pack based projects. |
I believe the requirement here is about that the physical directory structure, allowing to control the destination of files belonging to a component when copied into the project folder (see #93). |
As I understand it, inside the implementation of a given component there may well be references between files that depend on the files remaining in their same relative locations when the pack is deployed. For example, In my view this is probably an issue only for the tooling, not for the specification. If the user wishes to reorganise files into some alternative structure the tooling should enable this by presenting the desired structure and maintaining a mapping to the original positions of the files. The underlying files should not move, and do not need to move. Only the presentation of the file structure may be permitted to change. There is another aspect to this: the content of a pack should be immutable after it is constructed, otherwise any guarantees given about its quality or functionality are virtually impossible to maintain. |
Let's limit scope of this ticket only to project_path. According to preliminary agreement in discussion #93 Project_path must be applied on file paths and also on include paths in order to preserve data integrity. Project path is increasing complexity and in order to guarantee data integrity both layouts must be tested by pack vendor. It is price for this feature. About the "Project View". I think it might be useful to have actually more views in IDE:
I would call it views on different levels of abstraction. Another level might be "CMSIS layers". |
Agreed with @DavidJurajdaNXP , there can be 2 views in IDE workspace project tree
|
We support this request. But we will deliver our example projects as packs.
|
Change Request: @DavidJurajdaNXP and @tcsunhao can you please validate this summary. |
@jkrech , Thanks for approving this formally. The project_path will affect all configuration files as well as other files when NXP tools use it to construct standalone project. |
I understand that you want to fill 2 needs:
But, the point which is unclear to me is: what about files going into RTE folder ? By the way, I assume this is an optional attribute. |
@fred-r, I think you are misunderstanding the feature suggested by @tcsunhao . |
Thanks for the explanation of @jkrech which is accurate and complete. |
Combination of base_path, pack_path, project_path could provide user friendly view in form of flat folder structure in workspace.
Flat folder structure - structure without unnecessary nested folders without files.
The text was updated successfully, but these errors were encountered: