Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot copy error information in cell output correctly #16242

Open
1 of 2 tasks
zhong-yy opened this issue Nov 22, 2024 · 2 comments
Open
1 of 2 tasks

Cannot copy error information in cell output correctly #16242

zhong-yy opened this issue Nov 22, 2024 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged

Comments

@zhong-yy
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

For example,
Image

After pasting, the above error output becomes

[678](https://file+.vscode-resource.vscode-cdn.net/home/user/DATA/tests/~/miniconda3/envs/myenv/lib/python3.10/site-packages/mypkg/utils/processing.py:678) Logger.debug(f"dtype for {_id}: {data.dtype}")

IndexError: index 0 is out of bounds for axis 0 with size 0

A long extra text like "https://file+.vscode-resource.vscode-cdn.net/home/..." always occurs.

VS Code Version

1.93.1

Jupyter Extension Version

v2024.10.0

Jupyter logs

Coding Language and Runtime Version

python v3.10.14

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

None

@zhong-yy zhong-yy added the bug Issue identified by VS Code Team member as probable bug label Nov 22, 2024
@vs-code-engineering vs-code-engineering bot added the triage-needed Issue needs to be triaged label Nov 22, 2024
@DonJayamanne DonJayamanne assigned amunger and unassigned DonJayamanne Nov 22, 2024
@amunger
Copy link
Contributor

amunger commented Nov 22, 2024

Is this a remote kernel? or maybe in a browser?
How are you copying the output? Does the same thing happen when you use the output menu on the left and select 'copy output'?

@amunger amunger added the info-needed Issue requires more information from poster label Nov 22, 2024
@zhong-yy
Copy link
Author

Is this a remote kernel? or maybe in a browser?
How are you copying the output? Does the same thing happen when you use the output menu on the left and select 'copy output'?

1 It is a local kernel
2 I use Ctrl + C to copy the output
3 The same thing doesn't happen when I click on the 'copy output'. However, in this way all the output will be copied but I just want to copy the part selected by cursor.

@amunger amunger removed the info-needed Issue requires more information from poster label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants