Skip to content

pressing Ctrl-T for autoformatting creates 80% processor-load through clang takes more than a minute #1008

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
StefanL38 opened this issue May 27, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@StefanL38
Copy link

Describe the problem

I tested Arduino IDE 0.2 - oh sorry IDE 2.0 - today.

I loaded the blink example saved with a different filename and added a variable and an if-condition
I intentionally misplaced the added code to be clumsy indented for testing the auto-format function

I hit Ctrl-T - nothing happened
maybe after 20 seconds the status said "indexing" for more than a minute
then the status said "building sketch" for more than a minute
clang.exe took 80% processor-load

for me this is absolutely inacceptable

To reproduce

use my computer

Expected behavior

fast execution of autoformatting

Arduino IDE version

2.0 rc6

Operating system

Windows

Operating system version

Windows 10 update tonight by compulsion

Additional context

sorry guys guys this is not imperfection. This behaviour is almost perfect imperfection

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
@StefanL38 StefanL38 added the type: imperfection Perceived defect in any part of project label May 27, 2022
@per1234 per1234 self-assigned this May 27, 2022
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label May 27, 2022
@per1234
Copy link
Contributor

per1234 commented May 27, 2022

Hi @StefanL38. Thanks for taking the time to submit an issue.

I hit Ctrl-T - nothing happened

I see we have a previous report about this at #337.

maybe after 20 seconds the status said "indexing" for more than a minute
then the status said "building sketch" for more than a minute
clang.exe took 80% processor-load

I see we have a previous report about this at #714.

It is 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 others.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2022
@per1234 per1234 added the conclusion: duplicate Has already been submitted label May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants