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.

The "Last Edit Location" button (Ctrl+Q) does not work in CCS.

I am using CCS v5.5. The "Last Edit Location" button on the toolbar (or Ctrl+Q) does not work. Instead, it goes to some other location for which I cannot figure out a rhyme or reason. That location will change from time to time, but, again, I cannot find a pattern. Bottom line: It does not go to the last edit location as it should.

Previously to using CCS, I used CCE Pro for many years, and this feature (which is great) worked perfectly. I searched everywhere and do not see this problem reported. Does anyone know when this bug crept into CCS?

Thanks,

Ed

  • I guess either no one is reading this post, has not experienced the problem, or doesn't care. I guess I'll need to contact Tech Support directly.

    Anyway, I've been trying to keep note of where Ctrl+Q takes me back to, and I still cannot find any pattern. One time, I had copied and pasted a small block of code to another location, saved and compiled. Later I pressed the button for Ctrl+Q, and it took me back to the code that I had copied, and it was even highlighted. When I tried to repeat that with another copied selection, it did not do the same thing. Instead it took me to some random location. Crazy (and buggy)!

    My work-around is to simply press Ctrl+Z then Ctrl+Y and I get to my real last edited location, exactly how CCE Pro works. Most things about CCS are better than CCE Pro, but don't you hate it when some things are worse? Two steps forward and one step backwards.

    Thanks,

    Ed

  • Hi Ed,

    After some digging on the Eclipse forums, it looks like it is an Eclipse bug that popped up in later versions of Eclipse 3.x. CCE used a very old version of Eclipse that predated the bug. A later Eclipse version could have the fix though I haven't seen that confirmed.

    You can try CCSv6 (which uses a recent Eclipse version) or if you don't want to install another CCS version, you can provide me a small, reproducible test case so I can try it. The bug seems rather specific and I can't reproduce it as CTRL+Q always returns to the proper location for me, even in CCSv5.5. So if you have a reproducible test case that you can provide, that would be great.

    Thanks

    ki

  • Hi Ki,

    Thank you for posting. I was afraid you'd wouldn't be able to reproduce this bug, but at least it was documented in earlier versions of CCS. I have Version: 5.5.0.00077. Have you tried it on that version?

    So last night I was making an edit to a header file. I saved it, minimized all windows, and put my Windows 8.1 PC to sleep without exiting CCS. This morning, after seeing your email, I went back to CCS and my cursor was at the location I left it at of my last edit, line 346. Then I pressed Ctrl+Q and it moved the cursor to line 1045, a location I have not edited in many, many days. (I have made hundred of edits since then, as I am developing a new product.)

    I don't know how to get you to reproduce this. Either your version has the bug or it doesn't. Can you ask around to other people using CCS frequently if they have experienced the problem?

    You are right that I'd rather not go to a new version of CCS right now. Is there an upgrade from Version: 5.5.0.00077 that still is V5? Is the upgrade to V6 free? Is V6 a totally new installation?

    Thank you,

    Ed

  • Oh, by the way, pressing the Back button (Alt + Left) gets me back to line 346.

  • Edward Schwartz said:
    I have Version: 5.5.0.00077. Have you tried it on that version?

    I used that version also.

    Edward Schwartz said:
    I don't know how to get you to reproduce this. Either your version has the bug or it doesn't

    I don't think it is specific to a CCS installation but more related to the project. If you can provide a small, reproducible test case that i can play with, that would help.

    Edward Schwartz said:
    Is there an upgrade from Version: 5.5.0.00077 that still is V5?

    No, this is that last CCSv5 version.

    Edward Schwartz said:
    Is the upgrade to V6 free?

    If you bought a CCSv5 license within the last year, then you are eligible for a free upgrade.

    Edward Schwartz said:
    Is V6 a totally new installation?

    Yes it is.


    Before you try v6, one thing you can try doing with you existing install is to rebuild the index for the project and see if that helps any. See slide 34 of: software-dl.ti.com/ccs/non-esd/training/CCSv5-TipsAndTricks.pptx

    Thanks

    ki

  • Ki,

    Rebuilding the index did NOT do the trick. (My indexer is/was enabled, and it goes to all the declarations correctly.) I even tried exiting CCS and restarting it. No luck. Now I've made edits above that line, moving it down about 40 lines, but it still stubbornly goes to that same line (new line number)!

    Yesterday, when I was testing and made an edit, it was going back to that edit, as if it were working. Now that is not working, as it usually does not work. Really strange, for sure.

    How do you suggest I get you to replicate the problem?

    Did you ask any others there to try this?

    What are the "improvements" or differences between V6 and V5?

    Thanks,

    Ed

  • Edward Schwartz said:
    How do you suggest I get you to replicate the problem?

    The best thing is to send me a small, reproducible test case. This would be a small example project where you can see the behavior. Archive that project and send it to me (attach to this thread or send me a private message if you wish to exchange it privately),

    Edward Schwartz said:
    Did you ask any others there to try this?

    I tried on several different environments and was not able to reproduce the issue.

    Edward Schwartz said:
    What are the "improvements" or differences between V6 and V5?

    See: http://processors.wiki.ti.com/index.php/CCSv6_Changes

    The biggest thing here is the major Eclipse update since the issue you are seeing is an Eclipse bug,

  • Ki,

    I currently have 3 projects that I am working on in my workspace, but I only ever have 1 open and active at a time. All 3 of the projects have the same behavior.

    So I tried what you suggested: I opened up one of the sample projects from the TI Resource Explorer. I made an edit (added a space then removed it with a backspace), saved the  file, went Ctrl+Home, then Ctrl+Q and it did go back to the edit position. (As I said, sometimes this works on my projects.)

    Maybe the bug is random and only in large projects? I cannot give you any of my real projects since are proprietary to my company.

    I guess I'll just have to live with the bug. Even if you replicated it, my only solution would be to upgrade anyway. I looked at the differences with V6 and none are worth the pain of upgrading, even if it's free for me.

    If you think of anything else, please let me know.

    Thanks,

    Ed

  • FYI - I closed the sample project and opened my real project, clicked Ctrl+Q and it tried to go back to the file in the sample project but said the resource was not available. The I made an edit in my real project and it went back there. Then I made an edit in another source file in my project and it went to there, too. So at the moment it's working.

    So it seems that after many edits when working on a project, it gets overloaded and confused. I'll let you know when Ctrl+Q stops working, as I know it will at some point!

    Ed

  • Ok, it happened again after a couple days of working. I rebuilt all indexes, closed and re-opened the project, and even exited CCS and restarted it, but none of that worked. Ctrl+Q would go to some random location consistently, this time in a header file where I was at one time, but made no edits there.

    I was able to solve the problem, at least temporarily, by closing the project, opening a different project, closing that project, and re-opening the original project. However, every few days when the problem returns, at least I have a temporary solution!

    Hope this helps others.

    Ed

  • Hi Ed,

    Thanks for the update.

    Edward Schwartz said:
    I was able to solve the problem, at least temporarily, by closing the project, opening a different project, closing that project, and re-opening the original project.

    This is a strange workaround. I really don't know why/how opening a different project makes an impact. Have you ever seen the problem occur when you only have one project in the workspace?

    Edward Schwartz said:
    However, every few days when the problem returns, at least I have a temporary solution!

    It does sound like some corruption problem is happening with the index cache, though I don't know why rebuilding it does not help. 

  • Ki,

    Well, it lasted (worked) for only an hour or so this time. I think I made less than 50 edits when it stopped working, I didn't keep track. Ctrl+Q now goes to a previous search location in the c file I was working on but I didn't make an edit there. So it seemed to confuse a search location with the last edit location after several edits.

    I am not going to delete other projects from the workspace to experiment. I'll bet that you are not developing code making many edits, which is why you don't see the problem. Is this correct?

    Anyway, whether or not you can replicate the problem there is no solution for me since I really don't want to "upgrade" to V6 not knowing if that even has this problem fixed. It's not worth the gamble.

    This was not listed in the release notes, so either they fixed it without mentioning it or didn't fix it at all.

    Thanks for your help. If you find out anything, please post.

    Ed

  • Ki,

    One more thing: CCS V5.5 doesn't seem to have Undo (Ctrl+Z) and Redo (Ctrl+Y) toolbar icons. At least I can't find them in the Customize Perspective dialog (there is no Edit category - they are under the Edit menu). Is there a way to make them visible? Am I missing something?

    Thanks,

    Ed

  • Edward Schwartz said:
    One more thing: CCS V5.5 doesn't seem to have Undo (Ctrl+Z) and Redo (Ctrl+Y) toolbar icons. At least I can't find them in the Customize Perspective dialog (there is no Edit category - they are under the Edit menu). Is there a way to make them visible? Am I missing something?


    There is no support for this... by default. But the beauty of Eclipse is that if there is if you feel some useful feature missing, chances are that someone else thought the same thing and did something about it - create a plug-in.


    I found one for the functionality you are looking for. And it seems to work in CCSv5.5:

    http://stackoverflow.com/questions/819846/how-to-add-undo-redo-buttons-to-toolbar-in-eclipse


    The dropin folder in v5 is in: .\ccsv5\eclipse\dropins

    Thanks

    ki

  • Ki,

    Thanks, but it doesn't work. Maybe I did something wrong. I downloaded and copied "undoredo_1.0.0.jar" into the dropins folder (I also tried copying it to the plugins folder), restarted CCS 5.5, but I don't see the icons on the toolbar or in the Customize Perspective dialog. Did I do something wrong? Please advise. Thanks,

    Ed

  • That sounds right. This is what I did.

    1) Shut down CCS

    2) Copy the jar file into my dropin's folder:

    3) Relaunch CCS

    4) Notice 2 new icons:

  • Ki,

    I closed CCS and re-opened it again and this time the icons were there. Maybe I missed seeing them before???

    Now clicking the Undo then the Redo arrow icons will be just as if Ctrl+Q (Go to last edit location) actually worked.

    Missing these toolbar buttons is a significant oversight by Eclipse, as these are very common buttons. Does V6 have them?

    Thanks much!

    Ed

  • It's not in v6 either. But the plug-in seems to work for it too even though v6 is Eclipse 4.x