gdk highligting issue and organize imports bug

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

gdk highligting issue and organize imports bug

Skeptic .

Hi,

I guess that it is a known issue, but gdk highlighting on variables/method is annoying.


e.g. 


def step = 3

def push() { }



Also, I often get a bug with organize imports, I can't figure out how to reproduce it exactly, but I think it only happens when organizing imports while errors are still present in the file. The end result is the included package being added (in double) above the package declaration.


Thanks for your work on the plug-in.




MSN Rencontres: Faites une rencontre spéciale cette année.
Reply | Threaded
Open this post in threaded view
|

Re: gdk highligting issue and organize imports bug

Andrew Eisenberg
> I guess that it is a known issue, but gdk highlighting on variables/method
> is annoying.

You can disable highlighting of gdk methods in the preferences page.
You will need to close and reopen your editors before it comes into
effect, though.

> Also, I often get a bug with organize imports, I can't figure out how to
> reproduce it exactly, but I think it only happens when organizing imports
> while errors are still present in the file. The end result is the included
> package being added (in double) above the package declaration.

That's correct.  Currently, organize imports will not operate
correctly if there is an unrecoverable syntax error in the file.  It
occurs to me that this is something that the editor should know about
(ie- if the contents of your groovy file have an unrecoverable syntax
error).  But, currently, this is not easily done.

I have raised: http://jira.codehaus.org/browse/GRECLIPSE-755

The correct behavior would be to look for a special marker on the file
that signifies an unrecoverable parse error and if it exists do not do
organize imports.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: gdk highligting issue and organize imports bug

Skeptic .


> You can disable highlighting of gdk methods in the preferences page.
> You will need to close and reopen your editors before it comes into
> effect, though.

Just to be sure we understood each other, gdk highligting is good to use when actually calling them, it is annoying when it is
wrongly applied to variables/methods bearing the same names.

Thanks.



30 jours de prix : Hotmail vous simplifie la vie! Inscrivez-vous!
Reply | Threaded
Open this post in threaded view
|

Re: gdk highligting issue and organize imports bug

Andrew Eisenberg
The syntax highlighter only works on a simple scanning of the file.
It does not even do a full parse, so we cannot determine the
difference between the two situations you describe.

I'd recommend that you raise a jira issue for this.

On Thu, May 27, 2010 at 9:28 AM, Skeptic . <[hidden email]> wrote:

>
>
>> You can disable highlighting of gdk methods in the preferences page.
>> You will need to close and reopen your editors before it comes into
>> effect, though.
> Just to be sure we understood each other, gdk highligting is good to use
> when actually calling them, it is annoying when it is
> wrongly applied to variables/methods bearing the same names.
> Thanks.
>
> ________________________________
> 30 jours de prix : Hotmail vous simplifie la vie! Inscrivez-vous!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email