Getting error message when trying to install example extension GitHub - luane-aquino/helloworld-libreoffice-extension: Hello World LibreOffice extension for LibreOffice Calc
Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
UPD:
New details about installation
I was able to install the extension using command line
C:\Program Files\LibreOffice\program>unopkg add -v -s path\to\helloworld.oxt
Copying: helloworld.oxt
unopkg done.
The extension appears as enabled in Extension Manager and works, but if I disable it by pressing Disable I get the same error message and line about extension unknown status. Nevertheless after that I can enable it successfully again by hitting Enable, while it is impossible if I try to do the same after adding extension via Extension Manager GUI
UPD 2:
The above solution does not work if Calc is running when executing unopkg
In this case I get different output
C:\Program Files\LibreOffice\program>unopkg add -v -s path\to\helloworld.oxt
Raising process: file:///C:/Program%20Files/LibreOffice/program/soffice
Arguments: --nologo --nodefault --accept=pipe,name=edcffa22cf61d7fa1fd96aca377e1b643d25cc7ba5dbd9f856cade4c984f33;urp;
OK. Connecting...OK.
ERROR: Exception occurred: An error occurred while enabling: HelloWorldLibrary
Cause: (com.sun.star.lang.IllegalArgumentException) { { { Message = "!link", Context = (com.sun.star.uno.XInterface) @239b4e632c8 (ImplementationName = "com.sun.star.comp.sfx2.ScriptLibraryContainer") } }, ArgumentPosition = (short) 1 }
ERROR: unopkg failed.