Autocomplete not working for JavaFX project

Answered

I'm helping my daughter do a high school coding project. We've got IntelliJ set up and for plain Java Projects the autocomplete/intellisense magic works. She just created her first JavaFX project and the autocomplete stopped working in that project.

- I've checked the Setting → Editor → General → Auto Complete and those global settings are still the default

- Following a suggestion from StackOverflow - I doubled checked that we have a source folder set and we do.

Ctrl + Space - still works for manually invoking the completition function

0
9 comments

Can you please attach a screenshot? Does the tutorial help here?

 

0

We followed that tutorial.

Screenshots yes of course. What am I taking a screenshot of? It's rather hard to screenshot the absence of the autocomplete function.

0

Please take a screenshot to show what autocomplete does not work.

Please also try File | Invalidate Caches / Restart.

0

We did the cache invalidation - no dice. Here is the screenshot you asked for:

Curiously I also noticed the entire quick fix system isn't working either. She had written a function call and I would have expected the quick fix to offer to create the function.

0

It seems like the java files are not under the source root. Please check the project structure to make sure the source files are under the source folder.

0

I will check that tonight. Caveat, if they're not under the source folder, that would be strange. She is simply working on a project created via the New Project… dialog, having selected JavaFX.

0

Ignore the syntax errors, she fixed those a few minutes later. From what I can tell her code is inside the correct folder. I even double checked the project structure dialog, to make sure it wasn’t mis-configured.

0

Sorry, I missed the battery icon in your screenshot previously. Please disable the power save mode.

0

You my friend are a genius. It took, me a week to get her to focus on computing and open IntelliJ again. One genius point awarded.

0

Please sign in to leave a comment.