Hi,
I am curious about the recommended way to integerate a 3rd party Code Checker into IntelliJ ?
I can use the External Tool definition and get the tool to run, but I would like to make a connection betwen its error messages and the source in the buffer.
Do I need to write a PlugIn for this ?
If so, can you recommend another PlugIn to look at as an example that might do similiar things ?
Thanks a ton.
Jim
Checkout the "Output Filters..." button in the Edit External Tool window. I
think that'll allow you to do what you want.
chris
-
"Jim Piersol" <jrp@strata-group.com> wrote in message
news:1103_1029857513@news.intellij.net...
Hi,
>
I am curious about the recommended way to integerate a 3rd party Code
Checker into IntelliJ ?
>
I can use the External Tool definition and get the tool to run, but I
would like to make a connection betwen its error messages and the source in
the buffer.
>
Do I need to write a PlugIn for this ?
>
If so, can you recommend another PlugIn to look at as an example that
might do similiar things ?
>
Thanks a ton.
>
Jim
>
>
I seen that, but couldn't find any documentation on it, so I wasn't sure. Does anyone know where to find the docs for this feature ?
On Tue, 20 Aug 2002 11:36:32 -0400, "Chris Bartley" <spam@feynman.org> wrote:
Checkout the "Output Filters..." button in the Edit External Tool window. I
think that'll allow you to do what you want.
chris
------
"Jim Piersol" <jrp@strata-group.com> wrote in message
Hi,
>
I am curious about the recommended way to integerate a 3rd party Code
Checker into IntelliJ ?
>
I can use the External Tool definition and get the tool to run, but I
would like to make a connection betwen its error messages and the source in
the buffer.
>
Do I need to write a PlugIn for this ?
>
If so, can you recommend another PlugIn to look at as an example that
might do similiar things ?
>
Thanks a ton.
>
Jim
>
>
Unfortunately the documentation is not available yet.
In general you should provide some regular expression (Perl5 syntax) with
$FILE_PATH$, $LINE$ and $COLUMN$ included (you can insert the macros by
right clicking in the text field).
A very simple sample filter:
$FILE_PATH$:$LINE$
--
Valentin Kipiatkov
JetBrains, Inc
"Develop with pleasure!"
"Jim Piersol" <jrp@strata-group.com> wrote in message
news:1104_1029859672@news.intellij.net...
I seen that, but couldn't find any documentation on it, so I wasn't sure.
Does anyone know where to find the docs for this feature ?
>
>
On Tue, 20 Aug 2002 11:36:32 -0400, "Chris Bartley" <spam@feynman.org>
wrote:
Checkout the "Output Filters..." button in the Edit External Tool
window. I
think that'll allow you to do what you want.
>
chris
------
"Jim Piersol" <jrp@strata-group.com> wrote in message
Hi,
>
I am curious about the recommended way to integerate a 3rd party Code
Checker into IntelliJ ?
>
I can use the External Tool definition and get the tool to run, but I
would like to make a connection betwen its error messages and the source
in
the buffer.
>
Do I need to write a PlugIn for this ?
>
If so, can you recommend another PlugIn to look at as an example that
might do similiar things ?
>
Thanks a ton.
>
Jim
>
>
>
>
>
>
>
Here is a sample of my output:
java -jar /work/devtools/checkstyle/checkstyle-2.3/checkstyle-all-2.3.jar AbstractReportJob.java
Starting audit...
AbstractReportJob.java:18: Avoid using the '.*' form of import.
AbstractReportJob.java:25: Avoid using the '.*' form of import.
AbstractReportJob.java:26: Avoid using the '.*' form of import.
AbstractReportJob.java:31: Avoid using the '.*' form of import.
AbstractReportJob.java:46:30: variable 'listener' must be private and have accessor methods.
AbstractReportJob.java:51:19: variable 'pkCustomer' must be private and have accessor methods.
AbstractReportJob.java:56:22: variable 'report' must be private and have accessor methods.
AbstractReportJob.java:61:22: variable 'reportJobSID' must be private and have accessor methods.
I tried using an output filter of:
$FILE_PATH$:$LINE$
And
$FILE_PATH$:$LINE$:$COLUMN$
But I never see any indication that any of my errors are hooked to the source buffer.
Is there any other tricks I can try ?
Thanks,
Jim
On Tue, 20 Aug 2002 23:37:12 +0400, "Valentin Kipiatkov" <valentin@intellij.com> wrote:
Unfortunately the documentation is not available yet.
In general you should provide some regular expression (Perl5 syntax) with
$FILE_PATH$, $LINE$ and $COLUMN$ included (you can insert the macros by
right clicking in the text field).
A very simple sample filter:
$FILE_PATH$:$LINE$
--
Valentin Kipiatkov
JetBrains, Inc
"Develop with pleasure!"
"Jim Piersol" <jrp@strata-group.com> wrote in message
I seen that, but couldn't find any documentation on it, so I wasn't sure.
Does anyone know where to find the docs for this feature ?
>
>
On Tue, 20 Aug 2002 11:36:32 -0400, "Chris Bartley" <spam@feynman.org>
wrote:
Checkout the "Output Filters..." button in the Edit External Tool
window. I
think that'll allow you to do what you want.
>
chris
------
"Jim Piersol" <jrp@strata-group.com> wrote in message
Hi,
>
I am curious about the recommended way to integerate a 3rd party Code
Checker into IntelliJ ?
>
I can use the External Tool definition and get the tool to run, but I
would like to make a connection betwen its error messages and the source
in
the buffer.
>
Do I need to write a PlugIn for this ?
>
If so, can you recommend another PlugIn to look at as an example that
might do similiar things ?
>
Thanks a ton.
>
Jim
>
>
>
>
>
>
>
I guess the problem is that 'AbstractReportJob.java' is not a full path to
the file. Is it a relative path to some directory or just a file name?
--
Valentin Kipiatkov
JetBrains, Inc
"Develop with pleasure!"
"Jim Piersol" <jrp@strata-group.com> wrote in message
news:1105_1029894080@news.intellij.net...
Here is a sample of my output:
>
java -jar /work/devtools/checkstyle/checkstyle-2.3/checkstyle-all-2.3.jar
AbstractReportJob.java
Starting audit...
AbstractReportJob.java:18: Avoid using the '.*' form of import.
AbstractReportJob.java:25: Avoid using the '.*' form of import.
AbstractReportJob.java:26: Avoid using the '.*' form of import.
AbstractReportJob.java:31: Avoid using the '.*' form of import.
AbstractReportJob.java:46:30: variable 'listener' must be private and have
accessor methods.
AbstractReportJob.java:51:19: variable 'pkCustomer' must be private and
have accessor methods.
AbstractReportJob.java:56:22: variable 'report' must be private and have
accessor methods.
AbstractReportJob.java:61:22: variable 'reportJobSID' must be private and
have accessor methods.
>
>
I tried using an output filter of:
>
$FILE_PATH$:$LINE$
>
And
>
$FILE_PATH$:$LINE$:$COLUMN$
>
But I never see any indication that any of my errors are hooked to the
source buffer.
>
Is there any other tricks I can try ?
>
Thanks,
Jim
>
>
On Tue, 20 Aug 2002 23:37:12 +0400, "Valentin Kipiatkov"
<valentin@intellij.com> wrote:
Unfortunately the documentation is not available yet.
>
In general you should provide some regular expression (Perl5 syntax)
with
$FILE_PATH$, $LINE$ and $COLUMN$ included (you can insert the macros by
right clicking in the text field).
>
A very simple sample filter:
>
$FILE_PATH$:$LINE$
>
--
Valentin Kipiatkov
JetBrains, Inc
"Develop with pleasure!"
>
"Jim Piersol" <jrp@strata-group.com> wrote in message
I seen that, but couldn't find any documentation on it, so I wasn't
sure.
Does anyone know where to find the docs for this feature ?
>
>
On Tue, 20 Aug 2002 11:36:32 -0400, "Chris Bartley" <spam@feynman.org>
wrote:
Checkout the "Output Filters..." button in the Edit External Tool
window. I
think that'll allow you to do what you want.
>
chris
------
"Jim Piersol" <jrp@strata-group.com> wrote in message
Hi,
>
I am curious about the recommended way to integerate a 3rd party
Code
Checker into IntelliJ ?
>
I can use the External Tool definition and get the tool to run,
but I
would like to make a connection betwen its error messages and the
source
in
the buffer.
>
Do I need to write a PlugIn for this ?
>
If so, can you recommend another PlugIn to look at as an example
that
might do similiar things ?
>
Thanks a ton.
>
Jim
>
>
>
>
>
>
>
>
>
>
>
>
OK, I changed my commandline so I get output that looks like this:
C:\work\dev\C3C\V9_9_9_9\src\java\strata\common\service\report\AbstractReportJob.java:18: Avoid using the '.*' form of import.
I have an output filter like this:
$FILE_PATH$:$LINE$
Still NO highlighting or connectivity between messages and source buffer. What is wrong with this ? It can't be this hard, can it ?