skip to Main Content

Json – VS Code C/C++ (1.19.4) cppbuild task does not support globbing when args is an array. Why?

I'm learning C++ from https://youtu.be/8jLOx1hD3_o?t=4558, I'm on Arch Linux. While setting up tasks.json file with the code: { "version": "2.0.0", "tasks": [ { "type": "cppbuild", "label": "Build with G++", "command": "/usr/bin/g++", "args": [ "-fdiagnostics-color=always", "-g", "-std=c++20", "${workspaceFolder}/*.cpp", "-o", "${fileDirname}/rooster" ],…

VIEW QUESTION

Json – Fetch not syncing with for loop

I am trying to fetch json data from the unsplash api inside of a for loop but it will not sync with the loop. async function myfunction(){ for (x=0;x<=c.length-1; x++){ await fetch('https://api.unsplash.com/search/photos? client_id=123;query=' + c[x].value).then(function(response){ response.json().then(function(data) { //out of sync…

VIEW QUESTION

Editing json file in line with jq

I have a json file like this: { "arrays": [ { "name": "foo", "properties": [ { "type": "app", "url": "https://example.com", "checksum": "d6fd580fe890b826250aa5d5a88bcdb28839cff4d447ba51536cda4ceae89c4e" } ] } ] } I want to change the type to something else, delete the url and…

VIEW QUESTION
Back To Top
Search