Hey everyone! I've been using Tabnine Pro for a few months now, mostly in my Java Spring Boot projects, and I'm generally loving the flow it creates for boilerplate code. But I've hit a consistent snag that's starting to slow me down, and I'm wondering if anyone else has found a fix.
The issue is with imports. Tabnine will often suggest a method or class name correctly, but then auto-imports the *wrong* package. For example:
- I type `LocalDate` and it suggests `java.sql.Date` instead of `java.time.LocalDate`.
- It frequently suggests `org.apache.commons.lang3` classes when I'm clearly using the standard library.
My setup:
* IDE: IntelliJ IDEA Ultimate
* Tabnine plugin: Latest version (as of this week)
* Project: Maven-based, JDK 17
I've tried the obvious steps like invalidating caches in IntelliJ and reinstalling the Tabnine plugin. The project's SDK is correctly set. It feels like Tabnine's model might be getting confused by the project's dependencies or isn't prioritizing the project's own source and imported libraries correctly.
Has anyone else run into this with Java? Are there specific settings in Tabnine or the IDE that can help it better understand the project's context and prioritize the correct imports? I'd love to hear your experiences or any workarounds you've found. This is the one hiccup keeping it from being a seamless experience for me.
Cheers
Always comparing.