{"action":"created","comment":{"url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/comments/205931569","pull_request_review_id":141306292,"id":205931569,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTkzMTU2OQ==","diff_hunk":"@@ -158,42 +158,84 @@ def wrapper(*args, **kwargs):\n     return func_receiver\n \n \n+# XXX: might use lru cache, given that you can configure it per buffer?!\n current_environment = (None, None)\n \n \n+def set_environment(executable=None, bufnr=None):","path":"pythonx/jedi_vim.py","position":8,"original_position":8,"commit_id":"38fc343edd73aad0bb3cb8e44e7b730ee251c79d","original_commit_id":"6d17ee9960c9b747da1e32170639e7d1e5ee5d8d","user":{"login":"blueyed","id":9766,"node_id":"MDQ6VXNlcjk3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/9766?v=4","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"body":"Yeah, it is not really necessary, but a good example for getting the scoping right from the beginning.\r\nMore important would be a tab-local setting then I guess.\r\nThis is kind of useful in an IDE-like environment where you would work on different projects/venvs in parallel - but yes, it is a bit constructed.","created_at":"2018-07-28T03:48:53Z","updated_at":"2018-07-28T03:48:53Z","html_url":"https://github.com/davidhalter/jedi-vim/pull/836#discussion_r205931569","pull_request_url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/comments/205931569"},"html":{"href":"https://github.com/davidhalter/jedi-vim/pull/836#discussion_r205931569"},"pull_request":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836"}},"in_reply_to_id":197619255},"pull_request":{"url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836","id":196892647,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODkyNjQ3","html_url":"https://github.com/davidhalter/jedi-vim/pull/836","diff_url":"https://github.com/davidhalter/jedi-vim/pull/836.diff","patch_url":"https://github.com/davidhalter/jedi-vim/pull/836.patch","issue_url":"https://api.github.com/repos/davidhalter/jedi-vim/issues/836","number":836,"state":"open","locked":false,"title":"[WIP/RFC] Improve selection of environments","user":{"login":"blueyed","id":9766,"node_id":"MDQ6VXNlcjk3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/9766?v=4","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"body":"Includes/uses https://github.com/davidhalter/jedi/pull/1108.\r\n\r\nTODO:\r\n\r\n- [ ] keep `g:jedi#force_py_version` (https://github.com/davidhalter/jedi-vim/pull/834#issuecomment-399739633)","created_at":"2018-06-23T09:38:34Z","updated_at":"2018-07-28T03:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b4dd1a827f80425e3213bc7802da6de37708988","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836/commits","review_comments_url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836/comments","review_comment_url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davidhalter/jedi-vim/issues/836/comments","statuses_url":"https://api.github.com/repos/davidhalter/jedi-vim/statuses/38fc343edd73aad0bb3cb8e44e7b730ee251c79d","head":{"label":"blueyed:envs","ref":"envs","sha":"38fc343edd73aad0bb3cb8e44e7b730ee251c79d","user":{"login":"blueyed","id":9766,"node_id":"MDQ6VXNlcjk3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/9766?v=4","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"repo":{"id":31597763,"node_id":"MDEwOlJlcG9zaXRvcnkzMTU5Nzc2Mw==","name":"jedi-vim","full_name":"blueyed/jedi-vim","owner":{"login":"blueyed","id":9766,"node_id":"MDQ6VXNlcjk3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/9766?v=4","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blueyed/jedi-vim","description":"Using the jedi autocompletion library for VIM.","fork":true,"url":"https://api.github.com/repos/blueyed/jedi-vim","forks_url":"https://api.github.com/repos/blueyed/jedi-vim/forks","keys_url":"https://api.github.com/repos/blueyed/jedi-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blueyed/jedi-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blueyed/jedi-vim/teams","hooks_url":"https://api.github.com/repos/blueyed/jedi-vim/hooks","issue_events_url":"https://api.github.com/repos/blueyed/jedi-vim/issues/events{/number}","events_url":"https://api.github.com/repos/blueyed/jedi-vim/events","assignees_url":"https://api.github.com/repos/blueyed/jedi-vim/assignees{/user}","branches_url":"https://api.github.com/repos/blueyed/jedi-vim/branches{/branch}","tags_url":"https://api.github.com/repos/blueyed/jedi-vim/tags","blobs_url":"https://api.github.com/repos/blueyed/jedi-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blueyed/jedi-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blueyed/jedi-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/blueyed/jedi-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blueyed/jedi-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/blueyed/jedi-vim/languages","stargazers_url":"https://api.github.com/repos/blueyed/jedi-vim/stargazers","contributors_url":"https://api.github.com/repos/blueyed/jedi-vim/contributors","subscribers_url":"https://api.github.com/repos/blueyed/jedi-vim/subscribers","subscription_url":"https://api.github.com/repos/blueyed/jedi-vim/subscription","commits_url":"https://api.github.com/repos/blueyed/jedi-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/blueyed/jedi-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/blueyed/jedi-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/blueyed/jedi-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/blueyed/jedi-vim/contents/{+path}","compare_url":"https://api.github.com/repos/blueyed/jedi-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blueyed/jedi-vim/merges","archive_url":"https://api.github.com/repos/blueyed/jedi-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blueyed/jedi-vim/downloads","issues_url":"https://api.github.com/repos/blueyed/jedi-vim/issues{/number}","pulls_url":"https://api.github.com/repos/blueyed/jedi-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/blueyed/jedi-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/blueyed/jedi-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blueyed/jedi-vim/labels{/name}","releases_url":"https://api.github.com/repos/blueyed/jedi-vim/releases{/id}","deployments_url":"https://api.github.com/repos/blueyed/jedi-vim/deployments","created_at":"2015-03-03T12:41:28Z","updated_at":"2015-03-03T12:41:28Z","pushed_at":"2018-07-28T03:46:27Z","git_url":"git://github.com/blueyed/jedi-vim.git","ssh_url":"git@github.com:blueyed/jedi-vim.git","clone_url":"https://github.com/blueyed/jedi-vim.git","svn_url":"https://github.com/blueyed/jedi-vim","homepage":null,"size":785,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"davidhalter:master","ref":"master","sha":"4c430ed536b6484f7c63929a4426d64f981d994e","user":{"login":"davidhalter","id":748594,"node_id":"MDQ6VXNlcjc0ODU5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/748594?v=4","gravatar_id":"","url":"https://api.github.com/users/davidhalter","html_url":"https://github.com/davidhalter","followers_url":"https://api.github.com/users/davidhalter/followers","following_url":"https://api.github.com/users/davidhalter/following{/other_user}","gists_url":"https://api.github.com/users/davidhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhalter/subscriptions","organizations_url":"https://api.github.com/users/davidhalter/orgs","repos_url":"https://api.github.com/users/davidhalter/repos","events_url":"https://api.github.com/users/davidhalter/events{/privacy}","received_events_url":"https://api.github.com/users/davidhalter/received_events","type":"User","site_admin":false},"repo":{"id":5857387,"node_id":"MDEwOlJlcG9zaXRvcnk1ODU3Mzg3","name":"jedi-vim","full_name":"davidhalter/jedi-vim","owner":{"login":"davidhalter","id":748594,"node_id":"MDQ6VXNlcjc0ODU5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/748594?v=4","gravatar_id":"","url":"https://api.github.com/users/davidhalter","html_url":"https://github.com/davidhalter","followers_url":"https://api.github.com/users/davidhalter/followers","following_url":"https://api.github.com/users/davidhalter/following{/other_user}","gists_url":"https://api.github.com/users/davidhalter/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhalter/subscriptions","organizations_url":"https://api.github.com/users/davidhalter/orgs","repos_url":"https://api.github.com/users/davidhalter/repos","events_url":"https://api.github.com/users/davidhalter/events{/privacy}","received_events_url":"https://api.github.com/users/davidhalter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidhalter/jedi-vim","description":"Using the jedi autocompletion library for VIM.","fork":false,"url":"https://api.github.com/repos/davidhalter/jedi-vim","forks_url":"https://api.github.com/repos/davidhalter/jedi-vim/forks","keys_url":"https://api.github.com/repos/davidhalter/jedi-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidhalter/jedi-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidhalter/jedi-vim/teams","hooks_url":"https://api.github.com/repos/davidhalter/jedi-vim/hooks","issue_events_url":"https://api.github.com/repos/davidhalter/jedi-vim/issues/events{/number}","events_url":"https://api.github.com/repos/davidhalter/jedi-vim/events","assignees_url":"https://api.github.com/repos/davidhalter/jedi-vim/assignees{/user}","branches_url":"https://api.github.com/repos/davidhalter/jedi-vim/branches{/branch}","tags_url":"https://api.github.com/repos/davidhalter/jedi-vim/tags","blobs_url":"https://api.github.com/repos/davidhalter/jedi-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidhalter/jedi-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidhalter/jedi-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidhalter/jedi-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidhalter/jedi-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/davidhalter/jedi-vim/languages","stargazers_url":"https://api.github.com/repos/davidhalter/jedi-vim/stargazers","contributors_url":"https://api.github.com/repos/davidhalter/jedi-vim/contributors","subscribers_url":"https://api.github.com/repos/davidhalter/jedi-vim/subscribers","subscription_url":"https://api.github.com/repos/davidhalter/jedi-vim/subscription","commits_url":"https://api.github.com/repos/davidhalter/jedi-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidhalter/jedi-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidhalter/jedi-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidhalter/jedi-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidhalter/jedi-vim/contents/{+path}","compare_url":"https://api.github.com/repos/davidhalter/jedi-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidhalter/jedi-vim/merges","archive_url":"https://api.github.com/repos/davidhalter/jedi-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidhalter/jedi-vim/downloads","issues_url":"https://api.github.com/repos/davidhalter/jedi-vim/issues{/number}","pulls_url":"https://api.github.com/repos/davidhalter/jedi-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/davidhalter/jedi-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/davidhalter/jedi-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidhalter/jedi-vim/labels{/name}","releases_url":"https://api.github.com/repos/davidhalter/jedi-vim/releases{/id}","deployments_url":"https://api.github.com/repos/davidhalter/jedi-vim/deployments","created_at":"2012-09-18T14:14:29Z","updated_at":"2018-07-28T03:17:18Z","pushed_at":"2018-07-28T03:46:28Z","git_url":"git://github.com/davidhalter/jedi-vim.git","ssh_url":"git@github.com:davidhalter/jedi-vim.git","clone_url":"https://github.com/davidhalter/jedi-vim.git","svn_url":"https://github.com/davidhalter/jedi-vim","homepage":null,"size":729,"stargazers_count":3533,"watchers_count":3533,"language":"Vim script","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":300,"mirror_url":null,"archived":false,"open_issues_count":87,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":300,"open_issues":87,"watchers":3533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836"},"html":{"href":"https://github.com/davidhalter/jedi-vim/pull/836"},"issue":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/issues/836"},"comments":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/issues/836/comments"},"review_comments":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836/comments"},"review_comment":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/pulls/836/commits"},"statuses":{"href":"https://api.github.com/repos/davidhalter/jedi-vim/statuses/38fc343edd73aad0bb3cb8e44e7b730ee251c79d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"blueyed"}}