Bug 567051 - git overwrite "Problem opening: Cannot open input element"
Summary: git overwrite "Problem opening: Cannot open input element"
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-17 00:59 EDT by Ralf Hauser CLA
Modified: 2020-09-27 11:02 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 Ralf Hauser CLA 2020-09-17 00:59:26 EDT
I try to pull new files from a GIT repository and it fails due to a checkout conflict. Then I want to "overwrite" the file and I get
"Cannot open input element

Reason:
 ....jar is not on the project's build path
"

1) why is the build path relevant for an overwrite?
2) even after adding that jar to the build path, it still complains ?
Comment 1 Thomas Wolf CLA 2020-09-17 06:34:32 EDT
Sorry, with this description there's nothing we could do. Please provide precise steps to reproduce.

Also, which Eclipse version, which Eclipse package, which EGit version? Which Java version? Is there a public git repo containing the code with which to reproduce the problem?

Any stack traces with error messages, maybe in the Eclipse log or in the Error View?

Finally, why do you think that an error message talking about JARs was an EGit problem? That's highly unlikely. But if you can provide more information, we may be able to triage this to the correct component.
Comment 2 Ralf Hauser CLA 2020-09-17 08:54:45 EDT
sorry 
- egit 5.7.0.202003110725
- eclipse Version: 2020-03 (4.15.0), Build id: 20200313-1211
- jdk1.8.0_261 on debian 10

> Is there a public git repo containing the code with which to reproduce the problem?
Unfortunately not

> Finally, why do you think that an error message talking about JARs was an EGit problem? That's highly unlikely.
While it may be highly unlikely from the egit code perspective, it is definitively reproducible by clicking "overwrite" in the synchronization window. So it must be in the broader event sequence triggered by the "overwrite" of egit
Comment 3 Thomas Wolf CLA 2020-09-27 11:02:27 EDT
Sorry, this still needs more input.

* Which Eclipse package (Eclipse for Java Developers, Eclipse JEE, ...)? May
  be important since the issue may depend on what bundles are installed.
* Would need a simple sample repo with which to reproduce.
* Still would need precise steps. Is pull configured for merging or for
  rebasing? If there's a sample repo, which commit should be HEAD, and which
  commit should be merged into which or rebased onto which to reproduce?
* Which synchronization window? A screenshot might help.