Bug 564887 - Spurious file does not exist in workspace.
Summary: Spurious file does not exist in workspace.
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-03 03:02 EDT by Ed Willink CLA
Modified: 2020-07-04 10:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2020-07-03 03:02:59 EDT
5.9.0 After

Compare head commit with its predecessor in tree
- shows 20 updated files, 7 new files
Create another branch at head, do not check out
Reset head commit to predecessor
In Git Tree Compare Open working tree for an updated file

=> Problem occurred popup

File E:\GIT\org.eclipse.qvtd\plugins\org.eclipse.ocl.xtext.base\src\org\eclipse\ocl\xtext\base\cs2text\XtextParserRuleAnalysis.java does not exist in the workspace

Going to the Package Explorer demonstrates that there is nothing wrong with the relevant file.

?? The Git Tree View has somehow got a handle on the commit content that is no longer part of the checkout ??
Comment 1 Ed Willink CLA 2020-07-03 03:05:51 EDT
(What I was really trying to do was abandon the current commit but rescue some of its evolution. So I really wanted a compare left-commit version with working tree tree entry action.)
Comment 2 Thomas Wolf CLA 2020-07-04 10:41:34 EDT
Cannot reproduce with an updated file. Can reproduce with an added file (which evidently is gone from the workspace after the (hard) reset).

Looks like CompareTreeView should check whether the file exists before adding the "Open Working Tree Version" menu entry.