cancel
Showing results for 
Search instead for 
Did you mean: 

Copy project doesn't update reference to the .IOC file

sdobbie2
Associate

When I copy a project within the IDE, it doesn't update the file references and the IOC file doesn't open. Can we have this fixed asap please?

sdobbie2_0-1754383507789.png

 

3 REPLIES 3
Andrew Neil
Super User

welcome to the forum

Please see How to write your question to maximize your chances to find a solution for best results.

In particular, you haven't said what version of CubeIDE you're using.

But, yes - I have seen this issue going back to v1.13.0

 

As a workaround, you can just rename the .ioc file to have the same name as the project.

 

PS:

Another thing that never seems to work is the references to Debug Configurations (the .launch files).

I've tried renaming, various ways of exporting & importing, but always end up just having to recreate them from scratch.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I am on version 1.19.0.

It seems to work for now after renaming the IOC,  recompiling and setting up a new run configuration. 

Andrew Neil
Super User

The issue is still present in v2.1.1.

For example, here I have just copied the project "nucleo-f030-cc1126" (green)
to "nucleo-f030-cc1126-hsi" (red).

The nucleo-f030-cc1126.ioc file in the new project has not been renamed to match the new project name:

AndrewNeil_0-1780932849966.png

Of course, in v2.1.1, this is no longer an issue as such - now that the IDE no longer handles .ioc files.

But it is still an inconvenience if one wants to keep the .ioc filename matching the project name.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.