This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
prebuild not executed during Upload Using Programmer #941
Open
Description
In my arduino.json I have configured a script to install some libraries prior to compiling:
{
"sketch": "Test.ino",
"board": "arduino:avr:nano",
"configuration": "cpu=atmega328",
"output": "./build",
"programmer": "AVRISP mkII",
"port": "COM1",
"prebuild": "..\\install.bat"
}
This works fine with the standard Verify and Upload commands.
However, using an Programmer (AVRISP mk2 in my case) the script is not called.
Expectation:
[Starting] Verify sketch - Test.ino
Run prebuild command: ..\install.bat
[INSTALL] Running Installer...
[INSTALL] Done
Please see the build logs in Output path: c:\Programming\Test\build
Set log4j store directory C:\Users\user\AppData\Local\Arduino15
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
Actual:
[Starting] Upload sketch - Test.ino
Please see the build logs in Output path: c:\Programming\Test\build
Set log4j store directory C:\Users\user\AppData\Local\Arduino15
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
Running vscode 1.40.2 with Arduino 0.2.28