- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我的 Eclipse 工作区有两个项目,一个使用 CVS,另一个使用 Git。在CVS工程中修改文件并保存时,弹窗说
An internal error occurred during: "Computing Git status for repository repo23".
Malformed input or input contains unmappable chacraters: /Users/pb/repo23/对照表/feng11.htm
知道如何解决这个问题吗?
biên tập:
eclipse 平台
版本:4.3.1.v20130911-1000构建 ID:M20130911-1000
Eclipse EGit 3.2.0.201312181205-r
câu trả lời hay nhất
您可以在 vấn đề này 中查看确切的调用堆栈:
java.nio.file.InvalidPathException: Malformed input or input contains unmappable chacraters: /Users/jettykoo/Desktop/WeTeam/Git/WSS/MaryKay/Doc/01/.DS_Store
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2186)
at org.eclipse.jgit.util.FileUtil.isFile(FileUtil.java:126)
at org.eclipse.jgit.util.FileUtil.canExecute(FileUtil.java:131)
我对 sun/nio/fs/UnixPath.java 中的错字感到惊讶: 'chacraters' 而不是 'characters'!
giống this NetBeans issue 中所述(这应该与 Eclipse 上下文相关):
it's a JDK issue and also partially also Apple issue (the
LC_CTYPE
is not set by default).
The behaviour in terminal depends on theTerminal.app
preferences.
- When the Terminal export
LC_CTYPE
set toUTF-8
it works fine in terminal as thesun.jnu.encoding
is set to the value ofLC_CTYPE
.- When it's not set it does not work.
The problem with setting the
sun.jnu.encoding
is that it may be overwritten by the JDK, so it's safer to export theLC_CTYPE=UTF-8
.Rather then addding
-J-Dsun.jnu.encoding=UTF-8
ĐẾNnetbeans.conf
, prepend the exportLC_CTYPE=UTF-8
to it.
你可以在你的 eclipse.ini 中设置它(-DLC_CTYPE=UTF-8
)。
Alexander Kachkaev提及 in the comments :
What helped me was adding two lines to
eclipse.ini
.
-DLC_CTYPE=UTF-8
-Dfile.encoding=UTF-8
Team commands stopped giving errors
关于eclipse - Git 错误 : Malformed input or input contains unmappable chacraters,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22413421/
我的 Eclipse 工作区有两个项目,一个使用 CVS,另一个使用 Git。在CVS工程中修改文件并保存时,弹窗说 An internal error occurred during: "Compu
每次我尝试提交我在 Eclipse 中处理的项目时,都会收到此错误。我通读了this线程以及其他网站上的其他线程,到目前为止我尝试过的解决方案都不起作用。这似乎是 Eclipse 无法识别“μ”字符的
Tôi là một lập trình viên xuất sắc, rất giỏi!