Server side inspections & IDEA-JDKs

I've just tried to run a server-side inspection which worked quite well, but I encountered
a problem: The project uses an IDEA-JDK which only seems to pick up the "standard" files
for an IDEA-JDK from the IDEA-installation pointed to by the jdk.NAME property. However,
the project needs classes from idea.jar which causes incorrect inspection results when
it's not on the classpath.

How can I add additional JARs to a server-side IDEA-JDK?

Thanks,
Sascha

5 comments
Comment actions Permalink

Hello Sascha,

I am afraid that now there is no normal way to define it :(
You can try to use global library in parallel with IDEA SDK and point it
to idea/lib directory on the server-side.

JDK and Global libraries settings for Inspections runner will be reworked
in the nearest future.

Sorry for inconvenience.

Thank you.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I've just tried to run a server-side inspection which worked quite
well, but I encountered a problem: The project uses an IDEA-JDK which
only seems to pick up the "standard" files for an IDEA-JDK from the
IDEA-installation pointed to by the jdk.NAME property. However, the
project needs classes from idea.jar which causes incorrect inspection
results when it's not on the classpath.

How can I add additional JARs to a server-side IDEA-JDK?

Thanks,
Sascha



0
Comment actions Permalink

Hello Anna,

thank you for the fast reply.

I am afraid that now there is no normal way to define it :( You can try
to use global library in parallel with IDEA SDK and point it to idea/lib
directory on the server-side.


Hmm, it's a bit ugly but could indeed work when keeping the global library empty
on client side. I'll try that.

JDK and Global libraries settings for Inspections runner will be
reworked in the nearest future.


Sounds good and is IMHO really important because right now setting up JDKs and
global libraries in TC is quite a big obstacle.

Sascha

0
Comment actions Permalink

Hello Sascha,

Did you try Ipr runner? Do you like settings for jdks and libraries there?

Thanks.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hello Anna,

thank you for the fast reply.

>> I am afraid that now there is no normal way to define it :( You can
>> try to use global library in parallel with IDEA SDK and point it to
>> idea/lib directory on the server-side.
>>

Hmm, it's a bit ugly but could indeed work when keeping the global
library empty on client side. I'll try that.

>> JDK and Global libraries settings for Inspections runner will be
>> reworked in the nearest future.
>>

Sounds good and is IMHO really important because right now setting up
JDKs and global libraries in TC is quite a big obstacle.

Sascha



0
Comment actions Permalink

Hello Anna,

Did you try Ipr runner? Do you like settings for jdks and libraries there?


Yes, this one looks much better. The inspection runner configuration should work
like that.

Sascha

0
Comment actions Permalink

Hello Anna,

just FYI, I ended up using a patched devkit plugin that does not exclude
idea.jar from the JDK definition. I think this change is long overdue since the
language-api needs it anyway.

Sascha

Hello Sascha,

I am afraid that now there is no normal way to define it :( You can try
to use global library in parallel with IDEA SDK and point it to idea/lib
directory on the server-side.

JDK and Global libraries settings for Inspections runner will be
reworked in the nearest future.

Sorry for inconvenience.

Thank you.
---------------------
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

>> I've just tried to run a server-side inspection which worked quite
>> well, but I encountered a problem: The project uses an IDEA-JDK which
>> only seems to pick up the "standard" files for an IDEA-JDK from the
>> IDEA-installation pointed to by the jdk.NAME property. However, the
>> project needs classes from idea.jar which causes incorrect inspection
>> results when it's not on the classpath.
>>
>> How can I add additional JARs to a server-side IDEA-JDK?
>>
>> Thanks,
>> Sascha


0

Please sign in to leave a comment.