IDE 2.0 lost all com ports

Hey everybody,
I completely new to Arduino and I have a problem that I cannot find a suitable answer for.

I recently started experimenting with an MKRZERO and IDE 2.0 on Win10 Professional.
First everything was fine, until I bricked the board by stupid code.
I found out how to start the bootloader (double-press) but the IDE would not recognize the board.

After hours I tried the old IDE, the board was found right away and I could upload a new sketch.

But still, IDE 2.0 does not recognize my board.
It does not even show any ports in the selection screen (show all ports is checked).
Since then I uninstalled both IDEs reinstalled, tried nightly builds, deleted the config manually, changed the com port of the board.

Now I´m running out of ideas.
I can use the old IDE but I´d really rather use the new one.

Does anyone have any ideas how to reset IDE 2.0 and convince it to look for available ports?

Thanks a lot
Daniel

Hi @dfeng. Thanks for your interest in the Arduino IDE 2.0.0 release candidate.

I would like to gather some additional information that might assist in the investigation. The first thing I need to know is:
Which operating system are you using?

Oh, damn, forgot the most basic information, sorry.

I´m using Windows 10 Professional.

No worries. You might argue that it is obvious from the mention of the "com port", but I try to avoid making any assumptions since they can sometimes lead to unnecessary confusion.

I'm now going to ask you to provide the output you get from starting the Arduino IDE from the command line.

Please do this:

  1. Start File Explorer (AKA "Windows Explorer").
  2. Open the Arduino IDE installation folder
    (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here".
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type & ".\Arduino IDE".
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  7. Wait for the Arduino IDE to finish starting.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  11. Press Ctrl+C.
    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 </> 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
  14. Press Ctrl+V.
    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.

Aa requested my debug log below...
...let me know if you need anything else.

Thanks for your support and work in general!

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE.exe"
PS C:\Program Files\Arduino IDE>
Starting backend process. PID: 728
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/dfeng/.theia'
root ERROR (node:728) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
root INFO Theia app listening on http://localhost:51433.
root WARN The local plugin referenced by local-dir:/c%3A/Users/dfeng/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/dfeng/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\dfeng\.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO Deploying backend plugin "cortex-debug@0.3.10" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.2-beta.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 73.3 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 202.6 ms
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\dfeng\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.20.2
daemon INFO Executing `arduino-cli daemon`
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO {"IP":"127.0.0.1","Port":"51435"}
daemon INFO Daemon is running.
daemon INFO Checking if CLI is Bundled into the IDE
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\Documents\Arduino\libraries, location: user]
daemon INFO URL: https://downloads.arduino.cc/packages/package_index.json
daemon INFO Updating index [url: https://downloads.arduino.cc/packages/package_index.json]
root INFO Git askpass helper is listening on http://127.0.0.1:51447.
root WARN Frontend CommonFrontendContribution.configure is slow, took: 388.4 ms
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/dompurify
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/safer-buffer
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/multer
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/editor-preview
root WARN Failed to resolve module: @theia/keymaps
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/markdown-it
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/atob
root WARN Failed to resolve module: @types/auth0-js
root WARN Failed to resolve module: @types/btoa
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/keytar
root WARN Failed to resolve module: @types/ncp
root WARN Failed to resolve module: @types/node-fetch
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/react-tabs
root WARN Failed to resolve module: @types/temp
root WARN Failed to resolve module: @types/which
root INFO Updating index: package_index.json completed.
root ERROR Error: Git installation not found.
    at C:\Program Files\Arduino IDE\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69
    at async DefaultGitInit.init (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\theia\git\git-init.js:22:49)
root INFO Updating index: package_index.json.sig completed.
daemon INFO Checking signature [error: opening signature file: open C:\Users\dfeng\AppData\Local\Temp\908494591.sig: Das System kann die angegebene Datei nicht finden., index: C:\Users\dfeng\AppData\Local\Temp\908494591, signaturefile: C:\Users\dfeng\AppData\Local\Temp\908494591.sig]
daemon INFO Updating libraries index
root INFO Updating index: library_index.json.gz completed.
root INFO Updating index: library_index.json.sig completed.
daemon INFO Checking signature [index: C:\Users\dfeng\AppData\Local\Arduino15\package_index.json, signaturefile: C:\Users\dfeng\AppData\Local\Arduino15\package_index.json.sig, trusted: true]
daemon INFO Loading hardware from: C:\Users\dfeng\AppData\Local\Arduino15\packages
daemon INFO Loading package arduino from: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\hardware
daemon INFO Adding monitor tool [protocol: serial, tool: builtin:serial-monitor]
daemon INFO Loaded platform [platform: {ID:"arduino:samd",Installed:"1.8.12",Latest:"1.8.12",Name:"Arduino SAMD Boards (32-bits ARM Cortex-M0+)"}]
daemon INFO Checking existence of 'tools' path: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\tools
daemon INFO Loading tools from dir: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\tools
daemon INFO Loaded tool [tool: Version: 4.5.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]]
daemon INFO Loaded tool [tool: Version: 1.2.0 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: all]]
daemon INFO Loaded tool [tool: Version: 1.2.1 Systems: [OS: i686-linux-gnu, OS: x86_64-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: i686-mingw32]]
daemon INFO Loaded tool [tool: Version: 7-2017q4 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 1.7.0-arduino3 Systems: [OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 0.10.0-arduino7 Systems: [OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu, OS: i386-apple-darwin11, OS: x86_64-linux-gnu, OS: i686-linux-gnu, OS: i686-mingw32]]
daemon INFO Loading package builtin from: C:\Users\dfeng\AppData\Local\Arduino15\packages\builtin
daemon INFO Checking existence of 'tools' path: C:\Users\dfeng\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loading tools from dir: C:\Users\dfeng\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loaded tool [tool: Version: 5.8-arduino11 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 1.0.5 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Loaded tool [tool: Version: 1.3.1 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Loaded tool [tool: Version: 0.9.1 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: arm64-linux-gnueabihf]]
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12\libraries, location: platform]
daemon INFO starting discovery builtin:serial-discovery process
daemon INFO starting discovery builtin:mdns-discovery process
daemon ERROR stopped discovery builtin:serial-discovery decode loop: read |0: file already closed
root ERROR Uncaught Exception:
root ERROR Error: 14 UNAVAILABLE: Error starting board discoveries: [discovery builtin:serial-discovery process not started: exec: "C:\\Users\\dfeng\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\serial-discovery\\1.3.1\\serial-discovery": file does not exist discovery builtin:mdns-discovery process not started: exec: "C:\\Users\\dfeng\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\mdns-discovery\\1.0.5\\mdns-discovery": file does not exist]
    at Object.callErrorFromStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:390:49)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:299:181)
    at C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:145:78
    at processTicksAndRejections (internal/process/task_queues.js:76:11)
root INFO board watch ended
daemon ERROR stopped discovery builtin:mdns-discovery decode loop: read |0: file already closed
daemon INFO boards watcher interrupted by host
root ERROR Request repositories failed with error: Git could not be found at the expected path: 'C:\Program Files\Arduino IDE\resources\app\node_modules\dugite-no-gpl\git\cmd\git.exe'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.
root WARN Frontend EditorNavigationContribution.onStart is slow, took: 1121.4 ms
root INFO Board config changed:
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root ERROR DefaultJsonSchemaContribution.registerSchemas is taking more than 500.0 ms, new schemas are ignored.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249] Waiting for backend deployment took: 202.3 ms [Finished 3.608 s after frontend start]
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316) starting instance
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249] Sync of 5 plugins took: 189.0 ms [Finished 3.797 s after frontend start]
root ERROR Error: Range#create called with invalid arguments[[object Object], [object Object], undefined, undefined]
    at Object.create (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/bundle.js:137300:19)
    at Object.range (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:4715:35)
    at NavigationLocationSimilarity.similar (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:4347:68)
    at NavigationLocationService.isSimilar (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:4203:32)
    at file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:4071:27
    at Array.forEach (<anonymous>)
    at NavigationLocationService.register (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:4065:28)
    at EditorNavigationContribution.onCurrentEditorChanged (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/vendors-node_modules_theia_editor_lib_browser_index_js-node_modules_theia_editor_lib_browser_-6be6b8.bundle.js:1899:32)
    at file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/bundle.js:57015:69
    at CallbackList.invoke (file:///C:/Program%20Files/Arduino%20IDE/resources/app/lib/bundle.js:57021:26)
root INFO <<< The layout has been successfully restored.
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][marus25.cortex-debug]: Loaded contributions.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][arduino.vscode-arduino-tools]: Loaded contributions.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.cpp]: Loaded contributions.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.json]: Loaded contributions.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.json-language-features]: Loaded contributions.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249] Load contributions of 5 plugins took: 81.8 ms [Finished 4.458 s after frontend start]
root INFO Finished loading frontend application after 4.490 seconds
root WARN 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN a registered grammar configuration for 'cpp' language is overridden
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): initializing(cortex-debug@0.3.10 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 14316] Debugger contribution has been registered: cortex-debug
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): initializing(vscode-arduino-tools@0.0.2-beta.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): initializing(cpp@1.52.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): initializing(json@1.46.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): initializing(json-language-features@1.46.1 with C:\Program Files\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node\plugin-vscode-init)
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): PluginManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain)
root INFO [hosted-plugin: 14316] PLUGIN_HOST(14316): PluginManagerExtImpl/loadPlugin(C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle)
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][marus25.cortex-debug]: Started plugin.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][arduino.vscode-arduino-tools]: Started plugin.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.cpp]: Started plugin.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.json]: Started plugin.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249][vscode.json-language-features]: Started plugin.
root INFO [4d591c4f-eb08-4e75-95c3-912db0efe249] Start of 5 plugins took: 543.7 ms [Finished 5.006 s after frontend start]
root INFO Starting language server: arduino:samd:mkrzero
root INFO Changed application state from 'initialized_layout' to 'ready'.
daemon INFO inventory.Store.ConfigFileUsed() C:\Users\dfeng\AppData\Local\Arduino15\inventory.yaml
daemon INFO inventory.Store.ConfigFileUsed() C:\Users\dfeng\AppData\Local\Arduino15\inventory.yaml
daemon INFO Searching tools required for board arduino:samd:mkrzero
daemon INFO Required tool [tool: {ToolName:"CMSIS",ToolVersion:"4.5.0",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"CMSIS-Atmel",ToolVersion:"1.2.0",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"arduinoOTA",ToolVersion:"1.2.1",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"arm-none-eabi-gcc",ToolVersion:"7-2017q4",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"bossac",ToolVersion:"1.7.0-arduino3",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"openocd",ToolVersion:"0.10.0-arduino7",ToolPackager:"arduino"}]
daemon INFO Adding libraries dir [dir: C:\Program Files (x86)\Arduino\libraries, location: ide]
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12\libraries, location: platform]
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\Documents\Arduino\libraries, location: user]
daemon INFO Resolving include SD.h for arch samd
daemon INFO   found better lib [lib: SD, prio: 640]
daemon INFO Resolving include SPI.h for arch samd
daemon INFO   found better lib [lib: SPI, prio: 64C]
daemon INFO Resolving include AudioZero.h for arch samd
daemon INFO   found better lib [lib: AudioZero, prio: 64D]
root ERROR Request repositories failed with error: Git could not be found at the expected path: 'C:\Program Files\Arduino IDE\resources\app\node_modules\dugite-no-gpl\git\cmd\git.exe'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.
daemon INFO inventory.Store.ConfigFileUsed() C:\Users\dfeng\AppData\Local\Arduino15\inventory.yaml
daemon INFO inventory.Store.ConfigFileUsed() C:\Users\dfeng\AppData\Local\Arduino15\inventory.yaml
daemon INFO Searching tools required for board arduino:samd:mkrzero
daemon INFO Required tool [tool: {ToolName:"CMSIS",ToolVersion:"4.5.0",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"CMSIS-Atmel",ToolVersion:"1.2.0",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"arduinoOTA",ToolVersion:"1.2.1",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"arm-none-eabi-gcc",ToolVersion:"7-2017q4",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"bossac",ToolVersion:"1.7.0-arduino3",ToolPackager:"arduino"}]
daemon INFO Required tool [tool: {ToolName:"openocd",ToolVersion:"0.10.0-arduino7",ToolPackager:"arduino"}]
daemon INFO Adding libraries dir [dir: C:\Program Files (x86)\Arduino\libraries, location: ide]
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.12\libraries, location: platform]
daemon INFO Adding libraries dir [dir: C:\Users\dfeng\Documents\Arduino\libraries, location: user]
daemon INFO Resolving include SD.h for arch samd
daemon INFO   found better lib [lib: SD, prio: 640]
daemon INFO Resolving include SPI.h for arch samd
daemon INFO   found better lib [lib: SPI, prio: 64C]
daemon INFO Resolving include AudioZero.h for arch samd
daemon INFO   found better lib [lib: AudioZero, prio: 64D]
root INFO Board config changed:

The problem is here:

daemon INFO starting discovery builtin:serial-discovery process
daemon INFO starting discovery builtin:mdns-discovery process
daemon ERROR stopped discovery builtin:serial-discovery decode loop: read |0: file already closed
root ERROR Uncaught Exception:
root ERROR Error: 14 UNAVAILABLE: Error starting board discoveries: [discovery builtin:serial-discovery process not started: exec: "C:\\Users\\dfeng\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\serial-discovery\\1.3.1\\serial-discovery": file does not exist discovery builtin:mdns-discovery process not started: exec: "C:\\Users\\dfeng\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\mdns-discovery\\1.0.5\\mdns-discovery": file does not exist]
    at Object.callErrorFromStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:390:49)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:299:181)
    at C:\Program Files\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:145:78
    at processTicksAndRejections (internal/process/task_queues.js:76:11)
root INFO board watch ended
daemon ERROR stopped discovery builtin:mdns-discovery decode loop: read |0: file already closed

I have a meeting starting right now, but I'll try to find more information about this later today.

If it helps, both directories contain a "license.txt" only.

Good news!
Your hint was enough to set me on the right track...

I found, that none of the directories...

  • mdns-discovery
  • serial-discovery
  • serial-monitor
    ...contained any executables.

But I found the correct packages under "\AppData\Local\Arduino15\staging\packages".
Once I copied the correct executables into those directories everything worked fine again.

I cannot reproduce, how those files were deleted or why they were not reinstalled, when I reinstalled the IDE.
But anyway, my problem is solved.

Thanks!

Great work on finding the solution! I'm glad it is working now.

I have a suspicion that your antivirus software might have interfered with the installation of these tools, which is done automatically when you start the Arduino IDE.

I found that, even though installation of missing tools is handled automatically, if there is an incomplete installation, then the IDE is not able to recover from that because it considers the tool to be installed if the folder is present.

I submitted a report about it to the Arduino developers:

Hey @dfeng, could you delete the folder C:\Users\dfeng\AppData\Local\Arduino15\packages\builtin\tools\ and provide the Arduino IDE output again?

It's interesting to know why the installation failed but not the download.

Thanks in advance. :pray:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.