jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Help menu options disabled after program is run #272

Open AndyJudkis opened 5 years ago

AndyJudkis commented 5 years ago

When first starting Processing in python mode, the help menu options work fine. After running any program (including an empty one), they are disabled. Toggling from Python to Java and then back to Python seems to re-enable them. Not the end of the world, but a bit of a nuisance when trying to show the reference to new users. Thanks! Andy

villares commented 5 years ago

Hi @AndyJudkis ! Can you give more details? Have you tried on the Java mode to see if it's a global IDE thing? Could you send OS details, Processing IDE version and Python Mode version?

cheers, Alexandre

AndyJudkis commented 5 years ago

HI Alexandre, Just verified that it still exists with: Processing 3.5.3 Py mode 3 3056 OS X 10.14.6 I don't see it with the Java version It's simple to reproduce: switch to Python mode, and observe that the help menu works. Click the 'Run' triangle with any program - even an empty program. Check the help menu again, and now everything is disabled.

Hope this is helpful -- thanks for looking into it. cheers, Andy

jdf commented 5 years ago

I've been poring over the source code of both Processing and Python Mode, and cannot for the life of me find any code that disables the Help menu. If anyone can find it, and point me to it, I'd be much obliged.

jdf commented 5 years ago

Even weirder: when I instrument the Help menu, its menu items, and its Actions to crash when disabled, they never crash. And yet they are definitely being disabled by some process. I'm mystified.

jdf commented 5 years ago

If I name the menu "Helps" rather than "Help", the problem does not happen. The OS X operating system is disabling all Help menu items in response to who knows what trigger. The Java handles to those menu items have no idea that they're disabled, and cannot do anything about it.