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 won't start if proxy configuration is invalid #1692

Open
3 tasks done
Toy-Jie opened this issue Nov 18, 2022 · 1 comment
Open
3 tasks done

IDE won't start if proxy configuration is invalid #1692

Toy-Jie opened this issue Nov 18, 2022 · 1 comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Toy-Jie
Copy link

Toy-Jie commented Nov 18, 2022

Describe the problem

image
Stuck on load page, My last configuration is to set the proxy service

To reproduce

Set the proxy service 127.0.0.1, but the proxy is unavailable. Click Update Library, and it will be stuck on the start page after restart

Expected behavior

Arduino IDE starts up even if unable to access the network due to an invalid proxy configuration.

The user is able to correct their proxy configuration.

Arduino IDE version

2.0.2

Operating system

Windows

Operating system version

win10 21H2

Additional context

Additional reports

Related

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
@Toy-Jie Toy-Jie added the type: imperfection Perceived defect in any part of project label Nov 18, 2022
@per1234
Copy link
Contributor

per1234 commented Nov 18, 2022

Hi @Toy-Jie. Thanks for your report.

The fault is the same as #1438. However, the path to the fault is different in that #1438 is about the IDE not starting due to not having a required proxy configured (which might be solved for most users by adding an automatic proxy configuration capability: #29), while your issue is about the IDE not starting because the user's manual proxy configuration is invalid. In this case, the only solution is to make the IDE resilient enough to this condition to allow the user to access the Preferences dialog to update the manual proxy configuration.

Workaround

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Use any text editor to open the file at the following path:
    • Windows:
      C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
      
      (where <username> is your Windows username)
    • Linux:
      ~/.arduinoIDE/arduino-cli.yaml
      
      ❗ The ~/.arduinoIDE/ folder may be hidden by default in your file manager and terminal.
    • macOS:
      ~/.arduinoIDE/arduino-cli.yaml
      
      ❗ The ~/.arduinoIDE/ folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
  3. Update the lines in the file that have this format:
    network:
      proxy: <proxy scheme>://<username>:<password>@<proxy address>:<port>
      user_agent_ext: daemon
    Where the placeholders are:
    • <proxy scheme>: the URL scheme for your proxy server.
      One of the following;
      • http
      • socks5
    • <username>: the username of your proxy server credentials.
    • <password>: the password of your proxy server credentials.
    • <proxy address>: the address of your proxy server.
    • <port>: the port of your proxy server.
      If you no longer need to use a proxy, just delete those lines entirely.
  4. Save the file.
  5. Start Arduino IDE.

@per1234 per1234 added the topic: code Related to content of the project itself label Nov 18, 2022
@per1234 per1234 changed the title Stuck on load page IDE won't start if proxy configuration is invalid Nov 18, 2022
@kittaakos kittaakos self-assigned this Nov 18, 2022
@kittaakos kittaakos removed their assignment Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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