Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks.json format incorrect. #2

Open
gbowne1 opened this issue Oct 19, 2023 · 2 comments
Open

tasks.json format incorrect. #2

gbowne1 opened this issue Oct 19, 2023 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@gbowne1
Copy link
Owner

gbowne1 commented Oct 19, 2023

There is a error in the description for the tasks.json file. It should look something like:

{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
     "tasks": [
     {
      "type": "process",
      "label": "",
      "command": "",
      "args": [],
      "options": {},
      "problemMatcher": {
        "owner": ""
      },
      "group": "build",
      "presentation": {
        "reveal": "always",
        "panel": "shared"
      },
      "dependsOn": "",
      "isBackground": true,
      }
   ],
 }
@gbowne1
Copy link
Owner Author

gbowne1 commented Nov 6, 2023

More details to research for this file

{
	// See https://go.microsoft.com/fwlink/?LinkId=733558
	// for the documentation about the tasks.json format
	"version": "2.0.0",
	"tasks": [
		{
			"type": "shell",
			"label": "build",
			"command": "",
			"args": [
				{
					"quoting": "strong",
					"value": "",
				}
			],
			"options": {
				"cwd": "",
				"env": {},
				"shell": {
					"args": [],
					"executable": ""
				},
			},
			"problemMatcher": "$gcc",
			"group": "none",
			"presentation": {
				"clear": true,
				"close": true,
				"echo": true,
				"focus": true,
				"group": "",
				"panel": "shared",
				"reveal": "never",
				"revealProblems": "never",
				"showReuseMessage": true,
			},
			"dependsOn": {
				"type": "",
			},
			"isBackground": true,
			"dependsOrder": "",
			"detail": "",
			"hide": true,
			"icon": {
				"color": "",
				"id": "add",
			},
			"windows": {
				"args": [],
				"command": "",
				"options": {},
				"problemMatcher": "$msvc",
			},
			"linux": {
				"args": [
				],
				"command": "",
				"options": { "cwd": "",
			"env": {},
		"shell": "",

					"applyTo": "",
					"background": {},
					"base": {},
					"fileLocation": [
						"search",
						{
							"include": [
								"${workspaceFolder}",
							],
							"exclude": [],
						},
					]
			},
			"osx": {
				"args": {},
				"runOptions": {
					"instanceLimit": "",
					"reevaluateOnRerun": true,
					"runOn": "default",
				},
				"promptOnClose": false,
			}
		}
	}
}

@gbowne1
Copy link
Owner Author

gbowne1 commented Nov 6, 2023

also:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "gcc",
            "args": ["-Wall", "helloWorld.c", "-o", "helloWorld"],
            "problemMatcher": {
                "owner": "cpp",
                "fileLocation": ...
            },
            "windows": {
                "command": "path\\to\\windows\\gcc"
            },
            "linux": {
                "command": "/path/to/linux/gcc"
            },
            "osx": {
                "command": "/path/to/osx/gcc"
            }
        }
    ]
}

@gbowne1 gbowne1 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers question Further information is requested labels Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant