Bug 156162

Summary: Unhelpful error message when trying to install an extension over an existing macro library
Product: LibreOffice Reporter: LucasLibre <abree651>
Component: ExtensionsAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: ilmari.lauhakangas
Priority: medium    
Version: 7.4.0.0 alpha0+   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description LucasLibre 2023-07-04 19:48:47 UTC
Description:
When trying to install an extension, the error message "!link" appears if the extension contains a macro library of the same name as one that already exists.

Steps to Reproduce:
1. Create a BASIC macro library
2. Export that library as an extension
3. Install that extension

Actual Results:
An error message box appears that just says "!link", and the extension is installed, but disabled

Expected Results:
Either it allows the extension to be enabled (perhaps checking if the existing macro library is identical to the extension's library, and allowing it if so), or it provides a human-understandable error message (such as "Extensions cannot be installed over an existing macro library").


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I got this error message when trying to follow this tutorial on the Libre Office wiki: https://wiki.documentfoundation.org/Development/Create_a_Hello_World_LibreOffice_extension

That tutorial's GitHub repo has several issues flagged up recently about the same problem (so presumably this error didn't appear when the tutorial was created in 2019): https://github.com/luane-aquino/helloworld-libreoffice-extension/issues

Help > About LibreOffice:
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
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 Buovjaga 2023-09-05 16:37:52 UTC
Let's set to NEW per the other report: https://github.com/luane-aquino/helloworld-libreoffice-extension/issues/4