Offline inspections in 929

Just tried to run an offline inspection for the first time and have come
across a few problems.

1) You can't run offline inspections while you've got IDEA open. Not that
much of a problem, just annoying.

2) I see a lot of exception stack traces scroll past and no output gets
produced. That's a showstopper. Does anyone run the offline inspections
successfully with the EAP releases? The exceptions seem to relate to several
different things:

  • There appears to be two copies of cvsSupport2 trying to load and register.

A lot of the exceptions are because of name collisions between copies of the
same class from the cvsSupport2 plugin. Quite a few more are "Component
already registered" type messages.

  • A NullPointer exception from the UIDesigner.

  • Component class FileDocumentManager being requested during its own

initialisation procedure.

I can run the inspections from within IDEA without any trouble; it's just
the offline ones. Is there something I'm missing, or is this a bug?

Cheers,
Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

13 comments
Comment actions Permalink

A bug obviously. It actually seems no one ever have used offline
inspections. Sad...

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Vilya Harvey" <vilya.harvey@digitalsteps.com> wrote in message
news:bk9f8k$k07$1@is.intellij.net...

Just tried to run an offline inspection for the first time and have come
across a few problems.

>

1) You can't run offline inspections while you've got IDEA open. Not that
much of a problem, just annoying.

>

2) I see a lot of exception stack traces scroll past and no output gets
produced. That's a showstopper. Does anyone run the offline inspections
successfully with the EAP releases? The exceptions seem to relate to

several

different things:

>

  • There appears to be two copies of cvsSupport2 trying to load and

register.

A lot of the exceptions are because of name collisions between copies of

the

same class from the cvsSupport2 plugin. Quite a few more are "Component
already registered" type messages.

>

  • A NullPointer exception from the UIDesigner.

>

  • Component class FileDocumentManager being requested during its own

initialisation procedure.

>

I can run the inspections from within IDEA without any trouble; it's just
the offline ones. Is there something I'm missing, or is this a bug?

>

Cheers,
Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

>

Disclaimer

>

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

>


0
Comment actions Permalink

Actually, we have comtemplated adding offline inspections to our build
process (Ant). Is that possible?

"Maxim Shafirov (JetBrains)" <max@intellij.net> wrote in message
news:bkcb6k$t8g$1@is.intellij.net...

A bug obviously. It actually seems no one ever have used offline
inspections. Sad...

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Vilya Harvey" <vilya.harvey@digitalsteps.com> wrote in message
news:bk9f8k$k07$1@is.intellij.net...

Just tried to run an offline inspection for the first time and have come
across a few problems.

>

1) You can't run offline inspections while you've got IDEA open. Not

that

much of a problem, just annoying.

>

2) I see a lot of exception stack traces scroll past and no output gets
produced. That's a showstopper. Does anyone run the offline inspections
successfully with the EAP releases? The exceptions seem to relate to

several

different things:

>

  • There appears to be two copies of cvsSupport2 trying to load and

register.

A lot of the exceptions are because of name collisions between copies of

the

same class from the cvsSupport2 plugin. Quite a few more are "Component
already registered" type messages.

>

  • A NullPointer exception from the UIDesigner.

>

  • Component class FileDocumentManager being requested during its own

initialisation procedure.

>

I can run the inspections from within IDEA without any trouble; it's

just

the offline ones. Is there something I'm missing, or is this a bug?

>

Cheers,
Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

>

Disclaimer

>

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

>

>
>


0
Comment actions Permalink

process (Ant). Is that possible?

Sure. Why not?

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

It must be because the online inspections are so damn useful! :) Still, at
least one person other than myself has tried it. I just noticed this bug report:

http://www.intellij.net/tracker/idea/viewSCR?publicId=16589

I've added my comments to it.

Vil.

Maxim Shafirov (JetBrains) wrote:

A bug obviously. It actually seems no one ever have used offline
inspections. Sad...


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

Fixed in 933. Unfortunately it will not use Dave's InspectionGadgets plugin
since I need a way to somehow load ONLY inspection plugins. Others may
require things like toolwindows or editors that aren't accessible in command
line mode and fail with exceptions. Any ideas? Some
inspection hint to META-INF? -- Best regards, Maxim Shafirov JetBrains, Inc / IntelliJ Software http://www.intellij.com "Develop with pleasure!" "Vilya Harvey" ]]> wrote in message
news:bkcnu5$htk$1@is.intellij.net...

It must be because the online inspections are so damn useful! :) Still,

at

least one person other than myself has tried it. I just noticed this bug

report:
>

http://www.intellij.net/tracker/idea/viewSCR?publicId=16589

>

I've added my comments to it.

>

Vil.

>

Maxim Shafirov (JetBrains) wrote:

A bug obviously. It actually seems no one ever have used offline
inspections. Sad...

>

--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

>

Disclaimer

>

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

>


0
Comment actions Permalink

Some problems I've run into with offline inspections that have kept me from running it as part of the automated build.

As mentioned, you need to have your copy closed.

It requires a display, so if you're running on a server, you need to point it to a valid X Display.

There isn't a good way of displaying the results via HTML, such as can be done when you run it interactively. An XSL stylesheet would be nice.

You can't access third party inspections.

So for standard checks, we use PMD and checkstyle.

--Tim

0
Comment actions Permalink

Yes, the inspection looks nice. Or maybe something like false]]>, to accomodate further non-visual tools.

0
Comment actions Permalink

As mentioned, you need to have your copy closed.

Easy fixable. Modify inspect.bat/inspect.sh/inspect.lax (whatever you have)
in a way that it has idea.config.home & idea.system.home pointing to some
place other than idea.bat/idea.sh/idea.lax do.

It requires a display, so if you're running on a server, you need to point

it to a valid X Display.
Hmm? I wonder what should we do to prevent this? The probable reason that
comes to my mind is we should not use awt dispatch thread.

There isn't a good way of displaying the results via HTML, such as can be

done when you run it interactively. An XSL stylesheet would be nice.
Agreed.

You can't access third party inspections.

Will be fixed.


0
Comment actions Permalink

That sounds good to me. Nice and simple and it leaves room for defining
other plugin categories in the future. I'm not a plugin author though, so
I'd bow down to the wisdom of people who have a bit more experience here.

I guess there would need to be some guidelines as to what fits in this
category: a plugin that provides inspection-like functionality inside it's
own GUI would not, for example. That's probably a good thing to use the
TWiki for.

Vil.

Maxim Shafirov (JetBrains) wrote:

Fixed in 933. Unfortunately it will not use Dave's InspectionGadgets plugin
since I need a way to somehow load ONLY inspection plugins. Others may
require things like toolwindows or editors that aren't accessible in command
line mode and fail with exceptions. Any ideas? Some
<category>inspection</category> hint to META-INF?


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

Disclaimer

This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

0
Comment actions Permalink

None of my inspections should require anything other than a Psi tree and a configuation object (loaded by DefaultJDOMExternalizer), so running off-line shouldn't be a problem. I never tried running them off-line (running them on-line is all I personally need), but will certainly support that mode if JetBrains makes it possible.

--Dave Griffith

0
Comment actions Permalink

>Easy fixable. Modify inspect.bat/inspect.sh/inspect.lax (whatever you have)
>in a way that it has idea.config.home & idea.system.home pointing to some
>place other than idea.bat/idea.sh/idea.lax do.

Aren't there license issues with this?

--Dave

0
Comment actions Permalink

No. AFAIK license prevents from running IDEA with the same licesnce key on
different computers. And BTW offline inspections do the same check natural
IDEA does.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:18743262.1064427490702.JavaMail.itn@is.intellij.net...

>Easy fixable. Modify inspect.bat/inspect.sh/inspect.lax (whatever you

have)

>in a way that it has idea.config.home & idea.system.home pointing to some
>place other than idea.bat/idea.sh/idea.lax do.

>

Aren't there license issues with this?

>

--Dave



0
Comment actions Permalink

Possible workaround is to run offline inspections nightly when probably
nobody needs his IDEA running :-).

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Maxim Shafirov (JetBrains)" <max@intellij.net> wrote in message
news:bksplk$gbq$1@is.intellij.net...

No. AFAIK license prevents from running IDEA with the same licesnce key on
different computers. And BTW offline inspections do the same check natural
IDEA does.

>

--

>

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

>
>

"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:18743262.1064427490702.JavaMail.itn@is.intellij.net...

>Easy fixable. Modify inspect.bat/inspect.sh/inspect.lax (whatever you

have)

>in a way that it has idea.config.home & idea.system.home pointing to

some

>place other than idea.bat/idea.sh/idea.lax do.

>

Aren't there license issues with this?

>

--Dave

>
>


0

Please sign in to leave a comment.