> From: "Valentin Kipiatkov" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [Eap-list] Bugs with Ariadna's unused members/local variable
feature.
> Date: Thu, 7 Feb 2002 13:14:43 +0300
>
> > Private constructors that are not used should not be marked as unused.
>
> Why?
Because I don't want anyone instantiating my class. It's a utility class
with nothing but static members. You might want to have a special case for
this situation.
> > The String[] argument to this signature: public static void =
> main(String[] args) should not be marked unused since this is a special =
> signature as we all know.
>
> This is corrected in #602.
I don't know yet if IDEA recognizes any other "special methods" like those
used for serialization such as readResolve(). If you do already then great.
> > The unused variable feature doesn't work in JSPs.
>
> Could you please specify it more exactly? I checked it on some small
> examples and it worked.
>
Weird. I'm getting mixed behavior of IDEA in my JSPs. IDEA isn't
highlighting any errors (it used to in 2.5.1). In one of my JSPs it detects
a couple unused variables but it doesn't in the other JSP. The little
status circle is always gray for my JSPs. I tried deleting sections of one
of the JSPs that didn't have unused-variable detection, piece by piece,
until I was left with <% int z= 5; %> and it still didn't realize that z is
unused. I then created a new jsp and added that same text and it didn't
notice that z is unused either. I then copied and pasted that snipped onto
the JSP that did have unused variable detection when the whole text was
selected as to replace the entire contents. It didn't see that z was
unused. I undid the paste-replace, and it DID NOT see the unused variables
in the JSP that it had moments before. Making a change and doing a "cvs
update -C" had no effect in making IDEA remember that it saw unused
variables. I don't know what to do now. IDEA's other smart JSP
capabilities are there though.
And I found another bug... I just used the JSP tag completion for the first
time with a jsp:include action. Pretty cool. I found that if I used the
mouse to scroll the listing-popup, they keyboard will no longer insert text
to the field until I make the listing-popup go away. This bug isn't just
for JSPs, it is true for any auto-pop-up listing selection.
> > Where did the vertical gray line bar go that marked off the number of
> characters width?
>
> Please check "Right margin" option in "Editor" options and right margin
> color in "Colors&Fonts" options.
I found the color setting un-activated, so I checked foreground and chose a
dark-gray color. Then I hit "OK" ("Apply" then "OK"/"Cancel" comes to the
same conclusion); and I saw NO vertical bar. I went back to the color
options and it DID NOT REMEMBER my setting. Restartiong IDEA after applying
had no effect either. I tried changing one of the other text color options
and they worked. After closer inspection, if I go to select one of the
other color options and select "Right Margin" again, it doesn't remember my
setting then either. It also doesn't detect a color change when I change
the method separator either. The method separator was a gray anyway and I
don't see any method separators in my editor windows.
~ David Smiley
MITRE
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list