Skip to content

[Bug] IDE adds additional characters when commenting out the code #10935

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
rtek1000 opened this issue Nov 8, 2020 · 3 comments
Closed

[Bug] IDE adds additional characters when commenting out the code #10935

rtek1000 opened this issue Nov 8, 2020 · 3 comments
Labels
Component: IDE user interface The Arduino IDE's user interface Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic

Comments

@rtek1000
Copy link

rtek1000 commented Nov 8, 2020

Hi,

I'm having problems with the Arduino IDE:

  • When I open the IDE through the start menu, the IDE works normally,
  • But after opening through the sketch (* .ino file), when using the shortcut "Ctrl+/", the IDE adds an additional bar.

The additional bar is inserted wherever the cursor is, if a block is selected to be commented, then the additional bar replaces the entire block.

Examples of the problem:

Initial code:

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

Commenting with cursor before "void":

 ///void setup() {
   // put your setup code here, to run once:

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

Commenting with cursor before "setup":

 //void /setup() {
   // put your setup code here, to run once:

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

Commenting the "setup" routine block:

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

O.S.: Linux Xubuntu:

$cat /etc/os-release

NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

@per1234
Copy link
Collaborator

per1234 commented Nov 8, 2020

Thanks for your report @rtek1000!

Which version of the Arduino IDE are you using?

Did you install it from the official download on the Arduino IDE website (https://www.arduino.cc/en/Main/Software), or via a package manager (e.g., Snap, Brew, APT)?

@per1234 per1234 added Component: IDE The Arduino IDE Component: IDE user interface The Arduino IDE's user interface Type: Bug labels Nov 8, 2020
@rtek1000
Copy link
Author

rtek1000 commented Nov 8, 2020

Hi,

IDE v.: 1.8.13,

I downloaded the linux package and installed it via installer.

https://www.arduino.cc/en/Guide/Linux

Thank you.

@per1234
Copy link
Collaborator

per1234 commented Mar 29, 2021

I see now that we already have a prior issue report about this at #5464.

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.
If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Mar 29, 2021
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Component: IDE The Arduino IDE Type: Bug Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants