Stel uw vraag

Alexander Malahov's profiel - activiteit

2018-03-04 17:23:00 +0200 badge ontvangen  Beroemde vraag (bron)
2018-02-21 21:04:50 +0200 badge ontvangen  Opvallende Vraag (bron)
2018-02-21 00:03:55 +0200 reageerde op een antwoord How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

Oh my god, can't belive I've missed such basic thing! Subfolder, of course! Big thank you!

2018-02-21 00:00:32 +0200 koos een beste antwoord How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

(also posted this to AOO forums)

Here is an example extension I'm trying to make work: hello-libreoffice-extension

It partially works - menu item in "Tools | Add-Ons" is added and it works as expected (shows message box in UI).

However,

  • there is no license notice at installation
  • my extension's version (1.0) is not recognized - when trying to replace, LibreOffice says "version 0"
  • extension is installed for current user, not for everyone as I've scepcified in description.xml
  • after installation (with "Tools | Extensions Manager...") there is no description line under my Extension

And the worst part is that I can't remove (and update/replace) my extension. I know I can just delete files (as described in Cannot uninstall extension in Linux). But that's really too much asking from my user and sure we can do better. The error message is (reformatted it for readability, in original all tokens were delimeted by single space):

(com.sun.star.lang.IllegalArgumentException) 
{ 
    { 
        { 
            Message = "Cannot detect media-type:file:///C:/Users/%D0%B0%D0%BD%D0%BC/AppData/Roaming/LibreOffice/4/user/uno_packages/cache/uno_packages/lu7922basxp.tmp_/hello-libreoffice-extension2.zip",
            Context = (com.sun.star.uno.XInterface) @27d4c9d02e0 
        } 
    }, 
    ArgumentPosition = (short) -1 
}

All in all, it looks like my description.xml is not recognized or is ignored or has failed at parsing stage.

How I've packaged/installed extension (both ways don't work):

  • Uncompressed zip the whole folder, then install with Extensions Manager
  • Uncompressed zip the whole folder, rename file to end with .oxt, close LibreOffice, install by double-clicking on the .oxt file

What's iteresting is that Hanya's MRI extension (which is awesome, by the way) works OK on my installation despite it's targeted on Apache Open Office 4 (there is LO-specific version, but it's serveral years older). I've compared all of mine and his (her?) config files (manifest.xml and description.xml) byte-to-byte, copied tag's name from his configs (to avoid subtle differences like latin e and cirillic е) but all to no avail.

I've re-read dev-guides (1, 2 and others) for like hundred times already, but clearly am missing something. Any tips would be greatly appreciated.

My LibreOffice Version 5.4.5.1 (x64), Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8

2018-02-20 15:57:24 +0200 badge ontvangen  Populaire Vraag (bron)
2018-02-20 00:39:01 +0200 reageerde op een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

Originally I've posted this question with language "Developers" instead of "English". And it turns out that means someth

2018-02-20 00:38:28 +0200 bewerkte een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager (also posted this to AOO

2018-02-20 00:22:58 +0200 badge ontvangen  Redacteur (bron)
2018-02-20 00:22:58 +0200 bewerkte een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager Here is an example exten

2018-02-20 00:03:04 +0200 reageerde op een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

Originally I've posted this question with language "Developers" instead of "English". And it turns out that means someth

2018-02-20 00:02:38 +0200 reageerde op een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

Originally I've posted this question with language "Developers" instead of "English". And it turns out that means someth

2018-02-19 23:58:17 +0200 stelde een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager Here is an example exten

2018-02-19 23:55:27 +0200 stelde een vraag How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager

How to debug/fix extension installation problems: can't remove it and no descriptoin in Manager Here is an example exten

2017-12-11 22:43:09 +0200 badge ontvangen  Beroemde vraag (bron)
2017-12-11 00:24:26 +0200 badge ontvangen  enthousiast
2017-12-10 19:59:30 +0200 koos een beste antwoord How to detect non-breakable space when iterating document via UNO

I have following paragraph (replaced non-breakable space with % here for clarity):

NORMAL11111111111111111111111111111111111111111111111111111111111111111111
non%breakable normal2

I iterate TextPortions and can get all the other character properties like weight, posture, color etc.
TextPortions are:

  • "NORMAL"
  • "1"
  • "1111111111111111111111111111111111111111111111111111111111111111111"
  • " non breakable normal2"

The line of code print(portion.CharKeepTogether) gives me an error: "AttributeError: CharKeepTogether".
And indeed, when I inspect all the properties of the portion with unohelper.inspect(portion, sys.stdout) (it prints out all I can get through the object), there is no CharKeepTogether in the list.

I've tried this with LibreOffice 5.3.0 and 5.4.2.2

Any ideas ?

2017-12-10 19:59:30 +0200 badge ontvangen  Leerling (bron)
2017-12-10 17:09:20 +0200 badge ontvangen  Supporter (bron)
2017-12-10 10:59:55 +0200 badge ontvangen  Opvallende Vraag (bron)
2017-12-10 09:53:46 +0200 badge ontvangen  Student (bron)
2017-12-09 21:41:49 +0200 badge ontvangen  Populaire Vraag (bron)
2017-10-09 05:07:49 +0200 bewerkte een vraag How to detect non-breakable space when iterating document via UNO

How to detect non-breakable space when iterating document via UNO I have following paragraph (replaced non-breakable spa

2017-10-09 05:07:23 +0200 stelde een vraag How to detect non-breakable space when iterating document via UNO

How to detect non-breakable space when iterating document via UNO I have following paragraph (replaced non-breakable spa