Problem with Autocomplete suggesting methods instead of types

Answered

This behavior started in the middle of a workday, not after an update or anything unusual. 

Am running:
IntelliJ IDEA 2017.3 (Ultimate Edition)
Build #IU-173.3727.127, built on November 27, 2017
JRE: 1.8.0_152-release-1024-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.1

What causes this behavior,  and how can I stop it?

I have tried invalidating caches and restarting, to no avail. 

Then I deleted the ~/Library/Caches/Intellij2017.3, /Library/Logs/Intellij2017.3//Library/Application_Support/Intellij2017.3, /Library/Preferences/Intellij2017.3 files. 

That didn't work. 

So I deleted all of the Intellij files from my project folder, and created my project all over again. 

That also did not work. 

I do not want to override Object.toString, I do not want to make private getter methods. 

Here are screenshots of the undesired behavior:

0
6 comments

Is your caret in the Insert mode? Press Insert again.

0

My caret is not in Insert/Overwrite mode. 

To confirm that, I set up a keyboard shortcut for keyboard insert/overwrite mode in the keymap section of the Intellij properties. I then tried those same strings in both modes. The behavior was identical. 

0

Can't reproduce. Please report at https://youtrack.jetbrains.com/issues/IDEA with the logs (https://intellij-support.jetbrains.com/hc/articles/207241085) and a short video attached. Also attach your config (File | Export Settings).

Also try 2017.3.1: http://www.jetbrains.com/idea/download/index.html.

0

I'm trying the update now. 

The update does not resolve this issue. 

0

A workaround for some of the issues is to set:

Preferences > Editor > Code Style > Java > Code Generation > Default Visibility 

By setting it to the visibility I use least, I only run into the getter method issue when making "protected" fields.

The Object.toString suggested override remains when making public fields. 

0

Please sign in to leave a comment.