Skip to content

Code analysis copy result #20848

@PanderMusubi

Description

@PanderMusubi

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Offer a menu item called Copy when right clicking on a code analysis result.

What steps reproduce the problem?

  1. Open Python
  2. Run code analysis with F8
  3. Choose a result and right click on it

What is the expected output? What do you see instead?

This is not yet implemented. Expected would be that the copy paste buffer contains e.g.

C0209 (consider-using-f-string) line 164: Formatting a regular string which could be a f-string

Implementing this helps users search more easily for this result (or a part of it) online and makes it more easily to share this line with a colleague.

Versions

  • Spyder version: 5.4.3 (pip)
  • Python version: 3.10.6 64-bit
  • Qt version: 5.15.3
  • PyQt5 version: 5.15.6
  • Operating System: Linux 6.2.6-76060206-generic

Dependencies

pylint

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions