[ 
https://issues.apache.org/jira/browse/FELIX-4249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781623#comment-13781623
 ] 

Carsten Ziegeler commented on FELIX-4249:
-----------------------------------------

Thanks Robert, I've applied this patch - it would be great if we could have 
real line numbers. I briefly played around with asm and it seems it shouldn't 
be that hard to get line numbers for methods. If you have some idea how to 
easily get line numbers for all instructions this would be really great.

> Make the default error location 1,1 instead of 0,0
> --------------------------------------------------
>
>                 Key: FELIX-4249
>                 URL: https://issues.apache.org/jira/browse/FELIX-4249
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>    Affects Versions: scr generator 1.8.0
>            Reporter: Robert Munteanu
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: maven-scr-plugin 1.15.0, scr ant task 1.9.0, scr 
> generator 1.8.2
>
>         Attachments: FELIX-4249-1.patch
>
>
> The scr generator's error reporting places the errors by default at the 0,0 
> coordinates. In practice, this means that in Eclipse the error/warning is 
> associated with the file and shown in the problems view but not in the editor.
> To make this more visible, I suggest that we change the error location to 
> 1,1, which places it in the first line of the file. Should we want to, we can 
> extract line ( but not column ) information from ASM to place the warning 
> closer to the source. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to