You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Therefore, this is the state at the above code block: usingBundledArduinoCli is false arduinoPath is equivalent to false
because I don't have the Arduino app installed, and useArduinoCli is true, validateArduinoPath(arduinoPath, useArduinoCli) will always return empty string a.k.a false.
So, the if statement will always be true, despite the fact that Arduino IDE is not desired.
My suggestion to fixing the bug is to change the if statement to the following:
if (!usingBundledArduinoCli && !useArduinoCli && (!arduinoPath || !validateArduinoPath(arduinoPath, useArduinoCli)))
I will post this fix in a pull request soon.
The text was updated successfully, but these errors were encountered:
lersi
added a commit
to lersi/vscode-arduino
that referenced
this issue
Feb 1, 2024
When I configure my settings to use custom Arduino CLI, it always shows that there is invalid Arduino path.
I have managed to trace the bug to the following code block in file
src/extension.ts
at line 126:I have set the following setting in
settings.json
:Therefore, this is the state at the above code block:
usingBundledArduinoCli
isfalse
arduinoPath
is equivalent tofalse
because I don't have the Arduino app installed, and
useArduinoCli
istrue
,validateArduinoPath(arduinoPath, useArduinoCli)
will always return empty string a.k.afalse
.So, the if statement will always be true, despite the fact that Arduino IDE is not desired.
My suggestion to fixing the bug is to change the if statement to the following:
I will post this fix in a pull request soon.
The text was updated successfully, but these errors were encountered: