Opened 5 years ago

Last modified 5 years ago

#3303 assigned defect

Weird copy/paste behavior

Reported by: Elaine Meng Owned by: Greg Couch
Priority: normal Milestone:
Component: Logging Version:
Keywords: Cc: Tom Goddard, Eric Pettersen
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.7.0-x86_64-i386-64bit
ChimeraX Version: 1.0rc202005242323 (2020-05-24 23:23:37 UTC)
Description
couldn't copy (command-c) from Log and then paste into this Report a Bug description field (command-v puts in nothing)

Yeah Log contents are included automatically but if someone wants to paste in a certain part to the description, this is a problem.

I could command-v to paste into a text file being VI-d from Terminal, and then copy from that text file and paste into this bugreport description field.



Log:
> open /Users/meng/Desktop/startup.cxc

> alias reset view orient; view initial

> alias start tool show $1

> alias whereprefs info path user unversioned config

> alias previewts toolshed url https://cxtoolshed-
> preview.rbvi.ucsf.edu;toolshed reload available

> alias normalts toolshed url https://cxtoolshed.rbvi.ucsf.edu;toolshed reload
> available

executed startup.cxc  
UCSF ChimeraX version: 1.0rc202005242323 (2020-05-24)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> toolshed show "Side View"

Unknown bundle  




OpenGL version: 4.1 INTEL-12.10.17
OpenGL renderer: Intel Iris Pro OpenGL Engine
OpenGL vendor: Intel Inc.Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro11,4
      Processor Name: Intel Core i7
      Processor Speed: 2.2 GHz
      Number of Processors: 1
      Total Number of Cores: 4
      L2 Cache (per Core): 256 KB
      L3 Cache: 6 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      Boot ROM Version: 197.0.0.0.0
      SMC Version (system): 2.29f24

Software:

    System Software Overview:

      System Version: macOS 10.14.6 (18G4032)
      Kernel Version: Darwin 18.7.0
      Time since boot: 3:49

Graphics/Displays:

    Intel Iris Pro:

      Chipset Model: Intel Iris Pro
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel
      Device ID: 0x0d26
      Revision ID: 0x0008
      Metal: Supported, feature set macOS GPUFamily1 v4
      Displays:
        Color LCD:
          Display Type: Built-In Retina LCD
          Resolution: 2880 x 1800 Retina
          Framebuffer Depth: 24-Bit Color (ARGB8888)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Rotation: Supported
          Automatically Adjust Brightness: No

PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.8

Change History (10)

comment:1 by Eric Pettersen, 5 years ago

Cc: Tom Goddard added
Component: UnassignedUI
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionWeird copy/paste behavior

comment:2 by Elaine Meng, 5 years ago

I also cannot copy from Log, paste into Mail message.

comment:3 by Eric Pettersen, 5 years ago

Cc: Eric Pettersen added
Component: UILogging
Owner: changed from Eric Pettersen to Greg Couch
Status: acceptedassigned

More specifically, it's the echoed command text (inside a gray highlight bar) that does not paste into the Bug Reporter or Mail.app. Logged plain text and "regular" hypertext does paste normally everywhere.

comment:4 by Eric Pettersen, 5 years ago

Logged command text does paste into Terminal.app and the Python shell.

comment:5 by Greg Couch, 5 years ago

I can reproduce the bug copying and pasting to the Bug Reporter on Windows. This is probably due to Qt's handling of selections with HTML in them. Another data point, if I copy and paste the command and its reply to the terminal window, the line break is lost, but it works otherwise.

comment:6 by Eric Pettersen, 5 years ago

Not just HTML per se, since the "How to cite ChimeraX" hyperlink can be copy/pasted, but somehow specifically the echoed command hypertext.

comment:7 by Eric Pettersen, 5 years ago

Another data point: commands can be copied/pasted if they've been turned into executable command links, but not in their normal "open help" form.

comment:8 by Tom Goddard, 5 years ago

I also was troubled to find that copy and paste of the output of "usage turn" into Mac mail does not paste anything. It does paste into the emacs plain text editor. It appears that paste fails for apps that can handle HTML.

Probably the custom html tags ChimeraX is inserting to switch between documentation command links and executable command links is the source of the problem.

comment:9 by Tom Goddard, 5 years ago

My test was with ChimeraX June 1 release candidate, macOS 10.15 (Catalina).

comment:10 by Eric Pettersen, 5 years ago

I also find that if I select _just_ the command name part of a command, paste works. As soon as I include any part of the arguments it fails.

Note: See TracTickets for help on using tickets.