Home » Language IDEs » AspectJ » Missing source file references in error messages
|
Re: Missing source file references in error messages [message #39404 is a reply to message #39311] |
Mon, 26 July 2004 12:26 |
Eclipse User |
|
|
|
Originally posted by: mchapman.uk.ibm.com
On Sun, 25 Jul 2004 22:45:29 +0200, Jan Ploski wrote:
> I just downloaded AJDT 1.1.11 and installed it in Eclipse 3.0. It seems
> that error messages in the Problems view refer to the project instead of
> individual source files even though the line numbers do appear there.
I don't quite follow, can you give an example? Errors from the AspectJ
compiler should appear just like errors from the Java compiler, showing
the resource, folder, and line number where the error occurs.
> Moreover, the *.aj editor does not display the red markers in source files
> that contain errors.
I assume you mean the red squiggly underlines. This is expected behaviour
- the eager parser is disabled because it does not yet understand AspectJ
syntax.
Regards,
Matt.
|
|
|
Re: Missing source file references in error messages [message #39434 is a reply to message #39404] |
Mon, 26 July 2004 13:44 |
Jan Ploski Messages: 16 Registered: July 2009 |
Junior Member |
|
|
On Mon, 26 Jul 2004 13:26:54 +0100, Matt Chapman <mchapman@uk.ibm.com>
wrote:
> On Sun, 25 Jul 2004 22:45:29 +0200, Jan Ploski wrote:
>> I just downloaded AJDT 1.1.11 and installed it in Eclipse 3.0. It seems
>> that error messages in the Problems view refer to the project instead of
>> individual source files even though the line numbers do appear there.
>
> I don't quite follow, can you give an example? Errors from the AspectJ
> compiler should appear just like errors from the Java compiler, showing
> the resource, folder, and line number where the error occurs.
Ok, here is a clarification:
suppose I make an obvious syntax error in one of my aspects (*.aj file):
after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
^^^
Then the Problems view displays the correct error message:
Syntax error on token "foo", VariableDeclaratorId expected after this token
and "line 15" as Location, but instead of the aj-file the Resource is
set to project name. Double-clicking the problem entry does not take
me to the line 15, in fact it does nothing at all.
>
>> Moreover, the *.aj editor does not display the red markers in source
>> files
>> that contain errors.
>
> I assume you mean the red squiggly underlines. This is expected behaviour
> - the eager parser is disabled because it does not yet understand AspectJ
> syntax.
I mean both the squiggly lines and the red x-markers that appear on the
left margin.
I just tried it on a PC in the office and it's the same as at home.
If you can confirm it behaves the same way on yours, I will file
an RFE, if you can't, I will file a bug report instead ;-)
Best regards -
Jan Ploski
|
|
|
Re: Missing source file references in error messages [message #39465 is a reply to message #39434] |
Mon, 26 July 2004 16:55 |
Eclipse User |
|
|
|
Originally posted by: mchapman.uk.ibm.com
On Mon, 26 Jul 2004 15:44:41 +0200, Jan Ploski wrote:
> Ok, here is a clarification:
> suppose I make an obvious syntax error in one of my aspects (*.aj file):
>
> after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
> ^^^
>
> Then the Problems view displays the correct error message:
>
> Syntax error on token "foo", VariableDeclaratorId expected after this
> token
>
> and "line 15" as Location, but instead of the aj-file the Resource is
> set to project name. Double-clicking the problem entry does not take me
> to the line 15, in fact it does nothing at all.
Thanks for the clarification. I can't reproduce that scenario at all -
everything works as expected for me. Please raise an AJDT bug for this,
with details of your environment and project setup.
> I mean both the squiggly lines and the red x-markers that appear on the
> left margin.
>
> I just tried it on a PC in the office and it's the same as at home. If
> you can confirm it behaves the same way on yours, I will file an RFE, if
> you can't, I will file a bug report instead ;-)
Hmm, I think I may have misunderstood and was talking about a different
issue - when you first used AJDT you should have seen the AJDT Preferences
Configuration Wizard - did you change any of the default settings on this?
So here you have an aspect in a .aj file which has an error, and you don't
get the expected red cross marker in the left margin? Is the scenario the
same as above? If so, it's probably caused by the same problem, so one bug
should suffice. Please attach a screenshot to the bug report if possible.
Regards,
Matt.
|
|
|
Re: Missing source file references in error messages [message #39587 is a reply to message #39465] |
Tue, 27 July 2004 15:18 |
Jan Ploski Messages: 16 Registered: July 2009 |
Junior Member |
|
|
On Mon, 26 Jul 2004 17:55:55 +0100, Matt Chapman <mchapman@uk.ibm.com>
wrote:
> On Mon, 26 Jul 2004 15:44:41 +0200, Jan Ploski wrote:
>> Ok, here is a clarification:
>> suppose I make an obvious syntax error in one of my aspects (*.aj file):
>>
>> after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
>> ^^^
>>
>> Then the Problems view displays the correct error message:
>>
>> Syntax error on token "foo", VariableDeclaratorId expected after this
>> token
>>
>> and "line 15" as Location, but instead of the aj-file the Resource is
>> set to project name. Double-clicking the problem entry does not take me
>> to the line 15, in fact it does nothing at all.
>
> Thanks for the clarification. I can't reproduce that scenario at all -
> everything works as expected for me. Please raise an AJDT bug for this,
> with details of your environment and project setup.
Hello Matt,
I am not sure what details you require.
>> I mean both the squiggly lines and the red x-markers that appear on the
>> left margin.
>>
>> I just tried it on a PC in the office and it's the same as at home. If
>> you can confirm it behaves the same way on yours, I will file an RFE, if
>> you can't, I will file a bug report instead ;-)
>
> Hmm, I think I may have misunderstood and was talking about a different
> issue - when you first used AJDT you should have seen the AJDT
> Preferences Configuration Wizard - did you change any of the default
> settings on this?
Yes, probably - I prefer the normal Java editor for *.java files for now.
(Clicking-through to a declaration do not work in the AJDT editor and the
Source menu is absent, but afaicr these are known issues.)
> So here you have an aspect in a .aj file which has an error, and you
> don't get the expected red cross marker in the left margin? Is the
> scenario
> the same as above?
Yes and yes.
Moving further discussion of this problem to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=70913
Regards,
JPL
|
|
| |
Re: Missing source file references in error messages [message #582297 is a reply to message #39404] |
Mon, 26 July 2004 13:44 |
Jan Ploski Messages: 16 Registered: July 2009 |
Junior Member |
|
|
On Mon, 26 Jul 2004 13:26:54 +0100, Matt Chapman <mchapman@uk.ibm.com>
wrote:
> On Sun, 25 Jul 2004 22:45:29 +0200, Jan Ploski wrote:
>> I just downloaded AJDT 1.1.11 and installed it in Eclipse 3.0. It seems
>> that error messages in the Problems view refer to the project instead of
>> individual source files even though the line numbers do appear there.
>
> I don't quite follow, can you give an example? Errors from the AspectJ
> compiler should appear just like errors from the Java compiler, showing
> the resource, folder, and line number where the error occurs.
Ok, here is a clarification:
suppose I make an obvious syntax error in one of my aspects (*.aj file):
after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
^^^
Then the Problems view displays the correct error message:
Syntax error on token "foo", VariableDeclaratorId expected after this token
and "line 15" as Location, but instead of the aj-file the Resource is
set to project name. Double-clicking the problem entry does not take
me to the line 15, in fact it does nothing at all.
>
>> Moreover, the *.aj editor does not display the red markers in source
>> files
>> that contain errors.
>
> I assume you mean the red squiggly underlines. This is expected behaviour
> - the eager parser is disabled because it does not yet understand AspectJ
> syntax.
I mean both the squiggly lines and the red x-markers that appear on the
left margin.
I just tried it on a PC in the office and it's the same as at home.
If you can confirm it behaves the same way on yours, I will file
an RFE, if you can't, I will file a bug report instead ;-)
Best regards -
Jan Ploski
|
|
|
Re: Missing source file references in error messages [message #582319 is a reply to message #39434] |
Mon, 26 July 2004 16:55 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
On Mon, 26 Jul 2004 15:44:41 +0200, Jan Ploski wrote:
> Ok, here is a clarification:
> suppose I make an obvious syntax error in one of my aspects (*.aj file):
>
> after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
> ^^^
>
> Then the Problems view displays the correct error message:
>
> Syntax error on token "foo", VariableDeclaratorId expected after this
> token
>
> and "line 15" as Location, but instead of the aj-file the Resource is
> set to project name. Double-clicking the problem entry does not take me
> to the line 15, in fact it does nothing at all.
Thanks for the clarification. I can't reproduce that scenario at all -
everything works as expected for me. Please raise an AJDT bug for this,
with details of your environment and project setup.
> I mean both the squiggly lines and the red x-markers that appear on the
> left margin.
>
> I just tried it on a PC in the office and it's the same as at home. If
> you can confirm it behaves the same way on yours, I will file an RFE, if
> you can't, I will file a bug report instead ;-)
Hmm, I think I may have misunderstood and was talking about a different
issue - when you first used AJDT you should have seen the AJDT Preferences
Configuration Wizard - did you change any of the default settings on this?
So here you have an aspect in a .aj file which has an error, and you don't
get the expected red cross marker in the left margin? Is the scenario the
same as above? If so, it's probably caused by the same problem, so one bug
should suffice. Please attach a screenshot to the bug report if possible.
Regards,
Matt.
|
|
|
Re: Missing source file references in error messages [message #582373 is a reply to message #39465] |
Tue, 27 July 2004 15:18 |
Jan Ploski Messages: 16 Registered: July 2009 |
Junior Member |
|
|
On Mon, 26 Jul 2004 17:55:55 +0100, Matt Chapman <mchapman@uk.ibm.com>
wrote:
> On Mon, 26 Jul 2004 15:44:41 +0200, Jan Ploski wrote:
>> Ok, here is a clarification:
>> suppose I make an obvious syntax error in one of my aspects (*.aj file):
>>
>> after(foo) throwing(RemoteDatabaseException e) : interfaceMethods()
>> ^^^
>>
>> Then the Problems view displays the correct error message:
>>
>> Syntax error on token "foo", VariableDeclaratorId expected after this
>> token
>>
>> and "line 15" as Location, but instead of the aj-file the Resource is
>> set to project name. Double-clicking the problem entry does not take me
>> to the line 15, in fact it does nothing at all.
>
> Thanks for the clarification. I can't reproduce that scenario at all -
> everything works as expected for me. Please raise an AJDT bug for this,
> with details of your environment and project setup.
Hello Matt,
I am not sure what details you require.
>> I mean both the squiggly lines and the red x-markers that appear on the
>> left margin.
>>
>> I just tried it on a PC in the office and it's the same as at home. If
>> you can confirm it behaves the same way on yours, I will file an RFE, if
>> you can't, I will file a bug report instead ;-)
>
> Hmm, I think I may have misunderstood and was talking about a different
> issue - when you first used AJDT you should have seen the AJDT
> Preferences Configuration Wizard - did you change any of the default
> settings on this?
Yes, probably - I prefer the normal Java editor for *.java files for now.
(Clicking-through to a declaration do not work in the AJDT editor and the
Source menu is absent, but afaicr these are known issues.)
> So here you have an aspect in a .aj file which has an error, and you
> don't get the expected red cross marker in the left margin? Is the
> scenario
> the same as above?
Yes and yes.
Moving further discussion of this problem to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=70913
Regards,
JPL
|
|
|
Goto Forum:
Current Time: Thu Nov 14 08:02:38 GMT 2024
Powered by FUDForum. Page generated in 0.02528 seconds
|