Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Unable to Stage some Files
Unable to Stage some Files [message #820899] Wed, 14 March 2012 14:07 Go to next message
Eclipse UserFriend
Greetings,

I'm have a strange problem with EGit and i'm not sure if it's being caused by something I'm doing or the software itself.

I am able to stage some files and unable to stage others although the Git Staging window properly identifies files that have changed.

All files I'm working with are PHP files so that rules out any type of file extension issue.

I've tried digging through the forums but haven't found anybody else with a similar problem.

I typically drag/drop the files from unstaged to staged - is there a better way to stage the files?

Thanks for the help,

Chris

Re: Unable to Stage some Files [message #820901 is a reply to message #820899] Wed, 14 March 2012 14:09 Go to previous messageGo to next message
Eclipse UserFriend
You can also stage/unstage from a context menu but drag & drop should work the same.

What version of EGit are you using?
Re: Unable to Stage some Files [message #820904 is a reply to message #820901] Wed, 14 March 2012 14:13 Go to previous messageGo to next message
Eclipse UserFriend
I'm currently using version 1.3.0.201202151440-r

I should add that "Add to Git Index" from the context menu does not work on these files either.


I also get this message when trying to commit that particular file:

Quote:
An internal error occurred
Exception caught during execution of commit command


I'm not sure how to drill down into detail any further than that.

[Updated on: Wed, 14 March 2012 14:43] by Moderator

Re: Unable to Stage some Files [message #820930 is a reply to message #820904] Wed, 14 March 2012 14:55 Go to previous messageGo to next message
Eclipse UserFriend
Does the Error Log view contain anything from EGit?

[Updated on: Wed, 14 March 2012 14:55] by Moderator

Re: Unable to Stage some Files [message #820938 is a reply to message #820930] Wed, 14 March 2012 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Attached is the associated error log below is the "caused by" portion:

Caused by: java.io.EOFException: Input did not match supplied length. 496 bytes are missing.
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.shortInput(ObjectDirectoryInserter.java:237)
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.toTemp(ObjectDirectoryInserter.java:168)
at org.eclipse.jgit.storage.file.ObjectDirectoryInserter.insert(ObjectDirectoryInserter.java:105)
at org.eclipse.jgit.api.AddCommand.call(AddCommand.java:183)
  • Attachment: error_log.log
    (Size: 575.07KB, Downloaded 411 times)
Re: Unable to Stage some Files [message #821352 is a reply to message #820938] Thu, 15 March 2012 04:38 Go to previous messageGo to next message
Eclipse UserFriend
I think this is caused by a already fixed jgit bug together with the AutoCRLF feature. There is bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=369780 which lists exactly your error message. And there was a fix done in https://git.eclipse.org/r/#/c/4998 which is already accepted. Chris, could you try out adding the files with a more recent build of EGit (e.g. http://download.eclipse.org/egit/updates-nightly/)?
Re: Unable to Stage some Files [message #821486 is a reply to message #821352] Thu, 15 March 2012 08:27 Go to previous message
Eclipse UserFriend
Updated to the latest build on Nightly and the issue seems to have resolved itself. Thank you for your help!

[Updated on: Thu, 15 March 2012 08:27] by Moderator

Previous Topic:Help in understanding push/fetch workflow
Next Topic:synchronize views show changes they shouldn't
Goto Forum:
  


Current Time: Wed Jun 18 15:04:46 EDT 2025

Powered by FUDForum. Page generated in 0.04508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top