{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/9261","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/9261/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/9261/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/9261/events","html_url":"https://github.com/Microsoft/vscode/issues/9261","id":165506844,"number":9261,"title":"Integrated terminal needs absolute path of cmd or powershell in case vscode is installed outside windows installation drive","user":{"login":"swarajgiri","id":6647345,"avatar_url":"https://avatars.githubusercontent.com/u/6647345?v=3","gravatar_id":"","url":"https://api.github.com/users/swarajgiri","html_url":"https://github.com/swarajgiri","followers_url":"https://api.github.com/users/swarajgiri/followers","following_url":"https://api.github.com/users/swarajgiri/following{/other_user}","gists_url":"https://api.github.com/users/swarajgiri/gists{/gist_id}","starred_url":"https://api.github.com/users/swarajgiri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swarajgiri/subscriptions","organizations_url":"https://api.github.com/users/swarajgiri/orgs","repos_url":"https://api.github.com/users/swarajgiri/repos","events_url":"https://api.github.com/users/swarajgiri/events{/privacy}","received_events_url":"https://api.github.com/users/swarajgiri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-14T08:32:03Z","updated_at":"2016-07-14T08:32:03Z","closed_at":null,"body":"- VSCode Version: 1.3.1\r\n- OS Version: Windows 7\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install vscode outside windows installation drive\r\n2. Switch terminal from `cmd` to `powershell` using `\"terminal.integrated.shell.windows\": \"\\\\windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe\"` in `settings.json` file.\r\n\r\nTerminal opens and then crashes with a console.error message\r\n`console.error('Integrated terminal exited with code ' + exitCode);`\r\n\r\n##### Suggestion\r\nThe above error message could be improved to give the user an hint  to use absolute path to `powershell` in `settings.json` or vscode could ask for the windows installation directory on first start.\r\n\r\n#### Fix for using powershell\r\nUse absolute path to powershell in `settings.json`\r\n\r\nExample, with windows installed in C drive\r\n`\"terminal.integrated.shell.windows\": \"C:\\\\windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe\"`\r\n\r\n\r\n"}}
{"actor":{"display_login":"swarajgiri"}}