Skip to content

Auto Format (Ctrl+T) fails silently if no board is selected #973

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
3 tasks done
FastThenLeft opened this issue Apr 29, 2022 · 2 comments · Fixed by #1019
Closed
3 tasks done

Auto Format (Ctrl+T) fails silently if no board is selected #973

FastThenLeft opened this issue Apr 29, 2022 · 2 comments · Fixed by #1019
Assignees
Labels
conclusion: resolved Issue was resolved topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@FastThenLeft
Copy link

Describe the problem

Auto Format (Ctrl+T) is not working on Ubuntu 22.04 & IDE Version 2.0.0-rc6.

To reproduce

Write some unformatted code and press Ctrl+T or use Tools->Auto Format. Nothing happens.

Expected behavior

The code should be formatted like it was in IDE 1.

Arduino IDE version

2.0.0-rc6

Operating system

Linux

Operating system version

Ubuntu 22.04

Additional context

Is there a package I need to install perhaps?

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
@FastThenLeft FastThenLeft added the type: imperfection Perceived defect in any part of project label Apr 29, 2022
@FastThenLeft
Copy link
Author

I figured out what is happening. It's still a defect, but not as big.

If you do not select which board you are compiling for before you try to auto-format, then it does not work. If you select the board, then auto-formatting works.

@per1234 per1234 changed the title Auto Format (Ctrl+T) not working on Ubuntu 22.04 & IDE Version 2.0.0-rc6 Auto Format (Ctrl+T) fails silently if no board is selected Apr 29, 2022
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label Apr 29, 2022
@per1234 per1234 linked a pull request Jun 8, 2022 that will close this issue
4 tasks
@per1234
Copy link
Contributor

per1234 commented Jun 8, 2022

Thanks so much for your valuable report @FastThenLeft, and especially for taking the time to share the update with your later findings. I'm happy to tell you that this has been fixed by #1019

If you would like to give it a try now, it is in the latest nightly build. The download links for the nightly build are listed here:

https://github.com/arduino/arduino-ide#nightly-builds

Otherwise, it will be in the next release of Arduino IDE 2.x

@per1234 per1234 closed this as completed Jun 8, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Jun 8, 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: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants