processing / processing-experimental

Experimental Mode for the PDE
72 stars 25 forks source link

UI issue: "Show Usage..." issues "Can't locate definition whatever" that flashes to fast #65

Closed jas0501 closed 10 years ago

jas0501 commented 10 years ago

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.

Manindra29 commented 10 years ago

Can you please post a sketch with which the bug can be reproduced? Do post steps to reproduce the error.

jas0501 commented 10 years ago

Do usage on stroke //========================= void setup() { size(300,300); stroke(12); }

void draw() { text("Text",20,20); } //==========================

Manindra29 commented 10 years ago

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.

shiffman commented 10 years ago

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).

Manindra29 commented 10 years ago

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?

Manindra29 commented 10 years ago

Alright, I've made changes to how the status message is displayed. Now the error message gets displayed for 2 seconds before disappearing.

Manindra29 commented 10 years ago

When user tries to rename pre-defined classes, methods, etc, the rename dialog is no longer displayed. (See #69)

Manindra29 commented 10 years ago

Fixed for next release.