facebook

Recover lost source code after a crash & store all chang

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #346832 Reply

    JosefB
    Member

    Hello,

    on my second day of evaluating MyEclipse I am running into some simple but very nasty problems:

    For the second time today, I lost code, because MyEclipse was hanging and had to be killed. Not a problem, except that I have lost much code.

    1) Is there any way to enforce a regular storage of source files every couple of minutes? This is standard in every editor, word processor, or alike. I found nothing in the menus, nothing in the help, and nothing on the forum.

    2) It’s so simple and has been standard in other IDEs for over 30 years !!!! that EVERY change is protocolled in some change file(s) so that it can be easily recovered in case of:
    a) a crash
    b) or if one wants to revert to some older code, which occurs much more often (and, NO, the UNDO is NO solution for this, definitely not).

    Other IDE: You developers should look at any Smalltalk IDE, which has had many features for more than 30 years that MyEclipse is still missing. Change files for any change of sources is just one of what’s missing in MyEclipse.

    Anyway: Is there any help to avoid further losses of sources?

    BTW: Your search engine is lousy. No chance to narrow down search results. It ignores the content within quotes. Very bad solution! Almost impossible to find previous posts other than by ONE word.

    Regards
    Josef

    #346836 Reply

    JosefB
    Member

    Hello,

    I have just had my 3rd hanging of MyEclipse today. Luckily I had saved my code 2 min before so that almost nothing was lost while I have lost >2 hrs of work this morning.

    But this manual saving is no viable solution in the long-run.

    Regards
    Josef

    #346838 Reply

    support-swapna
    Moderator

    Josef,

    Sorry that you are seeing issues with MyEclipse.

    If you are using a 64-bit installation of MyEclipse, you may want to increase the memory settings in myeclipse.ini; 64-bit software really does consume more memory and our tests have shown that the increase can be as high as 30 to 40%. You may need more memory even on a 32-bit install, if you have a large workspace.

    The myeclipse.ini file can be found in the same folder as your MyEclipse executable. Open it in any text editor and change the values based on the size of your workspace. For instance, the following settings may be preferable to the defaults.
    Code:

    -vmargs
    -Xmx768m
    -XX:MaxPermSize=384m

    You can increase the -Xmx to a higher value if you are working with large workspaces.

    To recover lost files , right click on the file and you will see ‘Replace With’ and ‘Restore from Local History’ in the context menu. These options will help you recover your files.

    If this fails you can manually go to workspacedir> .metadata> .plugins> org.eclipse.core.resources.history>.history . You can find a list of folders named with few letters, use the “Date Modified” column and open the latest of those folders to get the recent files you were working on. In that folder, you can find some files with unusual naming, open the files with some text editor to find the file you are searching for, if possible try to match the file size.

    If you are still seeing issues after increasing the memory, please share details about the MyEclipse Installation from MyEclipse > Installation Summary > Installation Details. Also share the .log file which is located at <workspace dir>/.metadata/.log to help us investigate further.

    Let us know how it works for you.

    #346840 Reply

    JosefB
    Member

    Hello,

    and thank you for the tips.

    I have increased the memory values – and we will see.

    And as for the change history, this looks excellent at first glance – even with a differator that shows the changes. Very good! Just as I am accustomed from my “normal” Smalltalk IDE. Compliments! Well done.

    Is there anywhere a setting where one can influence the size of the history? I had gone through the settings and found nothing alike. As I have about 3 TB left on this drive, I can be generous in this respect. 🙂

    Regards
    Josef

    #346875 Reply

    support-swapna
    Moderator

    Josef,

    Thank you for the compliments.

    To increase the size of history, please go to Window > Preferences > General > Workspace > Local History.

    1. Change the setting “Days to keep files” from “7” to a larger number. This affects how many days the changes are stored in the history.

    2. Change the setting “Maximum entries per file” from “50” to a larger number. This number affects how many changes are stored per file. If you have very large files, you may want to increase this number greatly.

    3. Change the setting “Maximum file size(MB)” from “1” to a larger number. This number affects how large the history file will be, measured in megabytes. Set this to a reasonable number given the free space of your hard drive.Keeping a long history might slow down MyEclipse, especially at workspace closure time. So better not to keep too much of history.

    About saving files automatically, there are third party plugins that may provide the functionality to save files automatically. For example : http://marketplace.eclipse.org/content/smart-save#.UvMuB_mSxTd

    You can give the plugins a try and see how it helps. Please make sure the plugins are compatible with Eclipse as MyEclipse is based on Eclipse. If you are working with MyEclipse 2014, then the plugin must be compatible with Eclipse 4.3 which is the base version.

    Let us know if you see any issues.

    #346879 Reply

    JosefB
    Member

    Hello,

    Very good!

    Just a pity that many features are so well hidden under menu names where one (or at least me) would not expect them. This here is not the only case where I had gone through your menus and NOT found what actually did exist.

    Concrete: These history settings have nothing at all to do with “Workspace” and little with “Local history”. I would expect such things under “Source code history”, “File history”, or maybe “Backup files”, or something similar.

    Just as a recommendation and comment.

    In any case, main thing is THAT it exists.

    Thank you – and i will try the plugins.

    Regards
    Josed

    #346933 Reply

    support-swapna
    Moderator

    Josef,

    Thank you for the recommendations. I will pass them to the concerned team.
    Let us know if you see any issues with MyEclipse.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Recover lost source code after a crash & store all chang

You must be logged in to post in the forum log in