Skip to content

Serial Monitor swallowing leading and repeated spaces #535

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

Closed
paulwas opened this issue Oct 8, 2021 · 5 comments · Fixed by #943
Closed

Serial Monitor swallowing leading and repeated spaces #535

paulwas opened this issue Oct 8, 2021 · 5 comments · Fixed by #943
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@paulwas
Copy link

paulwas commented Oct 8, 2021

Describe the bug
Today I copied the nightly build files (arduino-ide_nightly-20211008_Windows_64bit) and launched the Arduino IDE to continue work on my current project. I'm outputting a lot of formatted data via the Serial Port to the Serial Monitor (115200 baud) and have been using this IDE (2.0 Beta) for a number of weeks. The Serial Monitor has been working fine until last nights build. Now all the leading spaces have disappeared. So for example:
This output:

Events:
  List 'E'
  Add  'EA mm/dd/yyyy rr Annual|Once Description..'
  Edit 'EE nn [mm/dd/yyyy] | [rr] | [Annual|Once] | [Description..]'
  Del  'ED nn'
Time/Date:
  Get  'T'
  Set  'T [mm/dd/yyyy][hh:mm[:ss][am/pm]]'

Now looks like this:

Events:
List 'E'
Add  'EA mm/dd/yyyy rr Annual|Once Description..'
Edit 'EE nn [mm/dd/yyyy] | [rr] | [Annual|Once] | [Description..]'
Del  'ED nn'
Time/Date:
Get  'T'
Set  'T [mm/dd/yyyy][hh:mm[:ss][am/pm]]'

To Reproduce
Steps to reproduce the behavior:

  1. Serial.print(" xyz");
  2. Output looks like this "xyz"

Expected behavior
The serial output should now swallow any characters that are output.
Output should look like this " xyz"

Desktop (please complete the following information):

  • OS:
    Edition Windows 10 Pro
    Version 21H1
    Installed on ‎1/‎16/‎2021
    OS build 19043.1237
    Serial number 011754392857
    Experience Windows Feature Experience Pack 120.2212.3530.0
  • Version: arduino-ide_nightly-20211008_Windows_64bit
@paulwas paulwas added the type: imperfection Perceived defect in any part of project label Oct 8, 2021
@per1234 per1234 added the topic: serial monitor Related to the Serial Monitor label Oct 8, 2021
@paulwas
Copy link
Author

paulwas commented Oct 8, 2021

Just realized it's also converting multiple spaces to a single space.
So all formatted output is impossible.

@paulwas
Copy link
Author

paulwas commented Oct 14, 2021

This was enough of a deal-breaker that I went back to Beta 11 until it gets fixed.

@per1234 per1234 added the topic: code Related to content of the project itself label Oct 24, 2021
@per1234 per1234 changed the title Serial Monitor swallowing leading spaces (arduino-ide_nightly-20211008_Windows_64bit) Serial Monitor swallowing leading spaces Jan 5, 2022
@tomjennings
Copy link

Same here. 1.8.19, vs 2.0, all multiple spaces suppressed.

Here's a snapshot of a "datascope" in 1.8.19:
Screen Shot 2022-01-05 at 11 01 33

And the same sketch running in 2.0:
Screen Shot 2022-01-05 at 11 03 18

Also jamming serial monitor into the tiny compiler-output area is a related fail as well, but a separate issue.

@per1234 per1234 changed the title Serial Monitor swallowing leading spaces Serial Monitor swallowing leading and repeated spaces Feb 18, 2022
@UKHeliBob
Copy link

Tab commands in print statements are also apparently ignored or at least reduced to a single space by this problem which gives the same effect

@per1234
Copy link
Contributor

per1234 commented Feb 18, 2022

Tab commands

There is a dedicated issue about the problem with tabs: #675

(though I think it is likely these two issues are only different symptoms of the same bug)

@fstasi fstasi assigned AlbyIanna and unassigned fstasi Mar 24, 2022
@per1234 per1234 linked a pull request Apr 6, 2022 that will close this issue
4 tasks
@per1234 per1234 added the conclusion: resolved Issue was resolved label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants