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

IDE not compiling if Board manager URL is 404 #2575

Closed
3 tasks done
CWCarlson123 opened this issue Nov 22, 2024 · 6 comments
Closed
3 tasks done

IDE not compiling if Board manager URL is 404 #2575

CWCarlson123 opened this issue Nov 22, 2024 · 6 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@CWCarlson123
Copy link

CWCarlson123 commented Nov 22, 2024

Describe the problem

If the URL (or any path of the URL) in preferences menu for additional boards returns a 404 causes the IDE to not compile. This is indicated by a notification of downloading the package that does not progress.

To reproduce

  1. open a sketch.
  2. Enter a broken URL into the additional board managers URL in the preferences: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json (was broken when I tried this).
  3. attempts to download package.
  4. try to compile

IDE will not compile, it will just sit there with the notification that it is compiling, but never completes.

Expected behavior

Index download process completes even when an index URL returns an error HTTP response status code.

Compilation does not hang even if irrelevant index download fails.

Arduino IDE version

2.3.3

Operating system

Windows

Operating system version

Windows 11

Additional context

No response

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
@CWCarlson123 CWCarlson123 added the type: imperfection Perceived defect in any part of project label Nov 22, 2024
@metehoca
Copy link

i have exactly same problem on win10

@per1234 per1234 self-assigned this Nov 30, 2024
@per1234
Copy link
Contributor

per1234 commented Nov 30, 2024

Thanks for your report @CWCarlson123. I am not able to reproduce the fault.

However, your description:

a notification of downloading the package that does not progress.

IDE will not compile, it will just sit there with the notification that it is compiling, but never completes.

matches exactly with a known bug in Arduino IDE 2.3.3: #2562. This is caused by having Serial Monitor or Serial Plotter open while the IDE performs an index downloaded. It occurs regardless of the success or failure of the index download.

#2562 has already been fixed. The fix was made after the time of the 2.3.3 release, so it is currently only available when using the latest nightly build of Arduino IDE.

@CWCarlson123 and @metehoca please try again using the nightly build of Arduino IDE and then add a comment here to tell us whether the problem of the hanging compilation still occurs. You can download the nightly build from the links listed here:

https://www.arduino.cc/en/software#nightly-builds

You can have Arduino IDE 2.3.3 and the nightly build installed on your computer at the same time without any problems, so you don't need to uninstall Arduino IDE 2.3.3 before installing the nightly.

@per1234 per1234 added topic: code Related to content of the project itself status: waiting for information More information must be provided before work can proceed labels Nov 30, 2024
@metehoca
Copy link

#2562 seems to match this description, but it’s incomplete. The issue persists even without the Serial Monitor being open and also occurs immediately when the IDE is launched. During this time, the "Downloading" balloon gets stuck, and the IDE cannot compile.

As a temporary workaround, I open a new sketch and close the old window. From what I understand, the issue seems to freeze after the last link in the board list is processed.

@per1234
Copy link
Contributor

per1234 commented Nov 30, 2024

Thanks for the information @metehoca. Please try again using the nightly build of Arduino IDE and then add a comment here to tell us whether the problem of the hanging compilation still occurs. You can download the nightly build from the links listed here:

https://www.arduino.cc/en/software#nightly-builds

You can have Arduino IDE 2.3.3 and the nightly build installed on your computer at the same time without any problems, so you don't need to uninstall Arduino IDE 2.3.3 before installing the nightly.

@CWCarlson123
Copy link
Author

CWCarlson123 commented Dec 2, 2024

Thanks for clarification on the issue, I haven't download the nightly build, but decided if I could replicate the issue based on @metehoca's comments:

  1. opened digtialRead serial example. Change input pin type to INPUT_PULLUP;
  2. compile and upload sketch to Nanoevery;
  3. Open serial monitor;
  4. open serial plotter;
  5. With the serial plotter window open, roll the Arduino AVR boards version back to 1.8.5 from the board manager, the download indication balloon just stays there.
  6. The serial plotter window is closed.
  7. When I attempt the re-compile the code, the "Compiling sketch..." balloon appears and compiling does not complete.
  8. Close the serial monitor tab above the output window - the download completes and then the the project then compiles.

So I think the serial monitor tab is holding things up? Closing it seems to fix the issue.

@per1234
Copy link
Contributor

per1234 commented Dec 4, 2024

Thanks for the update. Based on the new information, I see this is a duplicate of #2562 / arduino/arduino-cli#2719. The bug was fixed by #2571, which was released in Arduino IDE 2.3.4. So just update your IDE to 2.3.4 and you will be set.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
@per1234 per1234 added conclusion: duplicate Has already been submitted and removed status: waiting for information More information must be provided before work can proceed labels Dec 4, 2024
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: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants