Running any Hello World macros (except Python one since fdo#60670) don't work when launched from other application than Writer.
Steps to reproduce:
1. Open Calc
2. Menu Tools/Macros/Run Macro
3. Select in left panel LibreOfficeMacros/HelloWorld
4. Select in right panel any macro except Python one
Error message (depending on the macro)
eg for js macro:
Message: Cannot read property "getText" from null
java stack trace:
com.sun.star.script.provider.ScriptFrameworkErrorException: Cannot read property "getText" from null
"Hello world" displayed in a Writer file (like with Python macro)
Again, every macro work if launched from Writer
Operating System: Debian
Version: 188.8.131.52 release
confirmed with LO 184.108.40.206 on Windows.
Noel: one for you?
(In reply to comment #0)
> Problem description:
> Running any Hello World macros (except Python one since fdo#60670) don't
> work when launched from other application than Writer.
that's because all the variants of the helloworld examples try to write something into a text document, if you run this from calc ( or other 'application' ) it will fail
Noel: I know this (see https://bugs.freedesktop.org/show_bug.cgi?id=60670#c5) but would it be possible to put in place the same kind of patch as fdo#60670?
Or at least, put an error message explicit, telling that macros HelloWorld must be launched from Writer?
(In reply to comment #3)
> Noel: I know this (see
> https://bugs.freedesktop.org/show_bug.cgi?id=60670#c5) but would it be
> possible to put in place the same kind of patch as fdo#60670?
ah, ok didn't read that python had being changed to open a new text document in case none exists. That change has created some inconsistency, probably the other ones should have been changed at the same time.
So, still imho this is not a bug, the helloworld examples are just that... examples. Would be nice though if someone updated the other 'Helloworld' variants as above
oops meant to update as an enchancement
really make it an enhancement
Setting to NEW as it seems like Noel confirmed it as an enhancement.
Not a priority, let's close this one instead of letting it rot.
(In reply to Julien Nabet from comment #8)
> Not a priority, let's close this one instead of letting it rot.
Would it be possible to simply not ship the the macro instead of leaving it there?
People will otherwise just assume their installations are broken.