This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28379D: Refactor rename undoes last changes

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

I am running CCS version 8.3.0.00009 on Ubuntu 18.04 and I have faced several times a very "dangerous" bug: when I refactor rename a variable by pressing Alt + Shift + R, edit the name and press Enter, sometimes CCS undoes a lot of the last changes in the source code file (I am not sure if it also happens to another files...). And if you don't notice it, as has happened to me, then you can spend hours until you find out about it. Or loose changes which solved a hard bug and, as you will probably not notice it, you keep developing without that piece of code and this bug reproduces 2 weeks later and you don't remember the cause, etc.

Is it a known bug or am I doing anything wrong?

Thanks in advance!

Best regards,

Adria

  • Hi Adria,

    Adria Perez Martinez said:
    hen I refactor rename a variable by pressing Alt + Shift + R, edit the name and press Enter, sometimes CCS undoes a lot of the last changes in the source code file

    I am not aware of such a bug. Do you have a rough idea of how often this happens? I understand that you may not always notice it happening (depending on what/where the change is). I ask, because I am unable to reproduce the issue thus far. I've tried on both Windows and Ubuntu, but no luck so far. 

    Thanks

    ki

  • Hi Ki,

    More or less, it has happened to me a 15% of the times. But I don't use refactor rename functionality any more since it has become very risky (for me).

    Do you think it is related with Ctrl + Z or it may be related to version control? I have never configured version control within any Eclipse IDE, I have always preferred to use it apart. But sometimes Eclipse (in this case CCS) detects you have the project under Git (for example, which is my case) and it allows for easy Git operations. So, there may be a bug which, when you do the refactor rename, it may undoes uncommitted changes.

    I am 0% sure about what I am saying, it just came to my head and I told you just in case it can be useful.

    Best regards,

    Adria
  • Adria Perez Martinez said:
    Do you think it is related with Ctrl + Z or it may be related to version control?

    I have not heard of such an association. I just tried this out with a project I have under Git and so far have not been able to reproduce. I will keep trying. If you think of any more ideas, please pass them on.

    Thanks

    ki