[Libreoffice-bugs] [Bug 142998] New: XUIConfigurationPersistence::reload fails with "com.sun.star.script.BasicIDE"
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 23 07:01:39 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142998
Bug ID: 142998
Summary: XUIConfigurationPersistence::reload fails with
"com.sun.star.script.BasicIDE"
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: mikekaganski at hotmail.com
CC: sbergman at redhat.com
Created attachment 173097
--> https://bugs.documentfoundation.org/attachment.cgi?id=173097&action=edit
List of accelerators subkeys in current master
Run this Basic macro:
sub TestReload
oMS =
createUnoService("com.sun.star.ui.ModuleUIConfigurationManagerSupplier")
oConfigManager =
oMS.getUIConfigurationManager("com.sun.star.script.BasicIDE")
oShortCutManager = oConfigManager.ShortCutManager
oShortCutManager.reload
end sub
It produces this error on 'oShortCutManager.reload':
> BASIC runtime error.
> An exception occurred
> Type: com.sun.star.container.NoSuchElementException
> Message: com.sun.star.script.BasicIDE.
The impact is that e.g. this extension: http://myooo.ru/content/view/86/115/ -
gives this error trying to configure itself.
It worked in OOo 2.4.3, but started to fail in OOo 3.1.1, where it had much
more helpful message:
> Message: Configuration - Child Element 'com.sun.star.script.BasicIDE' not found in /org.openoffice.Office.Accelerators/SecondaryKeys/Modules.
And indeed the exception happens when XCUBasedAcceleratorConfiguration::reload
tries to load secondary keys.
The mentioned registry key
(/org.openoffice.Office.Accelerators/SecondaryKeys/Modules) does not contain
the 'com.sun.star.script.BasicIDE' node, while
/org.openoffice.Office.Accelerators/PrimaryKeys/Modules does. The latter also
contains 'com.sun.star.sdb.DataSourceBrowser', 'com.sun.star.sdb.QueryDesign',
'com.sun.star.sdb.TableDataView', absent in the former; and the former contains
'com.sun.star.report.ReportDefinition', absent in the latter.
The task is to add the missing registry configuration elements, and check that
the script works as intended.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210623/e93fd381/attachment.htm>
More information about the Libreoffice-bugs
mailing list