Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » ERROR: Resource is out of sync with the file system
ERROR: Resource is out of sync with the file system [message #1387029] Mon, 23 June 2014 14:59 Go to next message
Boris Brodski is currently offline Boris BrodskiFriend
Messages: 107
Registered: July 2009
Senior Member
Hello,

I build a simple plugin project with Jenkins and Buchminster. The process is:

- check out a Git repo (done my Jenkins)
- change the target definition file (rewrite URLs to the local p2 mirror)
- Run buckminster script
- importtargetdefinition '-A' <target definition>
- ...

Running the build for the first time after cleaning the entire build workspace runs successfully. Running consequent builds produces the error:

INFO: importtargetdefinition '-A' '/path/project/kepler.target'
Resource is out of sync with the file system: '/project/kepler.target'

This is very strange for me, since Kepler has activated refresh on access option by default...

How can I solve this problem?

My ideas:
- Activate refresh on startup by coping proper .prefs file into .metadata
=> didn't worked for me

- Call a buchminster refresh command prior to importtargetdefinition
=> No such command exists yet

- Update everything to the last stable version
=> the error is still there

Thank you very much in advance!


Cheers,
Boris Brodski
Re: ERROR: Resource is out of sync with the file system [message #1387108 is a reply to message #1387029] Tue, 24 June 2014 08:10 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1742
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 23/06/2014 16:59, Boris Brodski wrote:
> Hello,
>
> I build a simple plugin project with Jenkins and Buchminster. The
> process is:
>
> - check out a Git repo (done my Jenkins)
> - change the target definition file (rewrite URLs to the local p2 mirror)
> - Run buckminster script
> - importtargetdefinition '-A' <target definition>
> - ...
>
> Running the build for the first time after cleaning the entire build
> workspace runs successfully. Running consequent builds produces the error:
>
> INFO: importtargetdefinition '-A' '/path/project/kepler.target'
> Resource is out of sync with the file system: '/project/kepler.target'
>
> This is very strange for me, since Kepler has activated refresh on
> access option by default...
>
> How can I solve this problem?
>
> My ideas:
> - Activate refresh on startup by coping proper .prefs file into .metadata
> => didn't worked for me
>
> - Call a buchminster refresh command prior to importtargetdefinition =>
> No such command exists yet
>
> - Update everything to the last stable version
> => the error is still there
>
> Thank you very much in advance!

Hi Boris

in my Jenkins builds based on Buckminster I always delete the Eclipse
workspace before the build. NOTE: I'm NOT talking about Jenkins
workspace, but the Eclipse workspace used by Buckminster; I do that
using an ant target (e.g., the "cleanup" target you can find here
https://github.com/LorenzoBettini/xsemantics/blob/master/releng/it.xsemantics.buckminster/common.ant).
This ant target does NOT clear the bundlepool subdirectory of the
Eclipse workspace, but it deletes the projects area so that all the
projects are always reimported from scratch on each Jenkins build.

This ant script is based on the one generated by the Xtext Buckminster
wizard, by the way.

Hope this helps
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Re: ERROR: Resource is out of sync with the file system [message #1387193 is a reply to message #1387108] Tue, 24 June 2014 19:30 Go to previous messageGo to next message
Boris Brodski is currently offline Boris BrodskiFriend
Messages: 107
Registered: July 2009
Senior Member
Hello Lorenzo,


thank you for reply! I ended up using similar solution, but I considered it a hack.

Importing target platform all over again is a long running process. Reimporting target platform is quick done. Shouldn't we just implement "refresh" command or just refresh all imported projects at the start of buckminster?


Cheers,
Boris
Re: ERROR: Resource is out of sync with the file system [message #1404720 is a reply to message #1387029] Tue, 05 August 2014 09:22 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1742
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 23/06/2014 16:59, Boris Brodski wrote:
> Hello,
>
> I build a simple plugin project with Jenkins and Buchminster. The
> process is:
>
> - check out a Git repo (done my Jenkins)
> - change the target definition file (rewrite URLs to the local p2 mirror)
> - Run buckminster script
> - importtargetdefinition '-A' <target definition>
> - ...
>
> Running the build for the first time after cleaning the entire build
> workspace runs successfully. Running consequent builds produces the error:
>
> INFO: importtargetdefinition '-A' '/path/project/kepler.target'
> Resource is out of sync with the file system: '/project/kepler.target'
>
> This is very strange for me, since Kepler has activated refresh on
> access option by default...
>
> How can I solve this problem?

Hi

going back to this thread: I think that the rewriting of the target
definition file should be done outside the corresponding project
directory (i.e., the resulting .target file should be put outside the
project); IIRC importtargetdefinition needs an absolute path so you can
specify also a .target file which is outside the projects... This way
you won't get refresh errors.

cheers
Lorenzo


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Previous Topic:buckminster jenkins generates empty source feature and no source bundles.
Next Topic:Circular component dependency JDT -> OTDT -> JDT
Goto Forum:
  


Current Time: Wed Feb 21 09:10:05 GMT 2018

Powered by FUDForum. Page generated in 0.01642 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software