|
|
Re: Eclipse marks ALL files and folders with question mark [message #1818590 is a reply to message #1818570] |
Fri, 20 December 2019 09:09 |
Michael Moser Messages: 64 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
Eclipse 2019-03 (4.11.0)
EGit 5.5.201910021850
Windows 10 / AdoptOpenJDK 8 - jdk-8.0.222.10-hotspot
?? Checkout from Git means I checked it out using EGit from our company's Git repo (Git speak: I cloned the repo to my local machine).
After that (i.e. right after the cloning) and ever since ALL files show a question mark), which I find mighty irritating, because that normally signals files that were added locally and haven't been committed to git, yet.
What I also find inconsistent with these question marks:
Git Staging view shows NO files as changed (and indeed I haven't changed any, yet)
And - BTW: there seems to be a major bug in the "Synchronize with Workspace" operation: When I click that I invariably get a stack overflow! :-(
[Updated on: Fri, 20 December 2019 09:30] Report message to a moderator
|
|
|
|
Re: Eclipse marks ALL files and folders with question mark [message #1819352 is a reply to message #1818592] |
Mon, 13 January 2020 16:40 |
Michael Moser Messages: 64 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
OK - I updated to v2019-12.
> Are you sure the projects shown in your workspace are actually physically located in the actual clone's working tree?
Yes, I can!
> It seems impossible for a file decorated as being a new uncommitted and that same file not being shown in the staging view in that state...
That's what I am trying to convey! It seems impossible. And yet, that's exactly what I see!
ALL files are in sync with the Git repo, i.e. "git status" yields:
D:\Projects\KStA_ZH_ZHQuest\code\application>git checkout develop
Switched to branch 'develop'
Your branch is up to date with 'origin/develop'.
D:\Projects\KStA_ZH_ZHQuest\code\application>git status
On branch develop
Your branch is up to date with 'origin/develop'.
nothing to commit, working tree clean
D:\Projects\KStA_ZH_ZHQuest\code\application>
And still I see ALL files marked with question-mark - see attached screenshot. Here I just randomly unfolded one of the packages, but ALL files have said question mark.
[Updated on: Mon, 13 January 2020 16:43] Report message to a moderator
|
|
|
|
Re: Eclipse marks ALL files and folders with question mark [message #1819385 is a reply to message #1819372] |
Tue, 14 January 2020 09:50 |
Michael Moser Messages: 64 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
Darn - you are right! That was the log of the old workspace. Attaching a new one.
For this I re-iterated the whole exercise, i.e. threw away my current workspace, created a new one and imported my project into it.
My project is a nested maven project, i.e. there is a parent project that contains about ten child projects. I import that using "Import existing project", I then select the parent project folder (which yields one project), then I tick the "Search for nested projects" checkbox, which yields the entire list (i.e. parent plus all children) and then I click Finish.
Next steps were to adjust the Maven settings and clicking "Maven -> Update Project...". I then let it update and build...
Then I exited and restarted Eclipse (to save that new workspace) and after the restart my first operation was to Trigger a "Synchronize Workspace" ==> Stack Overflow.
-
Attachment: .log
(Size: 314.37KB, Downloaded 82 times)
[Updated on: Tue, 14 January 2020 09:50] Report message to a moderator
|
|
|
|
Re: Eclipse marks ALL files and folders with question mark [message #1820794 is a reply to message #1820736] |
Wed, 29 January 2020 07:46 |
Michael Moser Messages: 64 Registered: October 2012 Location: Zürich, Switzerland |
Member |
|
|
Bingo! THAT was the reason! Thanks a lot!
Reason: The path I used as Eclipse workspace is using a "logical drive", i.e. it starts with a drive letter 'D:' pointing to my project's root folder. The path in Git's Working Tree contained the "resolved" version, i.e. started from C:\user\....<etc>.
Eventually it pointed to the same directory but of course these two are logically different.
I now changed that in Git's .../.git/config file, restarted Eclipse and finally things are back to normal!
I owe you!
Regards and thanks again!
Michael
[Updated on: Wed, 29 January 2020 09:06] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds