Bug 92964 - experimental feature code completion does not work with deep structure when "Autocorrect" is enabled in Basic IDE options
Summary: experimental feature code completion does not work with deep structure when "...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
5.1.0.0.alpha0+ Master
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2015-07-27 22:11 UTC by Regina Henschel
Modified: 2023-11-29 15:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
gif-Animation with 11 steps (73.26 KB, image/gif)
2015-07-29 18:04 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2015-07-27 22:11:37 UTC
Write the code in Basic IDE

Sub tests
Dim aTransform As New com.sun.star.drawing.HomogenMatrix3
rem
End Sub

Instead of 'Rem' write 'aTransform'
Then add a dot to trigger the drop-down-list for code completion.
You get the list
Line1
Line2
Line3
Choose 'Line1' by double-click.
Now add a dot. You get the expected drop-down-list
Column1
Column2
Column3

But notice, the already existing part 'aTransform.Line1' is damaged.
Comment 1 raal 2015-07-29 17:08:42 UTC
Cannot reproduce with Version: 5.1.0.0.alpha1+
Build ID: 74d4168f8830f7bbec6b784c3fb774296d9adafa
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-07-22_06:14:00
Comment 2 Regina Henschel 2015-07-29 18:04:02 UTC
Created attachment 117520 [details]
gif-Animation with 11 steps

I see the problem still in Version: 5.1.0.0.alpha1+
Build ID: 62e2fae93e8894f73560a30ae1e752cbd4c001ad
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-07-29_04:40:44
Locale: de-DE (de_DE)

Notice how the existing Text is altered, when the second dot is entered in the 7th step.
Comment 3 Buovjaga 2015-08-01 15:05:53 UTC
Not reproduced.

To enable:
Tools - Options - Advanced: Enable experimental ft.
Expert config: search for codecomplete, click Edit so it turns to true.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Win-x86@39, Branch:master, Time: 2015-07-30_03:52:07
Locale: en-US (fi_FI)
Comment 4 Regina Henschel 2015-08-01 15:24:13 UTC
(In reply to Beluga from comment #3)
> Not reproduced.
> 
> To enable:
> Tools - Options - Advanced: Enable experimental ft.
> Expert config: search for codecomplete, click Edit so it turns to true.

I do not used Expert Configuration. There should be an item "Basic IDE Options" in LibreOfficeDev in Tools > Options. When you have enabled experimental features, its check boxes are enabled. I turned on all these check boxes.
Comment 5 Buovjaga 2015-08-01 15:32:57 UTC
(In reply to Regina Henschel from comment #4)
> I do not used Expert Configuration. There should be an item "Basic IDE
> Options" in LibreOfficeDev in Tools > Options. When you have enabled
> experimental features, its check boxes are enabled. I turned on all these
> check boxes.

Ok, now that I did it like you, I could repro. I narrowed it down to the option: Autocorrection.
Comment 6 QA Administrators 2016-09-20 10:20:58 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2019-12-03 14:43:24 UTC Comment hidden (obsolete)
Comment 8 Regina Henschel 2019-12-03 15:23:18 UTC
Tested with Version: 6.5.0.0.alpha0+ (x64)
Build ID: 800b6f095f95ccfb8a7ba9755292332bf97f97ad
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win; 
Locale: de-DE (en_US); UI-Language: en-US
Calc: threaded

Now there is no drop-list at all with the second dot. So still not fixed.
Comment 9 QA Administrators 2021-12-03 04:39:02 UTC Comment hidden (obsolete)
Comment 10 Regina Henschel 2021-12-03 13:13:28 UTC
It still does not work for deep structures. Now a Enter selects the item in the first level, but the next level has no selection list at all.

It works with
 Dim aPoint As New com.sun.star.awt.Point
That has only components X and Y with simple types.

It fails with variable
Dim aTransform As New com.sun.star.drawing.HomogenMatrix3.
That has as first component not a simple value but a struct com::sun::star::drawing::HomogenMatrixLine3 
You get the list
Line1, Line2, Line3 and you can select Line1. Then press dot-key. The dot should give a list Column1, Column2, Column3. But that list does not appear.

Tested with Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d9796e597329849a6d360f205c5d36f7838884d8
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: threaded