3
$\begingroup$

My mathematica version is 12.2 and OS is windows 10.

  1. In a new .nb document
  2. Write a string "abc" in the first cell
  3. Right mouse click on the first cell bracket
  4. click copy as - plain text
  5. ctrl+v (paste) at the next cell(=second cell)
  6. In 95% case, paste fails and I get an error message.
  7. But in 5% case, paste succeed and error message doesn't show up.

I investigated this phenomenon with a clipboard tool,
and concluded that from the time the clipboard was formed, there was an error.
If the first component is 'Mathematica cells', it is doomed to fail.
If the first component is 'CF_unicodetext', then it is doomed to succeed.

The first GIF shows a typical fail case.

enter image description here

The second GIF shows many fail cases and one success case.
(The cursor moves back and forth with the joy of success)

enter image description here

I think this is a bug. (In the world of programming or software, usually 95% case is ok and bug occurs at 5%. But this time, 5% case is ok and bug occurs at 95%)

PS) In some state, a little surprisingly, I keep getting success only, never get fail.
But I don't know how to get to that state.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

The probelm was solved by @ihojnicki, as commented below. I was testing a clipboard tool - it was the cause. Funnily I used another clipboard tool to inspect what was going on, and seems it made things worse.

$\endgroup$
11
  • 4
    $\begingroup$ Are you using an external clipboard history tool? That looks/acts like something has locked the clipboard. $\endgroup$
    – ihojnicki
    Commented May 2, 2022 at 13:38
  • 1
    $\begingroup$ Please read the bugs tag info. The tag is applied by the community, once there is a consensus that it is a bug. $\endgroup$
    – Michael E2
    Commented May 2, 2022 at 14:03
  • 2
    $\begingroup$ I’m voting to close this question because it has been resolved in the comments. Moreover the issue was not related to Mathematica. $\endgroup$
    – Syed
    Commented May 2, 2022 at 17:43
  • 2
    $\begingroup$ Why was this question closed? It seems like it would be useful for someone in the future facing the same problem. $\endgroup$
    – Jason B.
    Commented May 2, 2022 at 22:48
  • 2
    $\begingroup$ I’m voting to close this question because it’s caused by a third party tool $\endgroup$
    – lericr
    Commented May 18, 2022 at 14:57

1 Answer 1

2
$\begingroup$

As pointed out by @ihojnicki in the comments, this behavior is most likely caused by using an external clipboard history tool. For some reason Mathematica is unable to work with these tools, and you get that ugly XML message.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.