testing rstudio preview 1.2.1015 on windows, following the blog post indications for SQL here:
https://blog.rstudio.com/2018/10/02/rstudio-1-2-preview-sql/
the issue is I can not fire up autocompletion for tables. I can use it for databases but is not working for tables. I click on tab but only databases are shown.
any hint?
I filed an issue on github about this a time ago, and was solved on a daily build, I don't remember which one exactly but the latest has the fix for sure, although, autocompletion is not prefect for postgresql mostly due to its more complex object structure.
jcblum
December 14, 2018, 4:54am
3
If you have a link to the issue you filed, that would be helpful! (I tried searching but wasn’t turning up anything that looked right).
I forgot that I didn't file the issue myself, I made a post Here and then kevinushey opened one for me.
jcblum
December 14, 2018, 7:59am
5
Thanks! That makes more sense
For anybody else who might come along, here’s the issue:
opened 11:21PM - 03 Oct 18 UTC
closed 10:04PM - 04 Oct 18 UTC
### System details
RStudio Edition : Desktop
RStudio Version : v1.2.… 1015
OS Version : macOS 10.14
R Version : 3.5.1
### Steps to reproduce the problem
Using this document:
`````
```{r}
library(RPostgres)
conn <- dbConnect(RPostgres::Postgres())
dbWriteTable(conn, "mtcars", mtcars)
```
```{sql, connection=conn}
select mpg, cyl from public.mtcars
```
`````
### Describe the problem in detail
Fields are not autocompleted from the `mtcars` table.
### Describe the behavior you expected
The SQL autocompletion system needs to better understand references to tables from schemas.
system
Closed
January 4, 2019, 8:14am
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.