h-michaelson20
4778d61bdd
Fix copy button not working for REPL error output ( #40669 )
...
## Description
Fixes the copy button functionality in REPL interactive mode error
output sections.
When executing Python code that produces errors in the REPL (e.g.,
`NameError`), the copy button in the error output section was
unresponsive. The stdout/stderr copy button worked correctly, but the
error traceback section copy button had no effect when clicked.
Fixes #40207
## Changes
Modified the following:
src/outputs.rs: Fixed context issues in render_output_controls by
replacing cx.listener() with simple closures, and added custom button
implementation for ErrorOutput that copies/opens the complete error
(name + message + traceback)
src/outputs/plain.rs: Made full_text() method public to allow access
from button handlers
src/outputs/user_error.rs: Added Clone derive to ErrorView struct and
removed a couple pieces of commented code
## Why This Matters
The copy button was clearly broken and it is useful to have for REPL
workflows. Users could potentially need to copy error messages for a
variety of reasons.
## Testing
See attached demo for proof that the fix is working as intended. (this
is my first ever commit, if there are additional test cases I need to
write or run, please let me know!)
https://github.com/user-attachments/assets/da158205-4119-47eb-a271-196ef8d196e4
Release Notes:
- Fixed copy button not working for REPL error output
2025-10-28 06:52:53 +00:00
..
2025-10-27 10:05:50 +00:00
2025-10-20 13:52:05 +00:00
2025-10-17 18:58:14 +00:00
2025-10-23 03:57:33 +00:00
2025-10-24 07:48:14 +00:00
2025-10-27 10:05:50 +00:00
2025-10-19 15:52:28 +00:00
2025-10-27 10:05:50 +00:00
2025-10-20 08:35:28 -03:00
2025-10-17 18:58:14 +00:00
2025-10-24 18:19:53 +02:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 21:56:57 +02:00
2025-10-23 17:17:41 +00:00
2025-10-21 10:43:22 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 05:10:57 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-23 22:38:40 -06:00
2025-10-17 18:58:14 +00:00
2025-10-20 13:26:20 +02:00
2025-10-26 12:44:34 +00:00
2025-10-21 10:43:22 +00:00
2025-10-21 10:43:22 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 22:54:42 +00:00
2025-10-27 22:54:42 +00:00
2025-10-27 16:00:27 +00:00
2025-10-27 13:27:59 -04:00
2025-10-27 17:00:36 +00:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-24 13:25:58 -06:00
2025-10-23 21:04:22 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-24 18:19:53 +02:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-25 22:51:59 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-23 14:13:35 -04:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-21 10:43:22 +00:00
2025-10-28 07:40:38 +01:00
2025-10-22 17:55:26 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 01:37:41 +00:00
2025-09-11 13:56:06 -07:00
2025-10-24 07:52:51 -04:00
2025-10-28 01:37:41 +00:00
2025-10-27 12:38:56 -03:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-10-23 22:38:40 -06:00
2025-10-20 10:30:06 +00:00
2025-10-17 18:58:14 +00:00
2025-10-20 23:54:56 +03:00
2025-10-23 22:38:40 -06:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-27 08:26:39 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 01:37:41 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 17:49:13 +01:00
2025-10-27 22:54:42 +00:00
2025-10-17 18:58:14 +00:00
2025-10-21 10:43:22 +00:00
2025-10-24 13:25:58 -06:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-26 13:24:26 +00:00
2025-10-27 22:54:42 +00:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-25 20:15:17 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:20:45 -06:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:20:45 -06:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-20 17:20:09 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 13:24:26 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 21:56:57 +02:00
2025-10-27 22:54:42 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 15:24:44 +00:00
2025-10-23 07:37:37 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 02:24:54 +00:00
2025-10-23 16:46:27 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-23 22:38:40 -06:00
2025-10-28 06:44:44 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 06:44:44 +00:00
2025-10-26 12:44:34 +00:00
2025-10-28 06:52:53 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 16:16:16 +01:00
2025-10-24 07:52:51 -04:00
2025-10-23 21:45:48 -03:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:37:37 -06:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:20:45 -06:00
2025-10-27 10:13:26 -04:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:20:45 -06:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 08:26:39 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-24 18:19:53 +02:00
2025-10-22 19:52:38 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-26 10:01:40 +00:00
2025-10-26 13:24:26 +00:00
2025-10-26 12:44:34 +00:00
2025-10-23 04:23:25 +05:30
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-23 16:46:27 +00:00
2025-10-22 19:52:38 +00:00
2025-10-24 07:52:51 -04:00
2025-10-24 14:03:01 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:04:36 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-28 03:07:41 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 20:37:37 -06:00
2025-10-21 11:29:43 +00:00
2025-10-17 18:58:14 +00:00
2025-10-17 18:58:14 +00:00
2025-10-27 23:59:34 -04:00
2025-10-25 01:44:32 +00:00
2025-10-17 18:58:14 +00:00
2025-10-22 19:52:38 +00:00
2025-10-27 22:54:42 +00:00
2025-10-27 22:54:42 +00:00
2025-10-27 22:54:42 +00:00
2025-10-28 01:37:41 +00:00
2025-10-17 18:58:14 +00:00