Set-Location : A positional parameter cannot be found that accepts argument 'Files\Arduino'.
At line:1 char:1
+ Set-Location -literalPath C:\Program Files\Arduino IDE
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Location], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
PS C:\WINDOWS\system32> & ".\Arduino IDE"
& : The term '.\Arduino IDE' is not recognized as the name of a cmdlet, function, script file, or operable program. Che
ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & ".\Arduino IDE"
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\Arduino IDE:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\WINDOWS\system32>
Totally new with arduino. Coukd some one help me. It hangs by start up
PS C:\Users\super\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\super\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: C:\Users\super\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\super\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:03:03.490Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:03:03.490Z"}
Starting backend process. PID: 15944
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/super/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2025-01-15T18:14:14.198Z root INFO Backend Object.initialize: 4.7 ms [Finished 0.571 s after backend start]
2025-01-15T18:14:14.199Z root INFO Backend Object.configure: 4.0 ms [Finished 0.571 s after backend start]
2025-01-15T18:14:14.199Z root INFO Backend s.onStart: 2.3 ms [Finished 0.571 s after backend start]
2025-01-15T18:14:14.200Z root INFO Backend s.configure: 0.3 ms [Finished 0.594 s after backend start]
2025-01-15T18:14:14.201Z root INFO Backend d.onStart: 0.2 ms [Finished 0.594 s after backend start]
2025-01-15T18:14:14.201Z root INFO Backend d.configure: 0.1 ms [Finished 0.594 s after backend start]
2025-01-15T18:14:14.202Z root INFO Backend d.initialize: 22.7 ms [Finished 0.594 s after backend start]
2025-01-15T18:14:14.202Z root INFO Backend c.onStart: 0.3 ms [Finished 0.594 s after backend start]
2025-01-15T18:14:14.203Z root INFO Backend a.configure: 1.5 ms [Finished 0.596 s after backend start]
Hi @1973tazman. Are you sure there isn't ever any more text than that in the PowerShell terminal?
I ask because the IDE usually produces many more lines of text than what you shared, even in the case where it hangs on startup. The output usually contains an error message that gives us a clue about the cause of the hang, but your output doesn't contain any error at all.
Versions of Marlin older than 2.0.0 placed all the code files in the root of the sketch folder. Arduino IDE opens all the sketch files from the root folder in editor tabs. In the case of Marlin, that means opening hundreds of tabs. Unfortunately doing that in Arduino IDE 2.x uses a lot of resources. This is the cause of the problem.
As a workaround, you can prevent the IDE from attempting to open Marlin on startup by making Arduino IDE open a benign sketch. I'll provide instructions:
Start Windows "File Explorer".
Open the Arduino IDE installation folder.
In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
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.
After that, you should be able to start Arduino IDE normally because Marlin will no longer be the sketch it tries to open on startup.
The problem will occur again if you close Arduino IDE while the "Marlin" sketch is open, but at least now you will know how to restore Arduino IDE to functionality once more.
The ideal workaround would be to use a modern version of Marlin. Starting from version 2.0.0 of Marlin, the developers moved almost all the source files of the sketch to a subfolder, leaving only the few user configuration files in the root of the sketch folder for easy access for editing via the IDE. Arduino IDE does not automatically open files from the subfolders of the sketch, so the modern versions of Marlin don't cause this problem for Arduino IDE.