code-d icon indicating copy to clipboard operation
code-d copied to clipboard

"Arch Type" is empty on startup

Open ahmetsait opened this issue 2 years ago • 3 comments

I have the following .vscode/setting.json (notice: "archType": "$current")

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "dub",
			"run": false,
			"cwd": "${workspaceFolder}",
			"compiler": "$current",
			"archType": "$current",
			"buildType": "$current",
			"configuration": "$current",
			"problemMatcher": [
				"$dmd"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"label": "dub: Build kc",
			"detail": "dub build",
			"presentation": {
				"reveal": "always",
				"revealProblems": "onProblem",
				"focus": false,
				"panel": "dedicated",
				"showReuseMessage": false
			}
		}
	]
}

If I do "Terminal > Run Build Task..." with this setup I get:

 *  Executing task: 'dub' 'build' '--compiler=ldc2' '--arch=' '--build=debug' '--config=debug' 

       Error Error processing arguments: Missing value for argument --arch=.
             Run 'dub help' for usage information.

 *  The terminal process "/usr/bin/bash '-c', ''dub' 'build' '--compiler=ldc2' '--arch=' '--build=debug' '--config=debug''" failed to launch (exit code: 1).

I think this "arch" setting should initialize to the current native target instead of being empty, similar to other settings (build type, config etc.)

ahmetsait avatar Jun 08 '23 18:06 ahmetsait

are you using the stable serve-d or have you configured it to use beta or nightly? If not, try out setting d.servedReleaseChannel to beta or nightly and reload the window.

WebFreak001 avatar Jun 08 '23 19:06 WebFreak001

@WebFreak001 I'm using nightly.

ahmetsait avatar Jun 08 '23 20:06 ahmetsait

Agree, a i have same trouble. Nightly, 12/26/2023 12:16 UTC

VlasovRoman avatar Dec 26 '23 12:12 VlasovRoman