I can't get code completion to work at the dot operator

已完成

Windows 11
IntelliJ 2025.1.3 Ultimate Edition

This is all I get when typing a dot after a Java class:

 

 

I opened my project form a git repo on my hard drive.

In IJ I went File > Project From Existing Sources > path the pom.xml of the project

I am using JAVAC 1.8 ( not in the windows registry, but in my PATH and pointed to by JAVA_HOME sys envir var ).

IJ  gave me a list of JDKs to choose from, I found mine in the list, and chose it

Screen shot of my “Project Structure”, source path tab

 

Screen shot of my Classpath tab

 

 

My code completion setting dialog:

 

 

My Inline Completion settings dialog

 

 

Any clues appreciated!

Thank you.

0

It looks like the JDK wasn't properly added, or the source root is not resolved.

- Try to click on Reload All Maven Projects in the Maven tool window:

- Ensure that a JDK is selected under File | Project Structure | Project

- Check if you have Java source root configured under File | Project Structure | Modules | module_name | Sources . Example below:

0

Found a possibly related problem.

I don't have a Maven Tool Window despite having Maven on my system:

 

 

 

 

 

 

 

0

File > Project Structure > Project

 

 

0


I had the wrong language level in 
File > Project Structure > Modules > Lanuage Level

I have code completion now.

How can I get a Maven Tool Window?

0

Hello, does your project contain a pom.xml file? The Maven tool windows could be opened via the menu View | Tool Windows | Maven.

0

My project does have a pom.xml.

I have a screen shot of View > Tool Windows about 4 comments up.  There is no choice for the Maven Tool Window in that menu.

0

I fixed the Maven issue too.

This issue can be considered closed.

Thanks for all of the help!

0

Hi, Stephen!

Thanks for the updates. Feel free to reach out to us in case of any other questions.

Have a great one!

0

请先登录再写评论。