"安裝 Arduino Extension for VS code 時,如果遇到 “Cannot find Arduino tools. Use Arduino CLI bundled with this extension instead?”錯誤訊息。
請嘗試以下方法解決此問題。
解決步驟:
- 安裝 Arduino-CLI 版本
- 參考這個文件 https://arduino.github.io/arduino-cli/0.19/installation/
- 直接下載Mac OS 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_macOS_64bit.tar.gz
- 直接下載Linux 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
- 直接下載Windows 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip
- 下載後在 Terminal 下測試安裝是否成功
- >arduino-cli version
- arduino-cli Version: 0.30.0 Commit: 83700ca2 Date: 2023-02-08T14:48:15Z (OK)
- 從 VS Code 菜單中選擇
- 檔案 -> 偏好設定 -> 設定
- 在使用者和工作區設定中
- Arduino: command path -> 保持為空白
- Arduino: path -> 保持為空白
- Arduino: Use Arduino Cli -> 勾選“Use Arduino CLI installed instated of the legacy Arduino IDE”
- 重新啟動 VS code
============ ENGLISH =====================
When install Arduino Extension for VS code, if you encountered "Cannot find Arduino tools. Use Arduino CLI bundled with this extension instead?" error message. Try this to fix it.
Steps to fix:
- Install Arduino-CLI version
- For complete doc: https://arduino.github.io/arduino-cli/0.19/installation/
- Download Mac OS 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_macOS_64bit.tar.gz
- Download Linux 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz
- Download Windows 64bit: https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Windows_64bit.zip
- Test Arduino-cli installation correctness by running the command below at terminal
- >arduino-cli version
- arduino-cli Version: 0.30.0 Commit: 83700ca2 Date: 2023-02-08T14:48:15Z (OK)
- From VS code menu
- Files -> Preference -> Settings
- In bot User & Workspace
- Arduino: command path -> leave it empty
- Arduino: path -> leave it empty
- Arduino: Use Arduino Cli -> tick "Use Arduino CLI installed instated of the legacy Arduino IDE"
- Restart VS code
No comments:
Post a Comment