Skip to content
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
manuelmaurer opened this issue Dec 6, 2019 · 0 comments
Open

prebuild not executed during Upload Using Programmer #941

manuelmaurer opened this issue Dec 6, 2019 · 0 comments

Comments

@manuelmaurer
Copy link

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

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

No branches or pull requests

3 participants