My first Extension not working
My first Extension not working
I am hoping this forum will help me with a LibreCalc error.
I am following the "Development/Create a Hello World LibreOffice extension" tutorial and have created the files and folders as explained. However, when I Add the extension to LibreCalc I get an error: i.e.
(com.sun.star.deployment.DeploymentException) { { Message = "An error occurred while enabling: HelloWorldLibrary", Context = (com.sun.star.uno.XInterface) @2175fe70 }, Cause = (any) { (com.sun.star.lang.IllegalArgumentException) { { { Message = "", Context = (com.sun.star.uno.XInterface) @0 } }, ArgumentPosition = (short) 0 } } }
The Extenion helloworld is visible but faded in the extension manager and there is no icon on the spreadsheet.
I have checked all the files I created and there are no errors.
I am following the "Development/Create a Hello World LibreOffice extension" tutorial and have created the files and folders as explained. However, when I Add the extension to LibreCalc I get an error: i.e.
(com.sun.star.deployment.DeploymentException) { { Message = "An error occurred while enabling: HelloWorldLibrary", Context = (com.sun.star.uno.XInterface) @2175fe70 }, Cause = (any) { (com.sun.star.lang.IllegalArgumentException) { { { Message = "", Context = (com.sun.star.uno.XInterface) @0 } }, ArgumentPosition = (short) 0 } } }
The Extenion helloworld is visible but faded in the extension manager and there is no icon on the spreadsheet.
I have checked all the files I created and there are no errors.
OpenOffice 3.4.1 on Windows 7
Re: My first Extension not working
Your signature says OpenOffice 3.4.1 on Windows 7. Are you installing the extension on OOo 3.4.1 or something else? Are you using Windows 7?
AOO 4.1.14 on Ubuntu MATE 22.04
Re: My first Extension not working
Maybe you should use another extension to build yours:
https://extensions.openoffice.org/en/pr ... s-packager

https://extensions.openoffice.org/en/pr ... s-packager

Co-admin french forum branch
Re: My first Extension not working
I'm getting the same error trying to install the extension on LO 6.3.6.2. I don't get the error on LO 7.0.1.2 or AOO 4.1.7 and the extension is not grayed out in the extension manager, but no toolbar icon is added to run the extension.
AOO 4.1.14 on Ubuntu MATE 22.04
Re: My first Extension not working
I haven't found what is causing the error message, but I have found a different problem. The name of the extension is showing in the Extension Manager, but the description is not. The description is in the file "pkg-description.en" in the folder "pkg-description". However the "manifest.xml" file in the "META-INF" folder says it should be in the folder "pkg-desc". Changing the name of the "pkg-description" folder to "pkg-desc" fixes that problem.
AOO 4.1.14 on Ubuntu MATE 22.04
Re: My first Extension not working
There appears to be a step missing from the tutorial. In Step 4 Exporting Our Library, if the HelloWorldLibrary that was exported isn't deleted, the error message will appear when trying to install the extension in LO 6.3.6.2. After deleting the macro, the extension installed without error and it worked in AOO 4.1.7, LO 6.3.6.2 and LO 7.0.1.2.
AOO 4.1.14 on Ubuntu MATE 22.04
My first Extension not working
Thanks for taking the time to check this tutorial
Firstly, I am using LibreOffice 7 and windows 7. Not sure why this browser changed the LibreOffice to Apache.
I went into the Manifect file and changed the pkg-desc to pkg-description but I still had the same problem. I went and moved all the files from helloworld folder just leaving the HelloWorldLibrary and it still did not work.
Since Bill found one error in the tutorial and I suspect there are more in this and future tutorials, and considering the absolutely no help from ask.libre; should I be better to use OpenOffice. I assume OpenOffice will open Libre documents.
Firstly, I am using LibreOffice 7 and windows 7. Not sure why this browser changed the LibreOffice to Apache.
I went into the Manifect file and changed the pkg-desc to pkg-description but I still had the same problem. I went and moved all the files from helloworld folder just leaving the HelloWorldLibrary and it still did not work.
Since Bill found one error in the tutorial and I suspect there are more in this and future tutorials, and considering the absolutely no help from ask.libre; should I be better to use OpenOffice. I assume OpenOffice will open Libre documents.
OpenOffice 3.4.1 on Windows 7
Re: My first Extension not working
I downloaded Open Office and the extension loaded and worked first time. I opened a Libre Document and the page had lost a lot of Formatting. Suppose I shall have to run both packages.
OpenOffice 3.4.1 on Windows 7
Re: My first Extension not working
If you were working in the ODF formats of OpenOffice and LibreOffice, you should not have lost formatting.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
Re: My first Extension not working
LibreOffice is the more actively maintained "StarOffice branch", with OpenOffice only receiving life support at the moment. AFAIK they share much of the same codebase and API, so solutions from one suite usually work for the other one.cve60069 wrote:...
Since Bill found one error in the tutorial and I suspect there are more in this and future tutorials, and considering the absolutely no help from ask.libre; should I be better to use OpenOffice. I assume OpenOffice will open Libre documents.
I guess that LibreOffice is the more "future proof" path to venture. You can still use this forum to request help, if you think it serves you better (many users find this forum easier to navigate than the rigid Q&A structure of the askbot). Many of the helpers on the ask.libreoffice site also visit here.
We service "all the OpenOffice.org derivatives" as the page header states. On ask.libreoffice, questions mentioning OpenOffice are frowned upon at best.
Note about crossposting: If you ask the same question in both places you should make a note of that, preferably with a link in each posting pointing to the same question in the other service.
Re: My first Extension not working
I am still unable to get the extension to work in Libre Office.
1. I corrected the Manifest File to show the correct path pkg-desc to pkg-description and this version worked in Open Office.
2. I went onto Bug Fix and the problem is not a bug but software.
3. When I peruse the Addons.xcu file I note the following scripts
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Addons" oor:package="org.openoffice.Office">
Are these links up-to-date with Libre Office?
1. I corrected the Manifest File to show the correct path pkg-desc to pkg-description and this version worked in Open Office.
2. I went onto Bug Fix and the problem is not a bug but software.
3. When I peruse the Addons.xcu file I note the following scripts
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="Addons" oor:package="org.openoffice.Office">
Are these links up-to-date with Libre Office?
OpenOffice 3.4.1 on Windows 7
Re: My first Extension not working
Download an OXT dedicated to OpenOffice derivative and inspect it.cve60069 wrote:Are these links up-to-date with Libre Office?
Co-admin french forum branch