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

PR: Avoid error when getting an object's value to copy it (Variable Explorer) #23460

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

ccordoba12
Copy link
Member

Description of Changes

  • This was happening when the value to be copied is too big, which takes too much time and throws an error.
  • Also, improve reporting error messages when users want to copy multiple values (the previous code worked well for a single value).

Issue(s) Resolved

Fixes #12913.

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

Before we were aborting the copy operation on the first error and showed
a message. Now we show the message at the end, after trying to copy all
selected objects.
@ccordoba12 ccordoba12 added this to the v6.0.4 milestone Jan 14, 2025
@ccordoba12 ccordoba12 self-assigned this Jan 14, 2025
@ccordoba12 ccordoba12 merged commit 2a5162e into spyder-ide:master Jan 14, 2025
17 checks passed
@ccordoba12 ccordoba12 deleted the issue-12913 branch January 14, 2025 20:31
@ccordoba12
Copy link
Member Author

@meeseeksdev please backport to 6.x

meeseeksmachine pushed a commit to meeseeksmachine/spyder that referenced this pull request Jan 14, 2025
ccordoba12 pushed a commit that referenced this pull request Jan 14, 2025
…ect's value to copy it (Variable Explorer)) (#23461)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError when trying to copy a variable in the Variable Explorer
1 participant