Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Unable to Stage some Files
Unable to Stage some Files [message #820899] Wed, 14 March 2012 18:07 Go to next message
Chris Card is currently offline Chris CardFriend
Messages: 4
Registered: March 2012
Junior Member
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 18:09 Go to previous messageGo to next message
Kevin Sawicki is currently offline Kevin SawickiFriend
Messages: 47
Registered: September 2011
Member
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 18:13 Go to previous messageGo to next message
Chris Card is currently offline Chris CardFriend
Messages: 4
Registered: March 2012
Junior Member
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 18:43]

Report message to a moderator

Re: Unable to Stage some Files [message #820930 is a reply to message #820904] Wed, 14 March 2012 18:55 Go to previous messageGo to next message
Kevin Sawicki is currently offline Kevin SawickiFriend
Messages: 47
Registered: September 2011
Member
Does the Error Log view contain anything from EGit?

[Updated on: Wed, 14 March 2012 18:55]

Report message to a moderator

Re: Unable to Stage some Files [message #820938 is a reply to message #820930] Wed, 14 March 2012 19:09 Go to previous messageGo to next message
Chris Card is currently offline Chris CardFriend
Messages: 4
Registered: March 2012
Junior Member
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 384 times)
Re: Unable to Stage some Files [message #821352 is a reply to message #820938] Thu, 15 March 2012 08:38 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 274
Registered: July 2009
Senior Member
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/)?

Ciao
Chris
Re: Unable to Stage some Files [message #821486 is a reply to message #821352] Thu, 15 March 2012 12:27 Go to previous message
Chris Card is currently offline Chris CardFriend
Messages: 4
Registered: March 2012
Junior Member
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 12:27]

Report message to a moderator

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


Current Time: Fri Apr 26 13:34:22 GMT 2024

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

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

Back to the top