IDE hangs on startup after removing OneDrive

2.3.0 was working, I tried to remove OneDrive from my computer which I hate in every possible way. Now 2.3.0 hangs. 1.8.18 loads fine. Reinstalled 2.3.0 still hangs.

I see other discussions over 2023 but no solutions. In my opinion the IDE should never tie to OneDrive.

Ideas?

Lee

I moved your topic to an appropriate forum category @lsdobyns.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @lsdobyns.

It doesn't really. What it does is use the user "Documents" folder as specified by Windows. Windows puts the "Documents' folder on OneDrive when that service is enabled, which indirectly causes Arduino IDE to use a path on OneDrive.

Windows should automatically switch to using a different location for the "Documents" folder after the user disables OneDrive, but it seems that under some unknown conditions that doesn't happen (I haven't been able to reproduce it despite some trying, but other users have reported it) and you end with an invalid Windows configuration for your "Documents" folder, which then breaks Arduino IDE.

I am assuming that is the problem you are having, but would like to verify it. Toward that goal, I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  5. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

A post was split to a new topic: IDE hangs on startup: "openpgp: signature expired"