-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Compiler Never terminates if compilation error occurs #2085
Comments
Hi @marcusobrien. Thanks for taking the time to submit an issue. I believe this is caused by a bug in the Arduino CLI tool that handles the compilation for Arduino IDE: arduino/arduino-cli#2169 That bug has already been fixed in Arduino CLI, so the only work that remains is to update the version of Arduino CLI used by Arduino IDE, which is already in progress: #2083 If you would like, you can test that fix by downloading the tester build for #2083. There are instructions for doing that here: |
Hi @per1234 - thanks for the info - I followed the instructions - but this doesnt fix my bug of control returning back to the Application I downloaded and installed the Windows zip from this page And I used this version (taken from the About Menu) - the 0.33.0 matches the above page version so its the right CLI I tested - just doesnt do anything different to what it did before - never terminates. Version: 2.1.1-snapshot-f6453a1 Copyright © 2023 Arduino SA |
Thanks so much for testing the potential fix and reporting your results. It is unfortunate the fault still occurs for you. Does the problem of the IDE not returning to a usable state after compilation error occur for any sketch compiled for any board, or is it specific to the board and project you mentioned?:
For example, what happens if you select Tools > Board > Arduino AVR Boards > Arduino UNO from the Arduino IDE menus and then compile this sketch?: void setup() {
oops
}
void loop() {} |
Hi, Using the simple project with the Uno as the target (but no real target is connected - so executing compile not upload from the GUI) , causes the IDE to fails to compile and then the compilation phase terminates excatly as expected (so the fauilt is not replicated in that simple project/sketch case). I noticed on the instance of the IDE that is failing - the LVGL and ESP32S3, this session is complaining about the language server when I open the sketch. Then the compilation phase starts working ie it starts to build the project, then the link phase fails (due to undefined reference), then the toolchain never terminates (linker I presume ?). If there is no board connected then the compialtion phase does terminate on my project also ie with ESP32 S3 and LVGL - so the problem is easier to reproduce when their is a target connected, so maybe its that ? |
If you compile that simple sketch from my previous comment for the ESP32-S3 board, does the problem of the IDE not returning to a usable state after a compilation error occur?
Please provide the full and exact text of any error or warning messages you are getting about the language server.
Are you clicking the tick mark button ("Verify") or the right arrow button ("Upload")? I was under the impression the fault was occurring when clicking the "Verify" button because you mentioned it in the introduction of your original report:
but I now see you mention using the "Upload" button later in the report:
We do have a previous report related to this type of fault occurring during an upload: As well as some related reports:
But those are a bit different in that the fault is occurring after a successful compilation phase. I was actually hoping that #2083 would fix those issues as well (I can't reproduce #1801 et al. so I can't check it myself). |
Hi @marcusobrien. We are still waiting for you to provide the information requested in the previous reply so that we can proceed with the investigation or evaluation of this. Please comment here to provide the requested information. |
Hi everyone, this issue has been plaguing my workflow for quite some time: on compilation error, the IDE becomes unusable and needs to be closed from task manager. I just installed the latest Arduino IDE 2.3.2, with ESP32 2.0.14. On compilation error, press close window, save [yes/no] doesn't matter, and the window doesn't even close. EDIT: there are rare moments when I fail to reproduce this behavior. |
Describe the problem
Have a ESP32 sketch loaded. Hit the compile Button (tick mark top left on IDE GUI), the system compiles the sketch - but encounters an error, reports the error through the output terminal, and compilation has stopped - but GUI has not registered this state change, so the GUI has
To reproduce
Only was to now recover is reset application ie close it and re-open
Expected behavior
Should be able to re-compile when compilations has stopped, without having to shut down and restart the IDE
Arduino IDE version
2.1.0
Operating system
Windows
Operating system version
10
Additional context
Compiling project for ESP32S3 using libraries GFX and LVGL
Issue checklist
The text was updated successfully, but these errors were encountered: