Component dependencies in IDEA

Hello,

I was trying to find out whats going on myself but unfortunately I could not get to the root of the problem. I have problems with dependencies between components.

consider the following project setup:

3 module components on the project (A,B,C) where A depends on B
1 library components (Lib1) where A depends on Lib1 and Lib1 depends on module C

Now I have setup everything and all compiles ok. But when I browse in classes of the library Lib1 I get parsing errors within the code saying the classes of module C are not in the scope of library 1.

Is that a know issue of IDEA or how can I setup such a scenario ?

thanks,
detlef

5 comments
Comment actions Permalink

You need to specify the dependency of Lib1 on C as "exported". How you do this depends on whether you are using IDEA 5.1 (in which case there's an "Export" tab in the project setup) or 6.0 (look for the "export" checkboxes in the "Dependencies" tab).

--Dave Griffith

0
Comment actions Permalink

Hi Dave,

thanks for your suggestion. And I also thought this might solve my problem. But unfortunately it did not solve it.
Whenever I browse a class of a library component - which needs classes from the module components they are marked as unknown (red) in the code view.

do you have other ideas ?

thanks,
detlef

0
Comment actions Permalink

I found another notion of this problem here:
http://www.intellij.net/forums/thread.jspa?messageID=5145903&#5145903

No solution was proposed so far... :(

0
Comment actions Permalink

Hello Vadim,

VK> I found another notion of this problem here:
VK> http://www.intellij.net/forums/thread.jspa?messageID=5145903&#514590
VK> 3
VK> No solution was proposed so far... :(

This issue is fixed in the build 6083:
http://www.jetbrains.net/confluence/display/IDEADEV/6.0.2+EAP

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks a lot for this peace of good news.

0

Please sign in to leave a comment.