Closed jas0501 closed 10 years ago
Can you please post a sketch with which the bug can be reproduced? Do post steps to reproduce the error.
Do usage on stroke //========================= void setup() { size(300,300); stroke(12); }
void draw() { text("Text",20,20); } //==========================
For now, Show Usage only works for methods, variables and classes which have been defined in the Sketch itself.
There are no immediate plans for extending the support for all methods, vars and classes.
Just discovered this myself! I think we need to have a more graceful error when the user tries to do show usage or rename on a variable/method they did not create (or other weird things like a number, etc).
Ah, I think you're right. Even while refactoring, this will be a possible issue for non user defined variables.
I'll first try to see if the options for refactoring and show usage can be grayed out for stuff it can't handle. Otherwise, a more graceful error message. Sounds good?
Alright, I've made changes to how the status message is displayed. Now the error message gets displayed for 2 seconds before disappearing.
When user tries to rename pre-defined classes, methods, etc, the rename dialog is no longer displayed. (See #69)
Fixed for next release.
Trying to get a "Show Usage..." display on something that can't be located issues a message that just flashes and is difficult to see.
Maybe place the message in the "Usage of" window instead.