Java files not being recognised as project files, breaking most code completion (JDT, not AI)


Does anyone know how to get Java/Maven to recognise my source files as project files?
I’m guessing this is the reason all JDT code completion is broken, other than simple java stuff.
I’ve spent days searching for an answer online but can’t find anything, except stuff specific to either VS Code or IntelliJ.
Anytime I want to use any Spring Boot, JPA, or Lombok annotations, for instance, code completion doesn’t show anything. I know this can work on Replit, because this didn’t used to be a problem. It would even auto import the neccessary components when pressing enter to complete the code, like @GetMapping, Entity, @Getter, to name a few.
It should be added that I’ve managed to set the JDT version to 17, despite the default being 1.5 (seriously?).

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

It’s really frustrating that this used to work and now doesn’t. Even when making a brand new repl, the same issue persists, “ is a non-project file, only syntax errors are reported.”

1 Like

@mastore Thanks for your patience on this issue. It turned out to be a more complicated fix than we anticipated, but it should be resolved now.

I replied to your private ticket as well and please do feel free to verify the fix, and respond to me there if you see any other issues.

1 Like

I can confirm that it’s working again. Thanks!

1 Like

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