{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/45832","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/45832/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/45832/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/45832/events","html_url":"https://github.com/Microsoft/vscode/issues/45832","id":305430981,"node_id":"MDU6SXNzdWUzMDU0MzA5ODE=","number":45832,"title":"Can't launch debug config with runtimeExecutable that has a space in the path","user":{"login":"KevinSnyderCodes","id":6844673,"node_id":"MDQ6VXNlcjY4NDQ2NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/6844673?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinSnyderCodes","html_url":"https://github.com/KevinSnyderCodes","followers_url":"https://api.github.com/users/KevinSnyderCodes/followers","following_url":"https://api.github.com/users/KevinSnyderCodes/following{/other_user}","gists_url":"https://api.github.com/users/KevinSnyderCodes/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinSnyderCodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinSnyderCodes/subscriptions","organizations_url":"https://api.github.com/users/KevinSnyderCodes/orgs","repos_url":"https://api.github.com/users/KevinSnyderCodes/repos","events_url":"https://api.github.com/users/KevinSnyderCodes/events{/privacy}","received_events_url":"https://api.github.com/users/KevinSnyderCodes/received_events","type":"User","site_admin":false},"labels":[{"id":256129993,"node_id":"MDU6TGFiZWwyNTYxMjk5OTM=","url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"8D6673","default":true},{"id":291054922,"node_id":"MDU6TGFiZWwyOTEwNTQ5MjI=","url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":{"login":"roblourens","id":323878,"node_id":"MDQ6VXNlcjMyMzg3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false},"assignees":[{"login":"roblourens","id":323878,"node_id":"MDQ6VXNlcjMyMzg3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-15T06:34:54Z","updated_at":"2018-09-12T23:08:45Z","closed_at":"2018-09-12T23:08:45Z","author_association":"NONE","body":"<!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode. -->\r\n\r\nThis is a duplicate of #40301, which was locked.\r\n\r\n<!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.21.1\r\n- OS Version: Windows 10\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a `launch.json` config with a `runtimeExecutable` that has spaces in the path\r\n2. Run the configuration\r\n\r\nExample launch config:\r\n\r\n```json\r\n{\r\n    \"type\": \"node\",\r\n    \"request\": \"launch\",\r\n    \"name\": \"Mocha\",\r\n    \"cwd\": \"${workspaceFolder}\",\r\n    \"runtimeExecutable\": \"${workspaceFolder}/node_modules/.bin/mocha.cmd\",\r\n    \"windows\": {\r\n        \"runtimeExecutable\": \"${workspaceFolder}\\\\node_modules\\\\.bin\\\\mocha.cmd\"\r\n    },\r\n    \"runtimeArgs\": [\r\n        \"${workspaceRoot}/test/**/*.js\"\r\n    ],\r\n}\r\n```\r\n\r\nYou can also write out the `windows.runtimeExecutable` path yourself:\r\n\r\n```json\r\n    \"windows\": {\r\n        \"runtimeExecutable\": \"C:\\\\Users\\\\Kevin Snyder\\\\Documents\\\\Projects\\\\Killer Queen\\\\kqstats\\\\node_modules\\\\.bin\\\\mocha.cmd\"\r\n    },\r\n```\r\n\r\nDebug console output:\r\n\r\n```\r\nC:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats\\node_modules\\.bin\\mocha.cmd 'C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats/test/**/*.js'\r\n'C:\\Users\\Kevin' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n```\r\n\r\nI get the same error running the same command in PowerShell or the Command Prompt.\r\n\r\nPowerShell:\r\n\r\n```\r\nPS C:\\Users\\Kevin Snyder\\documents\\projects> C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats\\node_modules\\\r\n.bin\\mocha.cmd 'C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Q\r\nueen\\kqstats/test/**/*.js'\r\nC:\\Users\\Kevin : The term 'C:\\Users\\Kevin' is not recognized as the name of a cmdlet, function, script file, or\r\noperable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try\r\nagain.\r\nAt line:1 char:1\r\n+ C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats\\node_mo ...\r\n+ ~~~~~~~~~~~~~~\r\n    + CategoryInfo          : ObjectNotFound: (C:\\Users\\Kevin:String) [], CommandNotFoundException\r\n    + FullyQualifiedErrorId : CommandNotFoundException\r\n```\r\n\r\nCommand Prompt:\r\n\r\n```\r\nC:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats\\node_modules\\.bin\\mocha.cmd 'C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats/test/**/*.js'\r\n'C:\\Users\\Kevin' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n```\r\n\r\nHowever, if I wrap the path to `mocha.cmd` in double quotes, the execution is successful:\r\n\r\nCommand Prompt:\r\n\r\n```\r\n\"C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats\\node_modules\\.bin\\mocha.cmd\" 'C:\\Users\\Kevin Snyder\\Documents\\Projects\\Killer Queen\\kqstats/test/**/*.ts'\r\nDebugger listening on ws://127.0.0.1:17393/345f6b35-06f7-480c-85f2-34358dcb600a\r\nFor help see https://nodejs.org/en/docs/inspector\r\n```\r\n\r\n<!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n"}}
{"actor":{"display_login":"roblourens"}}