I post here my best attempt to run ESP-IDF v4 (idf.py, CMake, Ninja...) in VSCode.
From scratch:
- Follow the new ESP-IDF Get Started Guide (latest)
- Download and install VSCode
- Install 3 VSCode extensions: C/C++, Native Debug, Task Explorer
I post here my best attempt to run ESP-IDF v4 (idf.py, CMake, Ninja...) in VSCode.
From scratch:
version: '3.7' | |
services: | |
whoami: | |
image: jwilder/whoami | |
ports: | |
- 127.0.0.1:7000:8000 | |
cors: |
var netstat = require("node-netstat"); | |
var getNextAvailablePort = function (portRangeAsString) { | |
var portString = portRangeAsString || process.env.USE_PORT_RANGE; | |
if (portString) { | |
var portStart, portLast; | |
portStart = parseInt(portString.split("-")[0]); |
# | |
# Acts as a nginx HTTPS proxy server | |
# enabling CORS only to domains matched by regex | |
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/ | |
# | |
# Based on: | |
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html | |
# * http://enable-cors.org/server_nginx.html | |
# | |
server { |
function keepTrying(otherArgs, promise) { | |
promise = promise||new Promise(); | |
// try doing the important thing | |
if(success) { | |
promise.resolve(result); | |
} else { | |
setTimeout(function() { | |
keepTrying(otherArgs, promise); |