-
1. Re: Problem project is not in sync
maxandersen Feb 28, 2013 9:04 AM (in response to pete83)I've never seen such error.
Could you take a screenshot to show it ?
Can you go to Help > Report a problem and attach the generated zip file which will contain the error log.
If you don't like that can you see in Error Log View what errors are in there ?
-
2. Re: Problem project is not in sync
pete83 Feb 28, 2013 10:47 AM (in response to maxandersen)Hallo,
thank you for your reply!!!
I've attached a screenshot and the error log as described. Nevertheless, as far as I can tell, there is no information at all in the logs about the error... It's weird that I have this error so often while I don't find any information on the net.
Greetings,
Peter
-
project_not_in_sync.png 46.1 KB
-
errorlog.zip 109.2 KB
-
-
3. Re: Problem project is not in sync
snjeza Feb 28, 2013 3:08 PM (in response to pete83)I think this is a bug in CDI. Could you try the following:
- right-click the project, select CDI and uncheck the CDI support checkbox
- call a Rename refactoring
After following these steps, you will, unfortunately, lose the CDI support.
-
4. Re: Problem project is not in sync
akazakov Feb 28, 2013 3:58 PM (in response to snjeza)Snjezana,
do you mean CDI Tools? Can you reproduce this problem? If yes could you create an issue in JIRA with details.
Thanks.
-
5. Re: Problem project is not in sync
snjeza Feb 28, 2013 5:24 PM (in response to akazakov)Alexey,
I haven't succeeded to reproduce the issue.
I suppose the issue is comming from the CDI Tools because the "Cannot change file(s). Project <project> not in sync" message is created with the AbstractCDIProcessor.isFileCorrect() and CDISearcher.outOfSynch() method.
It is probably necessary to have a more complex project to reproduce the issue.
It is also possible that the lombok jar (http://projectlombok.org/) Peter uses, causes the issue because it changes files using a non Eclipse API.
Peter,
You can also try to remove the following options from the eclipse.ini file:
-Xbootclasspath/a:lombok.jar
-javaagent:lombok.jar
Removing the lombok agent will also improve JBDS performance.
-
6. Re: Problem project is not in sync
akazakov Feb 28, 2013 7:08 PM (in response to snjeza)Thank you,, Snjezana. We need to fix CDI tools. It should ignore unsynchronized files and log such errors with more details. And not bother users blocking UI. We will create an issue for this bug.
-
7. Re: Problem project is not in sync
dazarov Feb 28, 2013 7:43 PM (in response to snjeza)Thank you, Snjezana.
I think this is a problem with org.jboss.tools.jsf.ui.el.refactoring.RenameMethodParticipant, but CDI Tools has similar problem.
I created an issue - https://issues.jboss.org/browse/JBIDE-13695
-
8. Re: Problem project is not in sync
pete83 Mar 1, 2013 7:48 AM (in response to dazarov)Thanks a lot for your answers!!!
I've followed the advises to deactivate CDI validation and to remove lombok from the ini file, however this unfortunately doesn't resolve the problem :-(
I'm updating Git and building with Maven via the command line, I think this is what "causes" the error (besides that this error shouldn't be causable by anything in this form ;-) ) (my colleague has this problem, too, using Subversion and Maven)
Does anybody have another idea for a possible workaround? This is a horrible coding experience :-(
Greetings,
Peter
PS: What is additionally weird, is that no refresh, update project configuration and often even remove and reimport into workspace does help to bring the projects "in sync" again
-
9. Re: Problem project is not in sync
snjeza Mar 1, 2013 8:09 AM (in response to pete83)You have to refresh the projects in the workspace after every maven build via command line.
-
10. Re: Problem project is not in sync
pete83 Mar 1, 2013 8:48 AM (in response to snjeza)Yes, but the problem is, that refresh just doesn't help, neither does project clean nor update project configuration (nor remove and reimport in some cases). That is the confusing part, even if I try, I cannot get rid of it. The only thing working is removing all modules out of sync and then doing the refactoring (because reimport often causes the problem to reappear).
-
11. Re: Problem project is not in sync
snjeza Mar 1, 2013 9:06 AM (in response to pete83)Is there your workspace on your local disk or you are using some network file server/network file system?
-
12. Re: Problem project is not in sync
pete83 Mar 1, 2013 9:37 AM (in response to snjeza)The workspace is on my local disk, except for the vast number of modules nothing really fancy is going on...
-
13. Re: Problem project is not in sync
snjeza Mar 1, 2013 10:02 AM (in response to pete83)Your log shows that the workspace is N:/Workspace/. If N: is a network device, try to add
-data
C:\workspace
(or something similar that) to the eclipse.ini before the -vmargs options.
You also have to close/delete all the projects from the N: network device or move them to the local workspace and reimport them.
-
14. Re: Problem project is not in sync
pete83 Mar 4, 2013 4:57 AM (in response to snjeza)N: is a RamDisk that I moved my workspace to, to speed up the setting of the classpath containers & co... It only holds the metadata though, the files are on my local drive C:
I already had the problem, before I move my workspace to the RamDisk though (when metadata and source were residing in the same workspace folder...)