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

Fix commandPath issues #1443

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

austinoneil
Copy link

  • Allow the user to run Arduino commands without having commandPath populated
  • Fix execution of script at commandPath

@ghost
Copy link

ghost commented Feb 4, 2022

CLA assistant check
All CLA requirements met.

Copy link
Member

@benmcmorran benmcmorran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@austinoneil Can you describe in a bit more detail what issue this PR is solving? It should already be possible to leave arduino.commandPath unset. It will be initialized to some platform-specific reasonable default value.

Logger.notifyUserError("InvalidCommandPath", new Error(constants.messages.INVALID_COMMAND_PATH + commandPath));
} else {
if(commandPath) {
execFileSync(commandPath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we executing commandPath here? registerArduinoCommand() is called in many places, some of which don't directly interact with the Arduino IDE.

@lersi
Copy link

lersi commented Apr 22, 2024

hello, I created a community fork at https://github.com/vscode-arduino/vscode-arduino.
You are more than welcome to merge your changes there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants