I use MercurialEclipse to do stuff with hg from within Eclipse
sometimes and then I think the plugin automatically tells Eclipse to
refresh when I checkout a new changeset. Maybe the git plugin does the
same and can be some kind of temporary workaround for you? Well, I
recognize that if you're used to cli you probably want to stay with
cli, but just a thought.
The workspace setting you mentioned, is that the "Refresh using native
hooks or polling"? I'm on OS X so I figure that could maybe work a lot
better than doing manual refreshs. Hadn't seen that so thanks!
Anyway, I have had similar problems so I'm really interested in a solution too!
Thanks,
Viktor
2011/9/22 Maxime Lévesque <maxime....@gmail.com>:
I don't know if you use the Git plugin for eclipse or the command line,
but for a time I used to only use the command line without eclipse
plugin, and that lead to a lot of synchronisation problems. Now, I sill
use the command line most of the time, but the Eclipse Git plugin does
see most of the updates correctly.
Hope it helps,
--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
http://stackoverflow.com/questions/1212633/can-eclipse-refresh-resources-automatically
From this:
"This issue will be fixed in Eclipse 3.7 (Indigo). While "Refresh
Automatically" does eventually bring resources back into sync, the
refresh hook only exists for Windows, so on Linux and Mac OS it has to
poll the filesystem periodically."
I think I understand the following:
The setting was called "Refresh Automatically" pre Indigo and only
works nicely in Windows. In OS X and GNU/Linux it uses polling instead
which is heavy-weight and probably glitches a lot. In Indigo it's
renamed "Refresh using native hooks or polling" and works the same.
But there is also a new light weight thing called "Refresh on access"
that checks if a file is in sync when accessed.
I guess than that you are on Galileo or earlier and probably don't
have this setting, but maybe that light weight variant actually works?
I'm gonna try it at least and report back.
Cheers,
Viktor
That's exaclty what I'm doing (use git command line), but having said to
Eclipse "that's a project under Git" make the synchronisation between FS
and what is displayed by Eclipse disappeared. Well, and it also display
the current branch for the project in Eclipse, it's a cool little
addition ;)
I don't remember if there was a precise version of Eclipse/EGit that
make things really better, it was more an incremental amelioration.
Right now, I'm using Eclipse 3.7 (Indigo) with it's EGit version (since
in 3.7, it is included) : 1.0.0.201106090707-r
But I'm on Linux, and it may be a big difference here.
For the "critical function for anyone that uses Git", I can't agree
more... In the past, changing from a branch to another was taking years
and was not always accurate.
For the record, I'm using Helios, just because the ScalaIDE site says that Indigo is experimental.
Are there known issues that affect Indigo but not Helios or is this just conservative wording?
Indigo SR1 (first maintenance release) is now out and it includes support for Java 7, so it would be good to have non-experimental support for it.
Yes. I think one good option would be to have the future 2.1 Scala IDE plugin to target Eclipse Indigo 3.7.1+.I think after the 2.0 release we'll have more time to discuss this in the mailing list and see what the other committers think.
I'm using Indigo myself with the Scala IDE plugin from http://download.scala-ide.org/releases-29/2.0.0-beta. I've got egit installed but I really only use it for diffing files between commits/branches, I've been doing everything else from the command line. Whenever I issue a command that changes the working directory I just select the root of the project and hit f5 to refresh everything. It's been working well for me.
Not that I know of. It would be good to file a ticket, but please try
to be as specific as possible, ideally showing a reproducible case.
best,
iulian
> Best,
> Ismael
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
I'm also seing this behavior, let us know the ticket number, I'll follow it, and perhaps can help create a reproductible case.