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

Commit 56c9634

Browse files
elektronikworkshopadiazulay
authored andcommitted
Note how to run vscode without having gulp on your user path
1 parent 4341261 commit 56c9634

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

BRANCHNOTES.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ git status
163163
# install module dependencies
164164
npm install
165165
# install gulp builder globally to make it available to the path (requires relaunching your shell)
166+
# there's another option below, see ./launchcode.sh
166167
npm install -g gulp
167168
# to make sure that gulp is actually working type
168169
gulp --tasks
@@ -172,7 +173,18 @@ code .
172173
```
173174
Making sure that gulp is on your `$PATH` is essential. As long this isn't the case the following steps must not be carried out.
174175

175-
Then hit F5 to debug or select it from the *Debug* menu. vscode will then complain that there's *No task defined* and you let it generate the configuration for you by clicking the button *Configure Task*. After configuring the tasks debug (`F5`) or build (`Ctrl + Shift + B`) should work.
176+
Another option to launch code with gulp on your path is (within bash or similar)
177+
```bash
178+
# create launch script
179+
echo "PATH=./node_modules/.bin:$PATH code ." > launchcode
180+
# make it executable
181+
chmod +x launchcode
182+
# now you can launch vscode like this
183+
./launchcode
184+
```
185+
This way you don't have to install gulp globally anymore (no `npm install -g gulp`). The path to the vscode dependency module binary is set as temporary environment variable when launching vscode.
186+
187+
When everything's fine and vscode running, hit F5 to debug or select it from the *Debug* menu. vscode will then complain that there's *No task defined* and you let it generate the configuration for you by clicking the button *Configure Task*. After configuring the tasks debug (`F5`) or build (`Ctrl + Shift + B`) should work.
176188

177189
As soon as you've got it up and running (`F5` spawns a new window), just navigate to your Arduino project. Configure in the vscode-arduino global settings the build output to `verbose` and run verify (`Ctrl + Alt + R`) as you know it. This will then generate a fresh `c_cpp_properties.json`. As long as I haven't removed the generator from the current maintainers you'll have to regenerate it as soon as you see those double asterisk-paths like `whatever/path/**` - if I get to it today, I'll give it a try and will remove/disable it for testing. You can then pull my changes in by running
178190
```bash

0 commit comments

Comments
 (0)