简体   繁体   English

Eclipse Team Synchronize显示“ Java Workspace”模型中的即将发生的更改,其中Git模型不显示任何更改

[英]Eclipse Team Synchronize shows Outgoing changes in 'Java Workspace' Model, where Git Model shows none

I've looked at the answers to similar questions here, and none fit the bill, or manage to solve the issue. 我在这里查看了类似问题的答案,但都不符合要求,或者无法解决问题。

Using Eclipse Neon.3 (4.6.3) with EGit 4.7.0, and no other versioning system like SVN or CVS, calling Team > Synchronize on some of my Java projects, which have been synced with a Bitbucket repo many times over, and which show absolutely no changes whatsoever in the compare editor, including any whitespace differences, Eclipse still lists several .java source files as Outgoing changes under the "Java Workspace" model. 在EGit 4.7.0上使用Eclipse Neon.3(4.6.3),并且没有其他版本控制系统(如SVN或CVS),在我的一些Java项目上调用Team> Synchronize ,这些项目已经与Bitbucket存储库多次同步,并且Eclipse在比较编辑器中绝对没有显示任何更改,包括任何空格差异,Eclipse仍在“ Java Workspace”模型下将几个.java源文件列为“待发更改”。

So for instance, calling Team > Synchronize on a project in my workspace, that is tracked in my local Git repo and remotely in a Cloud hosted Bitbucket, returns the following message: 因此,例如,在我的本地Git存储库中跟踪的工作区中的一个项目上调用Team> Synchronize并在一个Cloud托管的Bitbucket中进行远程跟踪,将返回以下消息:

There are no more Incoming/Outgoing changes for Git Commits. Git提交没有更多的传入/传出更改。 However Java Workspace has changes in Incoming/Outgoing mode. 但是,Java Workspace在“传入/传出”模式中有所更改。

Change to Java Workspace 更改为Java工作区
Show All Models 显示所有型号

在此处输入图片说明

A Google search for "However Java Workspace has changes" only yields a single result: Google搜索“但是Java Workspace有所变化”只会产生一个结果:

在此处输入图片说明

The sole hit is a reported bug in Subversive (one of the two main SVN integrations for Eclipse). 唯一受到打击的是Subversive (Eclipse的两个主要SVN集成之一)中的一个已报告错误 However, while the described issue sounds like a rather accurate match of the issue I'm having, it claims that doing another Team > Synchronize , or restarting Eclipse would resolve the phantom Outgoing changes. 但是,虽然所描述的问题听起来与我所遇到的问题相当准确,但它声称执行另一个Team> Synchronize或重新启动Eclipse将解决幻影外发更改。 Not so in my case, not with EGit. 就我而言,不是这样,不是与EGit有关。

Like I said, the remote and local files are exactly the same, incl. 就像我说的那样,远程文件和本地文件完全相同,包括。 their whitespace/line endings. 他们的空白/行结尾。
Fetch/Pull from origin says there are no changes, everything is up to date. 从原点获取/拉取表示没有更改,所有内容都是最新的。 Calling Replace With > HEAD Revision also doesn't help, Eclipse keeps insisting, that my workspace has Outgoing changes. Eclipse坚持认为,我的工作区具有即将发生的更改,因此调用“ 替换为”>“ HEAD修订”也无济于事。 Outgoing where? 去向哪里?

This is obviously no big issue, merely an irritating nuissance. 显然,这不是什么大问题,只是令人讨厌的麻烦。 Still would be nice to get to the bottom of it. 深入了解它仍然很高兴。

...Did you try doing the Eclipse dance? ...您尝试参加Eclipse之舞吗?

Edit: I find after some time Eclipse will behave strangely (example: dumping views I have enabled, losing track of files, or behaviour similar to what you are experiencing). 编辑:我发现一段时间后Eclipse的行为会异常(例如:转储我启用的视图,丢失文件跟踪或行为与您所遇到的类似)。 When this happens I usually select and delete the project from my workspace, close Eclipse, reopen it and reopen the project. 发生这种情况时,我通常会从工作区中选择并删除项目,关闭Eclipse,重新打开它,然后重新打开项目。

I don't know why this happens or why this works as a fix. 我不知道为什么会这样,或者为什么这样才能解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM