Skip to content

Really long lines result in going to next line in error. #2130

@opticaldrive

Description

@opticaldrive

Describe the problem

Follow instructions in "to reproduce"
The ');' is bumped down to the next line even though there is so much space.
Same case for the Serial print. It should be on the same line until end of the window.

Screen Shot 2023-07-07 at 1 57 43 PM

let me know If not clear enough.
Thank you.

To reproduce

Info:
Arduino IDE 2.1.1
OS: MacOS
OS version: macOS Monterey 12.6.2
Language: English
Open Arduino IDE 2.
Paste this into a new sketch:

/*
  Test
  By V205
*/



void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200); // begin serial comunication.
  delay(1000);
  Serial.println(F("STARTING " __FILE__ " from " __DATE__ __TIME__));
  //delay(9000);
  // while (mySgp40.begin(/*duration = */ 10000) != true) {
  //   Serial.println(F("failed to connect to SGP 40 , please check the wiring")); // why is this on a new line? Why is it commented?
  //   delay(1000);
  // }
  Serial.println("This Is a Really Long Line..............Results in errors....................");
}

void loop() {
  // put your main code here, to run repeatedly:

}

Expected behavior

I would expect the serial print to be on one line until the end of the window.
I would expect the ); to be on the previous line.
Let me know if you need more info.
Screen Shot 2023-07-07 at 1 57 43 PM

Arduino IDE version

2.1.1

Operating system

macOS

Operating system version

12.6.2

Additional context

Sorry, but I did not use the nightly build because I have not installed it yet.

Issue checklist

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

Metadata

Metadata

Assignees

Labels

conclusion: invalidIssue/PR not validtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions