Menu

#169 Refresh state not working

2.x
closed-fixed
5
2010-03-24
2008-11-03
AndyLing
No

Using eclipse 3.4 and ccase plugin 2.1.3

The current state of a file is not updated until the file is loaded into the editor. If I have a file that was checked out within eclipse then subsequently checked in outside eclipse, its state is shown as checked out. Right clicking and choosing refresh state does not change this. Double clicking and loading the file into the editor does change its state. This is using a dynamic view in clearcase.

Discussion

  • Mikael Petterson

    • assigned_to: nobody --> eraonel
     
  • Mikael Petterson

    Hi,

    I couple of follow-up questions:

    - Have you tried making changes to the workspace wihtin eclipse? Did the state ( decorator) of file/ folder change?
    - If you try out the above scenario but you have done the following in the Preferences --> Workspace --> Automatically. Will the state be updated?

    br,

    //mike

     
  • AndyLing

    AndyLing - 2008-11-10

    Making a change to the workspace within clipse does change the decorator state of the file or folder.

    It is only if the state is changed outside eclipse that there is a problem.

     
  • Mikael Petterson

    I agree with you that it is outside eclipse. But can did you try to Preferences --> Workspace -->Refresh Automatically.
    Now change a file outside eclipse and see if the automatic refresh updates the decorator. Can you test this?

    cheers,

    //mike

     
  • AndyLing

    AndyLing - 2008-11-10

    Sorry, I forgot about that bit.

    Yes I have that option selected and I still have problems.

    It is a bit variable. Sometimes it works and sometimes it doesn't. I think the time that it is worst is if I undo a checkout. Going from checked out to checked in is definitely the worst.

    Other things that may affect this. In the clearcase user options I have "Preserve file modification time" unticked for both checkin & checkout.

     
  • Mikael Petterson

    Hi Andy,

    Are you using win32 or Linux platform?

    Are you making the checkout and checkin using the plugin or are you doing something outside eclipse ( I guess that is what you did in your original post)?

    cheers,

    //mike

     
  • Mikael Petterson

    Hi Andy,

    Are you using win32 or Linux platform?

    Are you making the checkout and checkin using the plugin or are you doing something outside eclipse ( I guess that is what you did in your original post)?

    cheers,

    //mike

     
  • AndyLing

    AndyLing - 2008-11-13

    Hi Mike,

    I'm using Win32.

    In general the checkout is done within eclipse using the plugin.
    Then I will use the clearcase tools outside eclipse to do a "find checkouts" and checkin (or undo checkout) a bunch of files.

    The files in eclipse have the "tick" decoration to show they are checked out. If I right click on a file or package or the project and select "Team->refresh state" nothing happens. I have to double click the file to load it into the editor before the decoration changes.

     
  • Mikael Petterson

    Hi,

    I am trying this on linux and I don't experience the problem. I will make some more tests to verify if it is platform related.
    Is it a very large project?
    I have experienced that we have problems with refresh being slow. Have you experienced this too?

    cheers,

    //mike

     
  • AndyLing

    AndyLing - 2008-11-14

    Hi,

    The project is 1,298 files in 62 folders.

    Speed is variable. In general, checking out or in a file using the plugin changes the state immediately.

    If loading a file into the editor changes the state this also happens immediately.

    Background refresh can take a while (10s of seconds) when a project is first opened.

    I also get refresh state errors similar to that mentioned in 2224917

    I have recently updated to eclipse 3.4.1 and nothing has changed (in case it makes a difference)

    If there is anything I can do to help debug what is going on, let me know.

    Andy

     
  • Tobias Södergren

    Please try version 2.1.5, set the preference "use quick refresh" and "higher priority" and see if it resolves the problem.

     
  • Mikael Petterson

    Use quick refresh.
    Deliver in 2.1.6

     
  • Mikael Petterson

    • assigned_to: eraonel --> tobiassodergren
    • status: open --> open-fixed
     
  • Achim Bursian

    Achim Bursian - 2010-03-09
    • status: open-fixed --> pending-fixed
     
  • Achim Bursian

    Achim Bursian - 2010-03-09

    This is fixed for version 2.2.1, hopefully. Please reopen bug if not.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB