Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 1367] New - Doesn't refresh the signs of the files after eclipse.refreshLocal call

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Hide all messages in topic

All messages in topic

[Issue 1367] Doesn't refresh the signs of the files after eclipse.refreshLocal call

Author markphip
Full name Mark Phippard
Date 2012-01-24 08:59:04 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1367






------- Additional comments from markphip at tigris dot org Tue Jan 24 08:59:02 -0800 2012 -------
The Eclipse Refresh option does not refresh the SVN decorators directly, never has. What it does is fire a
resource change event for any new/modified/deleted files that it finds. Prior to SVN 1.7, that means it
would have seen changes in the hidden .svn folders caused by your commit and fired events for those.
Subclipse captured these events and used it to refresh the cache.

With SVN 1.7 those hidden folders are gone. Consequently, Eclipse does not see any modified files and
does not send any notifications so there is nothing to trigger Subclipse.

The Team > Refresh option was added as a way to explicitly trigger us. Your approach of adding a
dummy file might work as well because it creates a file modification. I would think you could add the file
and refresh, delete the file and refresh and possibly get the behavior you want.

I am not sure why you would need the F5. AFAIK, that is just calling refreshLocal.

[Issue 1367] Doesn't refresh the signs of the files after eclipse.refreshLocal call

Author qpi
Full name Mihály Kuprivecz
Date 2012-01-24 08:55:01 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1367






------- Additional comments from qpi at tigris dot org Tue Jan 24 08:55:00 -0800 2012 -------
I had the same problem, but I had found a workaround. In my ANT script
I added some fake lines:

<echo file="fake.txt">Just to force the reload in the eclipse, if you
see this file you can delete it!</echo>
<eclipse.refreshLocal resource="myproject" depth="infinite"/>
<eclipse.incrementalBuild project="myproject" kind="full"/>
<delete file="fake.txt"/>
<eclipse.refreshLocal resource="myproject" depth="infinite"/>
<eclipse.incrementalBuild project="myproject" kind="full"/>

After these lines the F5 works correctly, I don't have to use Team > Refresh/Cleanup anymore, the F5 is enough!

But my problem is the eclipse.refreshLocal:
http://help.eclipse.​org/indigo/index.jsp​?topic=/org.eclipse.​platform.doc.isv/gui​de/ant_eclipse_tasks​.htm

The eclipse.refreshLocal and F5 sounds me same, maybe I think it wrong, but the eclipse.refreshLocal doesn't cause the same effect, because the
eclipse.refreshLocal doesn't refresh SVN part of the project.

Maybe it is a bug of Eclipse? Could You help me?

[Issue 1367] Doesn't refresh the signs of the files after eclipse.refreshLocal call

Author markphip
Full name Mark Phippard
Date 2012-01-24 07:55:04 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1367



User markphip changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                  Status|NEW |RESOLVED
--------------------​--------------------​--------------------​--------------------​
              Resolution| |WONTFIX
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from markphip at tigris dot org Tue Jan 24 07:55:03 -0800 2012 -------
There is nothing we can fix here and there have been threads about this on our users@ list already.

If you do your commits outside of Eclipse, a refresh is not enough to have the decorators refreshed. You
need to use the Team >Refresh/Cleanup option which gives us a trigger to refresh the cache.

Here is the thread:

http://subclipse.tig​ris.org/ds/viewMessa​ge.do?dsForumId=1047​&dsMessageId=287​0516

[Issue 1367] New - Doesn't refresh the signs of the files after eclipse.refreshLocal call

Author qpi
Full name Mihály Kuprivecz
Date 2012-01-24 07:43:36 PST
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=1367
                 Issue #|1367
                 Summary|Doesn't refresh the signs of the files after eclipse.r
                        |efreshLocal call
               Component|subclipse
                 Version|1.8.x
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|UI
             Assigned to|issues@subclipse
             Reported by|qpi






------- Additional comments from qpi at tigris dot org Tue Jan 24 07:43:35 -0800 2012 -------
I use ANT build script and this script uses the commandline SVN to commit. After
the commit I call this task:
<eclipse.refreshLocal resource="{myprojectname}" depth="infinite"/>
It successfully refreshes my project except the SVN signs of the modified files.
The signs stay still modified after the build. If I press F5 (which causes same
effect like the eclipse.refreshLocal) on my project, the signs modify to the
proper state.
I use Eclipse Java EE IDE (Indigo Service Release 1)
Messages per page: