Skip to content
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

Language server "Building sketch..." spinner seems to hang #709

Closed
sterretjeToo opened this issue Dec 21, 2021 · 11 comments
Closed

Language server "Building sketch..." spinner seems to hang #709

sterretjeToo opened this issue Dec 21, 2021 · 11 comments
Assignees
Labels
conclusion: resolved Issue was resolved criticality: highest Of highest impact topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@sterretjeToo
Copy link

I did try to find this but did not see it.

IDE 1.8.5 is installed as the main IDE, RC2 is installed as a zip. Using Windows 10 home, fully patched.

  1. I left the IDE open last night with a sketch for an Uno Wifi Rev2; this sketch was not saved.
  2. This morning I copied a (non Uno Wifi Rev2) sketch from the forum and pasted it over the existing sketch; the new sketch is 242 lines and contains a error.
  3. I pressed <ctrl>T; this might not be relevant.
  4. I noticed that the status bar showed "building sketch".
  5. More than 30 minutes later, the message was still there; I noticed one message about indexing but that disappeared again.
  6. Closed the IDE and restarted it; empty sketch (no problem for me)
  7. Pasted the forum sketch again
  8. "Building sketch" shows again in the status bar, this time it does not hang and the message inthe status bar disappears.

I would expect the build process of the sketch to complete.

This might just have been a glitch; reported as an observation.

@sterretjeToo sterretjeToo added the type: imperfection Perceived defect in any part of project label Dec 21, 2021
@sterretjeToo sterretjeToo changed the title RC2 Building sketch hangs RC2 Building sketch seems to hang Dec 21, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 21, 2021

There is a related report about the "indexing" stage of the language server sketch processing operation hanging:
#431
I have periodically encountered that one. I don't remember observing a hang at "building" though, so I think it is worth tracking it as a separate issue for now.

@per1234 per1234 added the topic: language server Related to the Arduino Language Server label Dec 21, 2021
@ubidefeo ubidefeo added the criticality: high Of high impact label Apr 21, 2022
@ubidefeo
Copy link

@cmaglie
this is certainly due to the LS being killed by the IDE after a long time.

@sterretjeToo
we are still looking for the source of the issue, but essentially a kill command is sent tot he language server at unpredictable times.
The criticality of this bug has been upped.

@cmaglie cmaglie added criticality: highest Of highest impact and removed criticality: high Of high impact labels May 16, 2022
@cmaglie cmaglie changed the title RC2 Building sketch seems to hang Language server "Building sketch..." spinner seems to hang May 16, 2022
@fstasi
Copy link
Contributor

fstasi commented Jun 8, 2022

this should be fixed with IDE rc7

@per1234
Copy link
Contributor

per1234 commented Jun 9, 2022

@fstasi I looked at the 2.0.0-rc7 release PR (#1027) and it doesn't appear there is anything in it that could possibly affect this behavior (it only updates the version metadata).

Was it #1021 that is expected to fix this issue?

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jun 9, 2022
@qwertychouskie
Copy link

This could also be related to #714

@per1234
Copy link
Contributor

per1234 commented Jul 10, 2022

@fstasi please answer the question I asked above.

@per1234
Copy link
Contributor

per1234 commented Aug 24, 2022

Hi @sterretjeToo are you still experiencing this problem?

Some very significant language server improvements have been made since the time of the report (e.g., #738, #1019, #1107, #1255). It is possible one of those also fixed this issue.

@per1234 per1234 assigned per1234 and unassigned cmaglie Aug 24, 2022
@per1234
Copy link
Contributor

per1234 commented Oct 11, 2022

Hi @sterretjeToo. Please let us know whether you are still experiencing this problem when using the latest version of Arduino IDE.

@per1234
Copy link
Contributor

per1234 commented Nov 26, 2022

Closing due to lack of response.

@sterretjeToo if you will provide the requested information by commenting here, I'll be happy to re-open this issue.

@per1234 per1234 closed this as completed Nov 26, 2022
@per1234 per1234 added conclusion: resolved Issue was resolved and removed status: waiting for information More information must be provided before work can proceed labels Nov 26, 2022
@sterretjeToo
Copy link
Author

I do apologise for not responding. For some reason I never realised that there was a question :(

Issue can be/stay closed, happily using 2.0.2 at the moment without this issue.

@theticraft
Copy link

theticraft commented Nov 16, 2024

Somehow, I get the same issue in a later version (IDE 2.3.3). After restarting, it is working again. Is there a solution that got somehow destroyed accidentally?

The workaround mentioned in #714 works, but really can't be the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved criticality: highest Of highest impact 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

7 participants