{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/2144","repository_url":"https://api.github.com/repos/rstudio/rstudio","labels_url":"https://api.github.com/repos/rstudio/rstudio/issues/2144/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rstudio/issues/2144/comments","events_url":"https://api.github.com/repos/rstudio/rstudio/issues/2144/events","html_url":"https://github.com/rstudio/rstudio/issues/2144","id":294793696,"number":2144,"title":"Code completion error","user":{"login":"etienne-s","id":22758616,"avatar_url":"https://avatars2.githubusercontent.com/u/22758616?v=4","gravatar_id":"","url":"https://api.github.com/users/etienne-s","html_url":"https://github.com/etienne-s","followers_url":"https://api.github.com/users/etienne-s/followers","following_url":"https://api.github.com/users/etienne-s/following{/other_user}","gists_url":"https://api.github.com/users/etienne-s/gists{/gist_id}","starred_url":"https://api.github.com/users/etienne-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etienne-s/subscriptions","organizations_url":"https://api.github.com/users/etienne-s/orgs","repos_url":"https://api.github.com/users/etienne-s/repos","events_url":"https://api.github.com/users/etienne-s/events{/privacy}","received_events_url":"https://api.github.com/users/etienne-s/received_events","type":"User","site_admin":false},"labels":[{"id":708758451,"url":"https://api.github.com/repos/rstudio/rstudio/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":708972419,"url":"https://api.github.com/repos/rstudio/rstudio/labels/reproducible","name":"reproducible","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T15:09:31Z","updated_at":"2018-02-06T18:06:43Z","closed_at":null,"author_association":"NONE","body":"### System details\r\n\r\n    RStudio Edition : Desktop\r\n    RStudio Version : 1.1.419\r\n    OS Version      : Windows 7 x64\r\n    R Version       : 3.4.3\r\n\r\n### Steps to reproduce the problem\r\n\r\n1. Create this dataframe: `df <- data.frame(id = 1, source_id = 1)`\r\n2. Start typing the following command: `df %>% left_join(source %>% select(aaaaa))`\r\n\r\n### Describe the problem in detail\r\n\r\n- A tooltip is displayed: \"R code execution error\"\r\n- The following error message is repeatedly printed:\r\n```\r\nError in leftData[completions] : \r\n  object of type 'closure' is not subsettable\r\n```\r\n\r\n![bug autocomplete rstudio](https://user-images.githubusercontent.com/22758616/35866204-d2ec0c5c-0b56-11e8-8f21-d993eaac86a1.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/comments/363512012","html_url":"https://github.com/rstudio/rstudio/issues/2144#issuecomment-363512012","issue_url":"https://api.github.com/repos/rstudio/rstudio/issues/2144","id":363512012,"user":{"login":"etienne-s","id":22758616,"avatar_url":"https://avatars2.githubusercontent.com/u/22758616?v=4","gravatar_id":"","url":"https://api.github.com/users/etienne-s","html_url":"https://github.com/etienne-s","followers_url":"https://api.github.com/users/etienne-s/followers","following_url":"https://api.github.com/users/etienne-s/following{/other_user}","gists_url":"https://api.github.com/users/etienne-s/gists{/gist_id}","starred_url":"https://api.github.com/users/etienne-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etienne-s/subscriptions","organizations_url":"https://api.github.com/users/etienne-s/orgs","repos_url":"https://api.github.com/users/etienne-s/repos","events_url":"https://api.github.com/users/etienne-s/events{/privacy}","received_events_url":"https://api.github.com/users/etienne-s/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T18:06:43Z","updated_at":"2018-02-06T18:06:43Z","author_association":"NONE","body":"@ronblum Thanks for the answer.\r\n\r\nI actually meant `source` and not `source_id`.\r\nThis is a minimal example built from a more complex case, but the idea is as follows:\r\n- A dataframe named `source` already exists.\r\n- I join `df` with some columns of `source`\r\nSo the entire command is more like:\r\n```r\r\ndf %>%\r\n  left_join(source %>% select(source_id, fieldA, fieldB), by = \"source_id)\r\n```"}}
{"actor":{"display_login":"etienne-s"}}