| Summary: | BASE, EXTENSIONS, BaseDocumenter error Basic script crashes | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | graham.ward <graham.ward> |
| Component: | Extensions | Assignee: | Jean-Pierre Ledure <jp> |
| Status: | RESOLVED NOTOURBUG | ||
| Severity: | normal | CC: | graham.ward, jp |
| Priority: | medium | ||
| Version: | 7.6.4.1 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Windows (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Sample database "PDB-copy-odb" | ||
Hi, - line 130 or 230 ? - can you, please, attach the database that causes the error ? Eventually, reduce it to what is strictly necessary to reproduce the error and remove private or sensible data. JPL Created attachment 192545 [details]
Sample database "PDB-copy-odb"
You're correct - line 230. Sample database attached. I could reproduce the bug.
To fix it, in the BaseDocumenter Basic library, module BD_Html, replace line 230
If psTargetPage = kTableData Then
by
If sTargetPage = kTableData Then
(i.e. remove the leading "p" in psTargetPage).
Preferably do it manually. I will not post an update of the extension soon.
Note also that, when recompiling that module, an error appears due to a more strict syntax checking by the Basic compiler since the last 4 years: on line 558 of the same module, add a closing bracket.
Thanks for reporting the bug.
I can confirm that this manual fix works. I opt for status = NOTOURBUG. Indeed, not a bug inside the standard LO code: neither in Access2Base nor in the Basic interpreter or alike. |
Description: I am trying to use the BaseDocumenter extension. When it runs I get the following error: BASIC runtime error. Argument is not optional. It is getting upset at line 230 If psTargetPage = kTableData Then vElement = _BD_ATag(vElement, sTargetPage, lTargetIndex, _BD_GetLabel("DATASAMPLE")) Else vElement = _BD_ATag(vElement, sTargetPage, lTargetIndex) End If Steps to Reproduce: 1.BaseDocumenter - Document this datbase 2.Start Actual Results: BASIC runtime error. Argument is not optional. Line 130 Expected Results: Created a static HTML report in the specified folder. Reproducible: Always User Profile Reset: No Additional Info: Seems to be similar to Bug 151943