Problem in code completion and analysis in Java project using a Scala project as a dependency

IDEA 10.1 build 99.32

I have two projects: A Scala project and a Java project. Both are Maven projects. The Scala project is an aggregation project composed of 3 modules: API, Impl and WebApp. The Java project is dependent on the API module of the Scala project and contacts the Webapp via remoting (Hessian).

The problem is that after compiling and building the Scala API module once and then changing the API (adding a method, for instance), the editor in the Java project doesn't see the changes. The code compiles, and when I ctrl+click the API class I see the changed class, but IDEA keeps telling me that the new method doesn't exist. If I delete the project and re-import the POM, the problem goes away - until the next API change.

This sounds to me like a problem in IDEA's analysis cache or something, but I can't phrase the problem well enough to report an issue @ YouTrack.

Anyone else experiences this and knows how to solve it? is there a bug open that I can watch?

Thanks

4 comments
Comment actions Permalink

Is this bug exist with disabled Scala plugin in IDEA? (if it's possible to disable it for pure Java project)

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

How do I disable a plugin for a specific project only?

0
Comment actions Permalink

Settings -> Plugins. Then unpick Scala plugin in this list. But this is disabling in general. You should update API wihout Scala plugin, to avoid cache invalidating after disabling Scala plugin.
I don't want you to work without plugin, I want to understand where is the problem. Is it Maven, Java or Scala plugin problem. According to your description most probably it's Scala plugin problem.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

After I disable the Scala plugin the problem goes away, but when re-enabling it the problem returns as soon as I modify the API.

0

Please sign in to leave a comment.