https://bugs.documentfoundation.org/show_bug.cgi?id=165147
Bug ID: 165147
Summary: Scriptforge asks to activate Java (JRE) even if you
don’t need it
Product: LibreOffice
Version: 25.2.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Hi!
I am running this Scriptforge python code:
-*-*-*-*-*-*-*-*-*-*-*-*-*- CODE -*-*-*-*-*-*-*-*-*-*-*-*-*-
from scriptforge import CreateScriptService
def msgbox_last_row(*args):
bas = CreateScriptService("Basic")
myDoc = CreateScriptService("Calc", bas.ThisComponent)
last_row = myDoc.LastRow('Sheet1')
bas.MsgBox(last_row)
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
The case is that, EVERY single time the document is loaded and the script is
executed, Libreoffice asks if I want to activate Java (JRE), since it is
necessary to run the script (even if using Java is explicitely disabled).
However this is not true, since even if it is not activated and the message is
closed, the code runs without problem.
To test it: make sure using a Java (JRE) environment is disabled.
mikekaganski comment here
https://ask.libreoffice.org/t/scriptforge-asks-to-activate-java-jre-even-if-you-dont-need-it/117672/8?u=uralion:
'SF has _FindModuleFromMethod function, which calls getChildNodes from macro
organizer; and that tries to load Java, because indeed one of its nodes is
Java. But the function explicitly only wants Basic.
It seems like they could use ScriptProviderForBasic service 2 instead.'
Thank you very much!!!
--
You are receiving this mail because:
You are the assignee for the bug.