IntelliJ people please respond: IDEA not discovering library source.

I'm a bit confused as to what I should do here and would really like to get a response from the IntelliJ team. Is this a known issue? Is anyone inside IntelliJ having this problem?

The problem is that I have a project using a Java SVG library (Apache Batik). No matter how hard I try I cannot get it to discover the source code for the batik classes so QuickJavadoc doesn't work.

However, there are no exceptions so I really don't know what to put in a bug report :o/.

So I'm posting this here... hopefully someone from IntelliJ can respond and give an idea about what to do about this.

I've created a project that has this behavior. Unfortunately it's ~4Mb so I can't attach it to the post but I've set it up on a seperate web server:

http://cvs.ru.is/~stefanf/chambercontrol.zip

Directions:
Get the zip file, unzip it, open the project. There's only one java file in the project, open it up and search for "JSVGCanvas" which is a class from the Batik library. Position the cursor on it and press CtrlQ... no (useful) JavaDoc, you can also try pressing CtrlSpace inside the constructor parenthases and you'll see that there are no parameter names... just the types.

If you're sceptical you can look at project properties and see that the source jar is set as the source for the Batik library and if you're still sceptical you can open up the source jar file and take a look at the source code for JSVGCanvas class to make sure that it's there and that it's JavaDoc'ed.

5 comments
Comment actions Permalink

Oh... by the way... I'd like to hear from people that are experiencing this problem and if there is anything that they could imagine as being a reason.

The only unorthodox thing in my project is that:
1) The source jar file is a bit large (2.1 Mb compressed jar file).
2) There are multiple class jar files but only one source jar file that contains the source for the classes in all the class jar files.

0
Comment actions Permalink

Submit a bug please.

I'm seeing this sometimes (even with jdk sources: sometimes idea finds them
sometimes it doesn't).

I downloaded your project and couldn't make idea go to the source, it
always shows the decompiled class.


0
Comment actions Permalink

Same

Sometime Ctrl-Mouse click will take me to decompiled class although I am
sure source is there and if I do Alt-N will find the real source

So please submit defect

"Stefan Freyr Stefansson" <stefanf@althingi.is> wrote in message
news:20194674.1060362058250.JavaMail.itn@is.intellij.net...

I'm a bit confused as to what I should do here and would really like to

get a response from the IntelliJ team. Is this a known issue? Is anyone
inside IntelliJ having this problem?
>

The problem is that I have a project using a Java SVG library (Apache

Batik). No matter how hard I try I cannot get it to discover the source
code for the batik classes so QuickJavadoc doesn't work.
>

However, there are no exceptions so I really don't know what to put in a

bug report :o/.
>

So I'm posting this here... hopefully someone from IntelliJ can respond

and give an idea about what to do about this.
>

I've created a project that has this behavior. Unfortunately it's ~4Mb so

I can't attach it to the post but I've set it up on a seperate web server:
>

http://cvs.ru.is/~stefanf/chambercontrol.zip

>

Directions:
Get the zip file, unzip it, open the project. There's only one java file

in the project, open it up and search for "JSVGCanvas" which is a class from
the Batik library. Position the cursor on it and press Ctrl+Q... no
(useful) JavaDoc, you can also try pressing Ctrl+Space inside the
constructor parenthases and you'll see that there are no parameter names...
just the types.
>

If you're sceptical you can look at project properties and see that the

source jar is set as the source for the Batik library and if you're still
sceptical you can open up the source jar file and take a look at the source
code for JSVGCanvas class to make sure that it's there and that it's
JavaDoc'ed.


0
Comment actions Permalink

I think following tracker issues are related:

#11479
#12627
maybe #14853 ?

0
Comment actions Permalink

Discussion should continue in
http://www.intellij.net/tracker/idea/viewSCR?publicId=14922

Friendly,
Dmitry

Stefan Freyr Stefansson wrote:

I'm a bit confused as to what I should do here and would really like to
get a response from the IntelliJ team. Is this a known issue? Is anyone
inside IntelliJ having this problem?

The problem is that I have a project using a Java SVG library (Apache
Batik). No matter how hard I try I cannot get it to discover the source
code for the batik classes so QuickJavadoc doesn't work.

However, there are no exceptions so I really don't know what to put in a
bug report :o/.

So I'm posting this here... hopefully someone from IntelliJ can respond
and give an idea about what to do about this.

I've created a project that has this behavior. Unfortunately it's ~4Mb so
I can't attach it to the post but I've set it up on a seperate web server:

http://cvs.ru.is/~stefanf/chambercontrol.zip

Directions:
Get the zip file, unzip it, open the project. There's only one java file
in the project, open it up and search for "JSVGCanvas" which is a class
from the Batik library. Position the cursor on it and press Ctrl+Q... no
(useful) JavaDoc, you can also try pressing Ctrl+Space inside the
constructor parenthases and you'll see that there are no parameter
names... just the types.

If you're sceptical you can look at project properties and see that the
source jar is set as the source for the Batik library and if you're still
sceptical you can open up the source jar file and take a look at the
source code for JSVGCanvas class to make sure that it's there and that
it's JavaDoc'ed.


--
Dmitry Lomov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.