Code autocomplete only in console, not in editor

Since yesterday, My RStudio is not autocompleting my code in the editor. This is what I get when I load ggplot2, type gg and press TAB inside the editor:

This is what I get when I load ggplot2, type gg and press TAB inside the console:

And these are the global options I am using in my RStudio:

What I've tried so far:

  • Restart RStudio
  • Restart my computer
  • Reinstall RStudio
  • Install an RStudio previous version ( 2023.06.0)
  • Delete ~/.config/rstudio

Nothing helped. I found this topic from last year, with someone with the same problem I have, but unfortunately there is no solution for it.

The software I am using is

  • R 4.3.1
  • RStudio 2023.06.1+524
  • macOS Ventura 13.4.1

The hardware I am using is

  • Macbook Air M1, 2020

What can be done? Does anyone know what could be causing my problem?

Ok, I found my mistake. My original script had ~1500 lines. I don't know why, but I didn't close a parenthesis on line 588 and this was the reason the autocomplete wasn't working in editor, but it was in the console.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.