复制文本在Chrome DevTools/控制台面板中无法正常工作。

huangapple go评论37阅读模式
英文:

Copy text in chrome DevTools/Console panel not work normally

问题

描述错误

最近,在 macOS(版本12.6.3)上使用Chrome(版本112.0.5615.49)时,我在从DevTools的控制台面板复制和粘贴时遇到了一个问题。在选择一个单词并复制它后,粘贴时它总是向前移动2个字符。这可能是什么原因?

复现步骤

复现行为的步骤:

  1. 打开任何页面,按F12打开“开发者工具”,切换到“控制台”面板。
  2. 选择并聚焦在一个单词上(例如:在句子“Uncaught ReferenceError:”中的单词'Uncaught'),执行“Cmd + C”或右键单击并选择复制。
  3. 在任何地方执行“Cmd + V”或右键单击并选择粘贴,你会得到错误的单词,即“caught R”。

期望行为

复制'Uncaught',粘贴会输出'Uncaught'。

截图

复制文本在Chrome DevTools/控制台面板中无法正常工作。

相同的屏幕录制视频

桌面环境

  • 操作系统:macOS(12.6.3(21G419))
  • 浏览器[Chrome]
  • 版本[112.0.5615.49]

那么,这是Chrome的错误吗?还是等待官方升级来修复它?

英文:

Describe the bug

Recently, while using Chrome (version 112.0.5615.49) on macOS (version 12.6.3), I have encountered an issue when copying and pasting from the Console panel in DevTools. After selecting a word and copying it, when I paste it, it always shifts 2 characters backwards. What could be the reason for this?

To Reproduce

Steps to reproduce the behavior:

  1. Any page, F12 to open devtools, switch to console panel
  2. Select and focus on a word(for example: the word 'Uncaught' in sentence Uncaught ReferenceError:), do cmd + c or right click & select copy on this word.
  3. cmd + v or right click & select paste anywhere, you get error word, caught R

Expected behavior

Copy 'Uncaught', paste will print 'Uncaught'

Screenshots

复制文本在Chrome DevTools/控制台面板中无法正常工作。

same screen recording video

Desktop

  • OS: macOS (12.6.3 (21G419))
  • Browser [Chrome]
  • Version [112.0.5615.49]

So, is it a chrome bug? or waiting for offical upgrade to fix it?

答案1

得分: 6

20230504: 今天我升级到113.0.5672.63(macOS),一切都正常。以下是我的个人小笔记。


最终它在新版本112.0.5615.121中修复了。这是多么可怕的日子。

现在肯定是Chrome的问题,不是我的Mac的问题。

每个人都应该升级Chrome以避免这个问题。

===20230417===

它再次出现了问题。我向Chrome发送了反馈报告,但还没有收到回复。

===20230419===

我每天都在检查新的升级。现在是112.0.5615.137,仍然有问题;(

===20230504===

越来越多的人可以重现(macOS/Windows/Ubuntu),我认为这篇帖子中提到的所有v112.x版本的Chrome都有问题。

遗憾的是,我仍然没有收到关于我在20天前发送的反馈的任何电子邮件,也不知道如何跟踪进展。有没有人知道如何更有效地向Chrome提交反馈以修复问题。

我似乎已经习惯了这个让人头痛的问题,会静静地等待官方修复(笑哭:)


在我发表绝望的言辞之后,我突然意识到很长一段时间以来我没有主动检查更新,刚刚在我打开'关于Google Chrome'时发现有一个可用的更新。我升级到版本113.0.5672.63(macOS),在重新启动Chrome后,问题似乎终于得到了解决。这真是个好消息!

请检查你的Chrome更新,我认为v113.x已经解决了这个问题,但我不确定是否已经为其他操作系统发布了更新,请自行检查吧。

英文:

20230504: Today I upgrade to 113.0.5672.63(macOS), all goes well now. Below are my personal little notes.


Finnaly it fixed with new version 112.0.5615.121. What a horriable days.

Now it surely chrome bug, not my mac's problem.

Everyone should upgrade chrome to avoid it.

===20230417===

It broken again. I send a feedback report to chrome, but no reply yet.

===20230419===

I check new upgrade everyday. Now is 112.0.5615.137, still bad ;(

===20230504===

More and more people could reproduce(macOS/Windows/Ubuntu), I think all of v112.x chrome in this post mentioned work bad.

Saddly, I still not received any email about that I seed the feedback 20 days defore, and I don't know how to trace the progress. Any bro knows how to submit the feedback to chrome to be fix more efficient.

I seem to have gotten used to this headache-inducing bug and will quietly wait for the official fix(laughing cry 复制文本在Chrome DevTools/控制台面板中无法正常工作。


After I ready post my hopeless words. I suddenly realized that I hadn't actively checked for updates in a long time, and just now I found that there was an update available when I opened 'About Google Chrome'. I updated to version 113.0.5672.63 (macOS), and after restarting Chrome, it seems that the issue has finally been fixed. That's great news!

Please check your chrome update, I think v113.x fixed it, but I'm not sure if the update has been released for other operating systems yet, check yourself guys.

答案2

得分: 1

有问题尝试从错误日志(红色)中复制文本。

因此,如果文本是“bla bli blu”,而你想选择“bli”,然后选择“a b”而不是“bli”。

这是选择开头和结尾的-2个字符的翻译。

如果你忘记这样做,那么当你粘贴你复制的内容时,你只需“猜测”两个缺失的前导字符,还要擦除最后两个。

请Chromium团队解决这个问题,因为已经很令人沮丧要处理错误。

英文:

There is an issue when trying to copy text from an error log (red).

So if a text is "bla bli blu" and you want to select "bli", then select "a b" instead.

That's a -2 character translation of the selection beginning and end.

If you forget to do that then when you paste what you copied you just have to "guess" what are the two missing leading characters and also erase the last two.

Please Chromium team fix this since it's already frustrating to be dealing with an error to begin with.

答案3

得分: 0

在Chrome Canary,115.0.5749.0 上,这个问题似乎已经修复。

OS为MacOS 12.5。

编辑:我被领先了8分钟。

英文:

On Chrome Canary, 115.0.5749.0 this issue seems to have been fixed.

OS MacOS 12.5

EDIT: I got beaten by 8 minutes

huangapple
  • 本文由 发表于 2023年4月11日 10:13:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75981951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定