arduino-ide icon indicating copy to clipboard operation
arduino-ide copied to clipboard

Serial monitor selection range shifts chaotically upon scroll

Open boundmaidlea opened this issue 2 years ago • 10 comments

Describe the problem

When selecting text on the serial monitor (with the connected device paused) upon scroll the range of the selection shifts in unpredictable patterns (at least i didn't see a reproducable pattern) which prevents selecting more then one page of the output. As of #812/#105 using ctrl+a is also not an option to select text in that tab.

As i do not have the problem of new text triggering a redraw which removes the selection, i do not consider this a duplicate of #812/#105, but feel free to correct me.

To reproduce

  • print multiple pages text on the serial monitor once e.g. in the setup() function.
  • when all text is received select a bit of it
  • scroll the output up and down a bit

Expected behavior

The selection should stay between the first and last selected characters, and not randomly jump around.

Arduino IDE version

Original report

2.0.0-rc7-nightly-20220615

Last verified with

9a6a457bc44fb16f646b9e61a9e8b336b3666412

Operating system

Windows

Operating system version

10.0.19044.1706 Pro

Additional context

My Nightly Build is 4 days old, but the 3 commits since then do not have any relations to this issue.

Additional reports

  • https://github.com/arduino/arduino-ide/issues/1710
  • https://github.com/arduino/arduino-ide/issues/1817
  • https://github.com/arduino/arduino-ide/issues/2262
  • https://github.com/arduino/arduino-ide/issues/2431
  • https://github.com/arduino/arduino-ide/issues/2098#issuecomment-2131369133
  • https://github.com/arduino/arduino-ide/issues/2520
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/1
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/19
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/30
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/34
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/35
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/37
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/39
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/49
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/50
  • https://forum.arduino.cc/t/copy-paste-data-from-the-serial-monitor/1041585/60
  • https://forum.arduino.cc/t/copying-from-serial-monitor/1071503/1
  • https://forum.arduino.cc/t/copying-from-serial-monitor/1071503/6
  • https://forum.arduino.cc/t/copying-from-serial-monitor/1071503/8
  • https://forum.arduino.cc/t/coping-multiple-lines-on-monitor-screen/1019346
  • https://forum.arduino.cc/t/copy-paste-serial-monitor-not-possible-options/1058964
  • https://forum.arduino.cc/t/why-does-click-into-serial-monitor-ctrl-a-mark-the-source-code/1128016
  • https://forum.arduino.cc/t/text-selection-broken-in-ide-serial-monitor-2-1-1/1160156
  • https://forum.arduino.cc/t/how-can-i-copy-the-whole-content-of-the-serial-monitor/1168904/2
  • https://forum.arduino.cc/t/how-to-copy-entire-serial-monitor-output/1175060
  • https://forum.arduino.cc/t/your-reason-for-not-switching-to-the-2-x-ide/1176322/47
  • https://forum.arduino.cc/t/copy-paste-from-serial-monitor/1179986
  • https://forum.arduino.cc/t/exception-decoder/1055759/9

Issue checklist

  • [X] I searched for previous reports in the issue tracker
  • [X] I verified the problem still occurs when using the latest nightly build
  • [X] My report contains all necessary details

boundmaidlea avatar Jun 19 '22 05:06 boundmaidlea

I also just found #247 which is similar but seems unrelated

boundmaidlea avatar Jun 19 '22 06:06 boundmaidlea

I have been noticing the same thing as well, as when it scrolls, it often only appears to only copy the stuff that is visible on the screen at the time... Have not completely verified that exactly, but that is how it feels.

I was trying to decide if I should append that to my previous issue #812 but saw this one which was more specific

KurtE avatar Jul 07 '22 13:07 KurtE

I too noticed the various issues mentioned and referred to here. Features aside, which are nice, the things I would consider bugs (anything around selecting and copying the output) are quite limiting at least my experience with the serial monitor and its possible use cases. Right now it is only useful for slow, continuous output. Anything you want to analyze more or even dump is quite bothersome with the serial monitor as it now. One could dump this using an external program, however at least on linux the serial device can only be used by a singular process. So you are forced to close the IDE entirely.

InstantMuffin avatar Aug 12 '22 16:08 InstantMuffin

Experiencing the same problem - I have a lot of data printed to the serial monitor. When I highlight all of it and try to copy paste, it only copy pastes the last few lines of the output. Have no idea what's going on

aarush3002 avatar Oct 22 '22 08:10 aarush3002

Is there any update on the issue of copying text from the Serial Monitor? I'm trying to decode an IR remote control, and there is a lot of info that I can't copy to a text editor, because only what's visible on the screen gets copied.

Jeff-Haas avatar Jan 18 '23 03:01 Jeff-Haas

I am also interested about the fix! Here the system: Linux Xubuntu 20.04.5, Arduino IDE 2.0.3. Selection jumps by scrolling, CTRL+A selects the Code instead of the LOG, even if the Serial Terminal is clicked or text is partly selected!

All together it is awfully slowwww, compared to 1.8.* series but fancy. Without usefulness it is just a nice toy, not a Tool.

Top of this issues, the library editor and the SerialMonitor should be detachable from the main program screen. It is a dumb stupid way of thinking to glue them together and waste the screen area. We can tile windows if we want, and maybe a good feature to dock them, but now one can grab the tab-of-SerialMonitor but cannot drop it anywhere out of editor window...

Mishy1973 avatar Jan 23 '23 16:01 Mishy1973

I am surprised that this issue is classified as "[type: imperfection]" only. Actually this is a big issue as one cannot collect the data that comes in from serial monitor.

chonuchan avatar Jan 25 '23 16:01 chonuchan

I would say not only a possibility to select, is needed, but that would be really basic function to get a <Save Output> button for instant Save. Either by predefined format (like "%Y%m%d_%H%M%S.$projectname.log" or whatever) into a preset folder. Or if it is complicated to implement, simply open a FileOpen/Save dialog for the user.

Mishy1973 avatar Jan 26 '23 09:01 Mishy1973

I am surprised that this issue is classified as "[type: imperfection]" only.

You misunderstand the meaning of the label @chonuchan. The "type: imperfection" label identifies items related to any defect whatsoever. The name was intentionally chosen to be applicable to any component of the project, at any severity on the spectrum from "missing comma in the readme" to "Skynet is waging war on humanity".

The label does not in any way indicate level of severity. We have a separate set of "criticality" labels for that purpose. "criticality" labels are assigned by a manager during the planning process, while "type" labels are assigned by a maintainer during triage.

get a button for instant Save. Either by predefined format (like "%Y%m%d_%H%M%S.$projectname.log" or whatever) into a preset folder. Or if it is complicated to implement, simply open a FileOpen/Save dialog for the user.

We have a dedicated issue for that proposal: https://github.com/arduino/arduino-ide/issues/549


Please, everyone, this is getting noisy and off topic. Please only comment if you have some significant information to add that is directly relevant to the resolution of the issue.

If you only want to express your support, please use GitHub's "Reactions" feature to add a thumbs up on the issue or comment you agree with.

per1234 avatar Jan 26 '23 09:01 per1234

Please, everyone, this is getting noisy and off topic.

I has been another 8 months. No noise, no off topic, no updates, no fixes, no reversion to the way it worked in 1.x

It used to be a good serial monitor, now it is essentially useless for more than a year. Are you going to look at this? Is this actually something you work on? Can you give us feedback?

Eheran1 avatar Aug 23 '23 11:08 Eheran1