[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2022-12-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

ms777  changed:

   What|Removed |Added

Version|7.1.5.2 release |7.4.3.2 release
 Status|RESOLVED|REOPENED
 CC||ms...@web.de
 Resolution|INSUFFICIENTDATA|---
   Keywords||skillPython

--- Comment #5 from ms777  ---
I can confirm the behavior and have added a simplified test case. A python
function taking no parameters and returning a string is called from A2 through
this Basic wrapper:

function callPython()
  oScriptProvider = ThisComponent.getScriptProvider()
On Error goto ErrorExit:
  oScript =
oScriptProvider.getScript("vnd.sun.star.script:formulaFunction.py$pythonFormulaFunction?language=Python=document")
  if IsNull(oScript) then
callPython = "error getting python script: oScript is null"
  else
callPython = oScript.invoke(array(), array(), array())
  endif
  exit function
ErrorExit:
  callPython = "error getting python script: " + chr(10)+chr(13) + Error$
End function

When the document is opened, an error occurs. After recalc (Ctrl+Shift+F9) the
function works without error

The below function in B2 tries to track down the error a bit. It seems like the
python function is not yet in the document storage when it is called the first
time
function findScript()
  ucb = CreateUnoService("com.sun.star.ucb.UniversalContentBroker",
Array("Local", "Office"))
  identifier =
ucb.createContentIdentifier("vnd.sun.star.tdoc:/1/Scripts/python/formulaFunction.py")
  content = ucb.queryContent(identifier)

  if IsNull(content) then
findScript = "python script not found"
  else
findScript = "python script found"
  endif
End function

The behavior is identical on AO 4.1.6
See also https://forum.openoffice.org//en/forum/viewtopic.php?p=532310#p532310

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2022-12-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

--- Comment #4 from ms777  ---
Created attachment 184325
  --> https://bugs.documentfoundation.org/attachment.cgi?id=184325=edit
Test case for Python called from formula function

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2022-03-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

QA Administrators  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |INSUFFICIENTDATA

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2022-03-20 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

--- Comment #3 from QA Administrators  ---
Dear Nerijus,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2022-02-17 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

--- Comment #2 from QA Administrators  ---
Dear Nerijus,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 143989] on load Agenda.ods error when call user defined function with error not found method ThisComponent.getScriptProvider()

2021-08-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=143989

Roman Kuznetsov <79045_79...@mail.ru> changed:

   What|Removed |Added

 CC||79045_79...@mail.ru
 Status|UNCONFIRMED |NEEDINFO
 Ever confirmed|0   |1

--- Comment #1 from Roman Kuznetsov <79045_79...@mail.ru> ---
Can you provide a file with your macro?

-- 
You are receiving this mail because:
You are the assignee for the bug.