{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2849","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2849/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2849/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2849/events","html_url":"https://github.com/Microsoft/vscode-python/issues/2849","id":368867979,"node_id":"MDU6SXNzdWUzNjg4Njc5Nzk=","number":2849,"title":"Cannot activate Python extension due to self signed certificate in certificate chain","user":{"login":"kvnjcby","id":801111,"node_id":"MDQ6VXNlcjgwMTExMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/801111?v=4","gravatar_id":"","url":"https://api.github.com/users/kvnjcby","html_url":"https://github.com/kvnjcby","followers_url":"https://api.github.com/users/kvnjcby/followers","following_url":"https://api.github.com/users/kvnjcby/following{/other_user}","gists_url":"https://api.github.com/users/kvnjcby/gists{/gist_id}","starred_url":"https://api.github.com/users/kvnjcby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvnjcby/subscriptions","organizations_url":"https://api.github.com/users/kvnjcby/orgs","repos_url":"https://api.github.com/users/kvnjcby/repos","events_url":"https://api.github.com/users/kvnjcby/events{/privacy}","received_events_url":"https://api.github.com/users/kvnjcby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-10T21:44:20Z","updated_at":"2018-10-16T19:00:42Z","closed_at":null,"author_association":"NONE","body":"## Environment data\r\n\r\n- VS Code version: 1.28.0\r\n- Extension version (available under the Extensions sidebar): 2018.9.0\r\n- OS and version: Xubuntu 16.04\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7.12\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A \r\n- Relevant/affected Python packages and their versions: N/A\r\n\r\n## Actual behavior\r\n\r\nWhen trying to select my Python linter, I get a \"command 'python.setLinter' not found\" error. After checking the developer tools console, it looks like the Python extension is unable to activate due to a self signed certificate in the certificate chain because I'm on a corporate network. It looks like it's specifically failing to update from the language server. See logs below. I have disabled \"proxy strict SSL\" in my user settings but this doesn't seem to have an effect on extensions.\r\n\r\n## Expected behavior\r\n\r\nI should be able to ignore this SSL error so that I can use the Python extension.\r\n\r\n## Steps to reproduce:\r\n1. Install Python VS Code extension\r\n2. Try to \"Select Linter\"\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\nStarting Microsoft Python language server.\r\n\r\n```   \r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)\r\n\r\n```\r\nconsole.ts:136 [Extension Host] Python Extension: Listing Nuget Packages, Arg 1: \"https://pvsc.blob.core.windows.net\", Arg 2: \"python-language-server-stable\", Arg 3: \"Python-Language-Server-linux-x64\" Error: self signed certificate in certificate chain\r\n\tat TLSSocket.<anonymous> (_tls_wrap.js:1103:38)\r\n\tat emitNone (events.js:106:13)\r\n\tat TLSSocket.emit (events.js:208:7)\r\n\tat TLSSocket._finishInit (_tls_wrap.js:637:8)\r\n\tat TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)\r\n\r\nconsole.ts:136 [Extension Host] Python Extension: Get latest language server nuget package version, , Return Value:  Error: self signed certificate in certificate chain\r\n\tat TLSSocket.<anonymous> (_tls_wrap.js:1103:38)\r\n\tat emitNone (events.js:106:13)\r\n\tat TLSSocket.emit (events.js:208:7)\r\n\tat TLSSocket._finishInit (_tls_wrap.js:637:8)\r\n\tat TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)\r\n\r\nconsole.ts:136 [Extension Host] Python Extension: Get latest version of Language Server, , Return Value:  Error: self signed certificate in certificate chain\r\n\tat TLSSocket.<anonymous> (_tls_wrap.js:1103:38)\r\n\tat emitNone (events.js:106:13)\r\n\tat TLSSocket.emit (events.js:208:7)\r\n\tat TLSSocket._finishInit (_tls_wrap.js:637:8)\r\n\tat TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)\r\n\r\nconsole.ts:136 [Extension Host] Python Extension: Get language server folder name, , Return Value:  TypeError: Cannot read property 'version' of undefined\r\n\tat LanguageServerFolderService.<anonymous> (/home/kjacoby/.vscode/extensions/ms-python.python-2018.9.0/out/client/activation/languageServerFolderService.js:49:61)\r\n\tat Generator.next (<anonymous>)\r\n\tat fulfilled (/home/kjacoby/.vscode/extensions/ms-python.python-2018.9.0/out/client/activation/languageServerFolderService.js:15:58)\r\n\tat <anonymous>\r\n\tat process._tickCallback (internal/process/next_tick.js:188:7)\r\n\r\nconsole.ts:136 [Extension Host] Activating extension 'ms-python.python' failed: Cannot read property 'version' of undefined.\r\n\r\nconsole.ts:136 [Extension Host] Activating extension `ms-python.python` failed:  Cannot read property 'version' of undefined\r\n\r\nconsole.ts:136 [Extension Host] Here is the error stack:  TypeError: Cannot read property 'version' of undefined\r\n\tat LanguageServerFolderService.<anonymous> (/home/kjacoby/.vscode/extensions/ms-python.python-2018.9.0/out/client/activation/languageServerFolderService.js:49:61)\r\n\tat Generator.next (<anonymous>)\r\n\tat fulfilled (/home/kjacoby/.vscode/extensions/ms-python.python-2018.9.0/out/client/activation/languageServerFolderService.js:15:58)\r\n\tat <anonymous>\r\n\tat process._tickCallback (internal/process/next_tick.js:188:7)\r\n\r\nextensionService.ts:1006 Activating extension 'ms-python.python' failed: Cannot read property 'version' of undefined.\r\n\r\nnotificationsAlerts.ts:40 Error: command 'python.setLinter' not found\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/430358157","html_url":"https://github.com/Microsoft/vscode-python/issues/2849#issuecomment-430358157","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2849","id":430358157,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM1ODE1Nw==","user":{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T19:00:42Z","updated_at":"2018-10-16T19:00:42Z","author_association":"MEMBER","body":"First, you can always go back to Jedi with `\"python.jediEnabled\": true` so you don't attempt to download the language server.\r\n\r\nSecond, so you're saying that the domain https://pvsc.blob.windows.net is being blocked?"}}
{"actor":{"display_login":"brettcannon"}}