在Eclipse中尝试从eGit提交git时出现“发生内部错误”(“An internal error occurred” when trying to commit to git from eGit

编程入门 行业动态 更新时间:2024-10-28 19:19:56
在Eclipse中尝试从eGit提交git时出现“发生内部错误”(“An internal error occurred” when trying to commit to git from eGit in Eclipse)

[已解决]不知何故,我设法没有“写入”权限的.git目录。 所以试图编写提交并获得反弹。

我一直在使用Eclipse几个月,但一直只是从CLI运行git。 我认为效率不高,而且我想使用eGit,所以我开始学习本教程(http://www.slideshare.net/loianeg/using-the-egit-eclipse-plugin-with-git-hub-2578587?从嵌入=)。

我试图添加一个现有的项目,所以我做了团队 - >共享项目 - > Git并选择了与我的项目相对应的.git。 Eclipse似乎已经把它捡起来了,好吧,但是当我尝试提交时,我会看到一个弹出窗口

“提交更改时遇到问题” - 发生内部错误。

当我点击详细信息时,它会说“在执行提交命令期间发生了内部错误发生的异常”

......我甚至不知道从哪一个开始。 我GOOGLE了错误,没有得到任何有用的东西。

任何人都知道如何解决这个问题,或者至少如何开始调试?

[SOLVED] Somehow, I managed to not have "write" permissions to the .git directory. So was trying to write the commit and getting bounced.

I've been using Eclipse for a few months, but had been just running git from the CLI. I decided that was inefficient and that I wanted to use eGit, so I started following this tutorial (http://www.slideshare.net/loianeg/using-the-egit-eclipse-plugin-with-git-hub-2578587?from=embed).

I'm trying to add an existing project, so I did Team-->Share Project-->Git and selected the .git corresponding to my project. Eclipse seems to have picked it up, okay, but when I try to commit, I get a popup saying

"Committing changes has encountered a problem' -- an internal error occured.

When I click details, it say "An internal error occurred Exception caught during execution of commit command"

...I don't even know where to start on this one. I googled the error and didn't get anything useful.

Anyone know how to fix this, or at least how to start debugging?

最满意答案

开始调试? 检查“错误”Eclipse视图以查看与该错误消息关联的完整堆栈跟踪

错误视图示例:

显示错误视图Eclipse错误视图

修理它? 如果Exception是一个NPE(NullPointerException),如错误329611中所示,那么您可以在shell中尝试使用git commit -m“a message”,以便通过GUI实现最初的第一次提交。

正如OP rogueleaderr提到的那样,错误视图和异常背后的确切堆栈跟踪足够了:

不知何故,我设法没有“写入” .git目录的权限。 所以试图编写提交并获得反弹。

start debugging? Check the "Errors" Eclipse view for a full Stack Trace associate with that error message

Example of an Error View:

Show Error View Eclipse Error View

fix it? If the Exception is a NPE one (NullPointerException), like shown in bug 329611, then you can try a git commit -m "a message" in a shell, in order to get past that initial first commit with a GUI.

As the OP rogueleaderr mentions, the error view and the exact stack trace behind the exception was enough:

Somehow, I managed to not have "write" permissions to the .git directory. So was trying to write the commit and getting bounced.

更多推荐

本文发布于:2023-07-17 07:57:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1141326.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   发生   eGit   git   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!