Bug 108378 - API changes prevent xray from working
Summary: API changes prevent xray from working
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-06 21:54 UTC by Jim Avera
Modified: 2017-06-09 15:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
xray 6.0 (XrayTool60_en.odt) (522.27 KB, application/vnd.oasis.opendocument.text)
2017-06-06 21:56 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2017-06-06 21:54:04 UTC
Description:
xray, an *incredibly valuable* macro debugging tool for many years, stopped working with Libre Office in version 4.4.   

Apparently xray is broken and unfixable because of some incompatible API changes and/or changes to how documentation is indexed.
https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=74169 may be relevant. 

Some issues might be tinged by political/ideological/religious considerations, but I hope those can be set aside.

Loss of the xray tool is a major loss for real users (who have to debug macros).



Steps to Reproduce:
1. Load xray tool 6.0 (attached XrayTool60_en.odt)
2. Enable macro execution
3. Click "Install Xray" on page 5 of the document

Actual Results:  
Run-time errors

Expected Results:
"Xray installed successfully"


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Comment 1 Jim Avera 2017-06-06 21:56:06 UTC
Created attachment 133883 [details]
xray 6.0 (XrayTool60_en.odt)
Comment 2 Jim Avera 2017-06-06 22:05:49 UTC
The "run-time errors" while installing xray start with several pop-ups like this:

BASIC runtime error. An exception occurred 
Type: com.sun.star.lang.IllegalArgumentException   Message: .

 docLibs.loadLibrary(sourceLibName)
  myLib = docLibs.getByName(sourceLibName)
  globLibs.loadLibrary(libName)
  copyLib = globLibs.getByName(libName)
  libModules = myLib.ElementNames
  for x = 0 to UBound(libModules)
    xName = libModules(x)
>>   copyLib.insertByName(xName, myLib.getByName(xName))
  next
Comment 3 Jacques Guilleron 2017-06-07 12:27:37 UTC
Hi Jim,

Tried installation Xraytool60_fr.odt on
LO 4.4.1.1 Build ID: b5ac74bf8683a92078a2bc8aff97d4b436af63cb Locale : fr_FR
and
LO 5.3.3.2 Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448
Threads CPU : 2; Version de l'OS :Windows 6.1; UI Render : par défaut; Moteur de mise en page : nouveau; Locale : fr-FR (fr_FR); Calc: CL
No issue.
Comment 4 Jacques Guilleron 2017-06-07 12:46:20 UTC
Tried also XrayTool610_en.odt installation on
LO 5.3.3.1 (x64) Build ID: 46360c72c4823cefeaa85af537fba22bd568da7e
CPU Threads: 2; OS Version: Windows 6.1; UI Render: default; Layout Engine: new; 
Locale: en-US (fr_FR); Calc: CL
always without issue.
Comment 5 Regina Henschel 2017-06-07 23:08:29 UTC
I have tried it with Version: 5.5.0.0.alpha0+
Build ID: b56d1e294d838d4b3d0f237c81325a0d1a1cff83
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-05-26_06:14:42
Locale: de-DE (de_DE); Calc: group

It installs without problems and works as expected.
Comment 6 Jim Avera 2017-06-09 15:20:25 UTC
Today xray also works for me in all versions (tried 4.4, 5.3, & master).  

I can't figure out what happened!   A few days ago xray would *not* install in 4.4.6 and later versions (but would work in 4.3.3).  There must have been something in my LO profile or other environment which caused the problem but which I unwittingly fixed.

With embarrassent,
-Jim