Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Shouldn't need to set commandPath if useArduinoCli is true #1245

Closed
calebho opened this issue Apr 25, 2021 · 3 comments
Closed

Shouldn't need to set commandPath if useArduinoCli is true #1245

calebho opened this issue Apr 25, 2021 · 3 comments
Labels
integration needs-more-info More details about this issue are needed for it to be actionable. stale

Comments

@calebho
Copy link

calebho commented Apr 25, 2021

Seems like #1227 fixes some of the path issues on Mac, but the getter commandPath still joins the Arduino app path which defaults to "/Contents/MacOS/Arduino" if it is empty. This causes IntelliSense to fail which I commented on #1235.

[Starting] Analyzing sketch '03-love-o-meter/03-love-o-meter.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
[Warning] Failed to generate IntelliSense configuration.
[Error] Analyzing sketch '03-love-o-meter/03-love-o-meter.ino': {"error":{"errno":"ENOENT","code":"ENOENT","syscall":"spawn /usr/local/bin/Contents/MacOS/Arduino","path":"/usr/local/bin/Contents/MacOS/Arduino","spawnargs":["compile","-b","arduino:avr:uno","--verbose","/Users/calebho/work/arduino/starter-kit/03-love-o-meter/03-love-o-meter.ino"]}}

The issue is "syscall":"spawn /usr/local/bin/Contents/MacOS/Arduino" which causes ENOENT.

Was able to workaround by setting commandPath = arduino-cli for now.

Extension version:

Name: Arduino
Id: vsciot-vscode.vscode-arduino
Description: Arduino for Visual Studio Code
Version: 0.4.2
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino

Working relevant configuration:

    "arduino.path": "/usr/local/bin",
    "arduino.useArduinoCli": true,
    "arduino.commandPath": "arduino-cli
@benmcmorran
Copy link
Member

Thanks for the feedback. The recent v0.5.0 release of the extension includes a bundled copy of Arduino CLI that should make it much easier to use the Arduino CLI without setting arduino.commandPath.

@benmcmorran benmcmorran added needs-more-info More details about this issue are needed for it to be actionable. integration labels Feb 16, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Mar 19, 2023
@github-actions
Copy link

This issue has been automatically closed due to inactivity. If you are still experiencing problems, please open a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
integration needs-more-info More details about this issue are needed for it to be actionable. stale
Projects
None yet
Development

No branches or pull requests

2 participants