Eclipse 不粘贴复制的文本 (Java/Mac)

发布于 2024-10-23 19:59:19 字数 402 浏览 1 评论 0原文

我遇到了这个奇怪的问题,当我选择文本(Cmd-C)然后尝试将其复制到另一个位置(Cmd-V)时,它的行为就好像它想要复制文件,就好像我选择了文件名而不是文件名一样文本。尝试粘贴到文本窗口中会粘贴文件本身,因此很明显副本是有问题的。尝试使用菜单选项进行复制(编辑->复制)会执行相同的操作,因此这不是关键的解释问题。

在我关闭 Eclipse 然后重新打开它之后,这种情况开始发生在我身上。没有更改任何设置。突然出现的一个可能有助于识别的相关问题是 Eclipse 停止显示调试模式下堆栈跟踪所在的文件/行(断点有效,只是不拾取文件/行#)。如果您右键单击堆栈跟踪项并告诉它转到源代码 - 它会转到源代码,并且看起来似乎正确,但当您命中断点时它不会自动执行此操作。这两个问题都是在重启后开始出现的。

两者都同样令人不安 - 但这篇文章主要是关于粘贴问题。

I am having this weird problem where when I select text (Cmd-C) and then try to copy it to another location (Cmd-V) it behaves as though it wants to copy the file as if I had the file name selected instead of the text. Trying to paste in a text window pastes the file itself, so it's clear the copy is what is at fault. Trying the menu option to copy (Edit->copy) does the same thing, so it's not a key interpretation issue.

This started happening to me after I had closed eclipse and then re-opened it later. No settings had been changed. A related issue that cropped up that might help identify is that eclipse stopped showing the file/line that the stack trace was on in debug mode (break points work, just doesn't pick up the file/line #). If you right-click on the stack trace item and tell it to go to the source code - it does, and appears to look correct, it just doesn't do it automatically when you hit the breakpoint. Both issues started happening after the restart.

Both are equally disturbing - but this post is primarily about the pasting issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风向决定发型 2024-10-30 19:59:19

调试跟踪问题也发生在我身上。我关闭 Eclipse,然后删除关联工作区中的“.metadata\.plugins\org.eclipse.jdt.core”文件夹,然后重新启动。这会清除缓存。

The debug trace issue happens to me too. I close Eclipse, then delete the ".metadata\.plugins\org.eclipse.jdt.core" folder in the associated Workspace, then restart. This clears the cache.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文