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)))