Auto Build fixes, updates (#15315)
Co-Authored-By: shitcreek <luulac85@gmail.com>
This commit is contained in:
@@ -1,52 +1,40 @@
|
||||
# Auto Build support for Visual Studio Code
|
||||
This `Visual Studio Code` extension provides access to the `Auto Build` script.
|
||||
# Auto Build Marlin
|
||||
|
||||
## Installation
|
||||
"AutoBuildMarlin" is a *Visual Studio Code* extension that provides a one-button interface to build and upload Marlin Firmware to your selected `MOTHERBOARD`, removing the need to edit your `platformio.ini` file or scroll through a long list of Marlin environments.
|
||||
|
||||
Get the MarlinFirmware repository from GitHub. Open the directory `buildroot/share/vscode` and copy the `AutoBuildMarlin` folder to the `Visual Studio Code` extension directory. Relaunch `Visual Studio Code` to complete the installation.
|
||||
## Get PlatformIO
|
||||
|
||||
To find the `Visual Studio Code` extension directory:
|
||||
Before you install AutoBuildMarlin you'll first need to [Install PlatformIO in VSCode](http://marlinfw.org/docs/basics/install_platformio_vscode.html). Once you have followed these instructions, continue below.
|
||||
|
||||
- Windows - Use Windows Explorer's address bar to open `C:/Users/USERNAME/.vscode/extensions`.
|
||||
- Mac - Use the Finder's `Go` menu to open `~/.vscode/extensions`.
|
||||
- Linux - In the Terminal type `open ~/.vscode/extensions`.
|
||||
## Installing This Extension
|
||||
|
||||
### 3. Install the PlatformIO extension
|
||||
Click on `View` > `Command Palette...`
|
||||
- [Download Marlin Firmware](http://marlinfw.org/meta/download/) and unzip it to your documents folder.
|
||||
- Open the directory `buildroot/share/vscode` and copy the "`AutoBuildMarlin`" folder to **the *Visual Studio Code* `extensions` directory**.
|
||||
- Relaunch *Visual Studio Code* to complete the installation.
|
||||
|
||||

|
||||
### To find your `extensions` directory:
|
||||
|
||||
Find and click on `Extensions: Install Extensions`
|
||||
|
||||

|
||||
|
||||
Type `platformio` into the search box and click on `Install` under `PlatformIO IDE`.
|
||||
|
||||

|
||||
- **Windows** - Use Windows Explorer's address bar to open `C:/Users/USERNAME/.vscode/extensions`.
|
||||
- **Mac** - Use the Finder's `Go` menu to open `~/.vscode/extensions`.
|
||||
- **Linux** - In the Terminal type `open ~/.vscode/extensions`.
|
||||
|
||||
## Usage
|
||||
|
||||
This extension adds the Auto Build icon  to the Activities bar.
|
||||
- Open up the downloaded *Marlin Firmware* project folder (***NOT the "Marlin" folder within***) in *Visual Studio Code*. (You may also use the **Import Project…** option from the "PlaformIO Home" page.)
|
||||
|
||||
### 1. Open the Marlin folder
|
||||
Click on `File` > `Open Folder...`
|
||||
- With Marlin open, the "File Explorer" should be firmly rooted in your Marlin Firmware folder:
|
||||
|
||||

|
||||

|
||||
|
||||
This brings up the `Open Folder` dialog. Select the folder that has the `platformio.ini` file in it.
|
||||
- Click the **Marlin Auto Build** icon  in the Activities Bar (on the left side of *Visual Studio Code* window) to bring up the **Marlin Auto Build** options bar.
|
||||
|
||||

|
||||

|
||||
|
||||
You should see something like the following. If not, click on the Explorer icon in the Activities bar.
|
||||
- Click one of the four icons
|
||||
|
||||

|
||||
|
||||
### 2. Click on the Auto Build Icon 
|
||||
This brings up the Auto Build menu icon bar.
|
||||

|
||||
|
||||
### 3. Click on one of the four icons
|
||||
-  - Clicking on it starts `PIO Build`
|
||||
-  - Clicking on it starts `PIO Clean`
|
||||
-  - Clicking on it starts `PIO Upload`
|
||||
-  - Clicking on it starts `PIO Upload (traceback)`
|
||||
Icon|Action
|
||||
----|------
|
||||
|Start **PIO Build** to test your Marlin build
|
||||
|Start **PIO Clean** to delete old build files
|
||||
|Start **PIO Upload** to install Marlin on your board
|
||||
|Start **PIO Upload (traceback)** to install Marlin with debugging
|
||||
|
Reference in New Issue
Block a user