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

Pre Build command #411

Closed
maxime-paquatte opened this issue Sep 14, 2017 · 6 comments
Closed

Pre Build command #411

maxime-paquatte opened this issue Sep 14, 2017 · 6 comments

Comments

@maxime-paquatte
Copy link

I need to include text file a string variable (html page to serv).

A way to do that could be to execute some external command before the build.

Do you thing it's a good choice to add a property in arduino.json & call the given command before the verify task ?

@Rlopez
Copy link

Rlopez commented Nov 7, 2017

this!
I can't figure out how to to this either, I have a task that does the right thing, but I don't see how to connect it to the verify/upload code (I have that in my .js codebase as preLaunchTask in the launch.json file)

@liydu liydu added this to the Backlog milestone Feb 9, 2018
@czgtest
Copy link
Contributor

czgtest commented Mar 7, 2018

@Sneezry , Can you help to investigate it?

@czgtest
Copy link
Contributor

czgtest commented May 11, 2018

prebuild will work on 0.2.15 version, so close it

@czgtest czgtest closed this as completed May 11, 2018
@Rlopez
Copy link

Rlopez commented May 11, 2018 via email

@Sneezry
Copy link
Member

Sneezry commented May 14, 2018

We have added a new option to add prebuild command in arduino.json in v0.2.15 (see https://github.com/Microsoft/vscode-arduino#options)

@Rlopez do you mean we should just call Arduino IDE build command, and Arduino IDE will handle prebuild action?

@Rlopez
Copy link

Rlopez commented May 14, 2018

@Sneezry I think it is Visual Studio Code that is at fault. Imagine setting up a task (with a sequence of steps) in Visual Studio Code (as can be done today for e.g. pre-debugging) and being able to call a plug-in function (say Arduino build in this case) as one of those steps then the other steps could do whatever extra functionality is needed (for instance calling a bash script)
That way the Arduino code wouldn't need to know about steps outside of itself and the functionality would be much more elastic.

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

5 participants