Skip to content
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

Remove RTE nature from the project #17

Open
marek-trmac opened this issue Mar 17, 2016 · 5 comments
Open

Remove RTE nature from the project #17

marek-trmac opened this issue Mar 17, 2016 · 5 comments
Labels

Comments

@marek-trmac
Copy link

It would be nice to be able to remove RTE nature from the Eclipse project.
I have removed {project}.rteconfig file using Delete command from popup menu (in Eclipse Project Explorer) and now if I open the project, the following exception is thrown:

org.eclipse.core.runtime.CoreException: Error loading RTE configuration file 'rte.rteconfig' parsing failed 
    at com.arm.cmsis.pack.project.RteProjectUpdater.loadRteConfiguration(RteProjectUpdater.java:219)
    at com.arm.cmsis.pack.project.RteProjectUpdater.loadConfigFile(RteProjectUpdater.java:162)
    at com.arm.cmsis.pack.project.RteProjectUpdater.runInWorkspace(RteProjectUpdater.java:105)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
@ReinhardKeil
Copy link
Contributor

What would be the benefit of that? Why is RTE a problem for you?

@marek-trmac
Copy link
Author

For example use case: I want to share my Eclipse project to my colleague, that does not have RTE package installed. He will not modify RTE configuration, only compile and debug, so he does not need RTE.

What I see as an problem, I did a legal Eclipse operation (file deletition), and ARM Eclipse plugin throws an exception during re-opening the project.

@ReinhardKeil
Copy link
Contributor

thanks, we will look into it.

@edriouk
Copy link
Contributor

edriouk commented Mar 17, 2016

The problem here is that an RTE project is dynamic and refers to location where packs are installed:

  • device information is taken from packs
  • most of headers are in pack location
  • some files in RTE folder are links pointing to pack location

Just removing the RTE nature will not solve the problem. Some kind of an export procedure is required to store all required information locally and update build settings accordingly.
While it is feasible for files and headers, there is no place to store device information in a generic C/C++ project.

As far as deletion of an .rteconfig is concerned it is inline with Eclipse practice:

  • deletion confirmation is required
  • Eclipse provides "Undo" to restore the file
  • other project types also cannot tolerate file removal, for instance plugin.xml from RCP development project

@marek-trmac
Copy link
Author

For dynamic linking - would it be possible to create standalone project without external dependency (e.g. copy all files into Eclipse project)? This would be useful feature for sure.

other project types also cannot tolerate file removal, for instance plugin.xml from RCP development project
Yes, they tolerate it correctly, e.g. does not throw an exception.

@marguzmar marguzmar added DONE We consider this issue as resolved - please review and close it. question and removed DONE We consider this issue as resolved - please review and close it. labels Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants