Bug 156928 - Python macro dialog box buttons are always greyed out
Summary: Python macro dialog box buttons are always greyed out
Status: RESOLVED DUPLICATE of bug 56289
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-26 09:48 UTC by LucasLibre
Modified: 2023-09-11 13:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LucasLibre 2023-08-26 09:48:51 UTC
Description:
On Windows, if you install LibreOffice after uninstalling JRE, the buttons in the Python Macros dialog are 'greyed out' and unclickable, preventing Creation, Editing, Renaming, and Deletion of Python macros.

Steps to Reproduce:
1. Install JRE for Windows
2. Uninstall JRE for Windows
3. Install latest LibreOfficeDev daily build
4. Open Writer
5. Go to Tools > Macros > Organise Macros > Python …

Actual Results:
The dialog box appears, but the Create, Edit, Rename, and Delete buttons are greyed out.

Expected Results:
The buttons shouldn't be greyed out.


Reproducible: Always


User Profile Reset: No

Additional Info:
Previously, an error message appeared before this dialog appeared; this has been fixed (see bug 156161 and bug 156701), but the greyed out buttons might be related to this.

Help > About LibreOfficeDev:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e15bf7363adb20c77aee51e09b6f2604d741619b
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded
Comment 1 Mike Kaganski 2023-08-26 10:48:12 UTC
Are they enabled with JRE installed?
Comment 2 Mike Kaganski 2023-08-26 10:49:17 UTC
Asking because I assume, that this is completely unrelated to the JRE status. It is likely simply how Python script dialog functions, and JRE here is red herring...
Comment 3 Mike Kaganski 2023-08-26 10:52:19 UTC
There is no Python IDE in LibreOffice. This shortcoming (I bet there is already an enhancement request about it) is addressed using APSO [1]; the built-in dialog for now can only be used for *running* existing macros, nothing else...

[1] https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python
Comment 4 Mike Kaganski 2023-08-26 10:56:57 UTC
tdf#56289 is closed - but that's IMO is wrong.
Comment 5 LucasLibre 2023-08-26 15:36:36 UTC
You're completely right; those buttons simply do not work, and are always greyed out, regardless of if JRE is installed or not!

Following the bug 56289 discussion, I don't think the Rename and Delete buttons would require a new Python editor in order to be implemented (do the Basic, Beanshell, and JavaScript macro dialogs share the same code for deletion and renaming?)

The Create and Edit ones might do, which I can see would be a lot of work to add, but leaving them as greyed out normally implies that the feature exists, but is disabled for some reason; removing them altogether might make it clearer to users?
Comment 6 LucasLibre 2023-08-26 22:41:18 UTC
Just to update from the original post:

Steps to Reproduce:
1. Open Writer
2. Go to Tools > Macros > Organise Macros > Python …

Expected Results:
The Delete and Rename buttons should work in the same way as the Basic, Beanshell, and Javascript macro dialogs. The Create and Edit buttons should probably be removed until a Python macro editor is included in LO.
Comment 7 Stéphane Guillou (stragu) 2023-09-11 13:33:13 UTC
Let's mark as a duplicate and reopen bug 56289 then.
Thank you both!

*** This bug has been marked as a duplicate of bug 56289 ***