Bug 162178 - [24.8] If ".uno:AddWatch [F7]" is executed without selecting a range, invalid properties (methods) are added when UI language is Japanese
Summary: [24.8] If ".uno:AddWatch [F7]" is executed without selecting a range, invalid...
Status: RESOLVED DUPLICATE of bug 162912
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
24.8.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2024-07-25 04:05 UTC by nobu
Modified: 2024-12-06 10:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nobu 2024-07-25 04:05:06 UTC
Description:
If no range selection is made, ".uno:AddWatch [F7]" adds an invalid property (method).

Steps to Reproduce:
1. Open New Calc.
2. Create Simple Basic Code.
ex. [Show Cell width]

Sub ShowCellWigth
  Dim oCel As Object
  oCel = ThisComponent.CurrentSelection
  If Not oCel.supportsService("com.sun.star.sheet.SheetCell") Then Exit Sub
  msgbox oCel.Size.width
End Sub

3. Move the cursor to somewhere in "ThisComponent.CurrentSelection". (Do not select the range)
4. Execute the command ".uno:AddWatch [F7]".

Actual Results:
5. "ThisComponent.CurrentSelection" is added to the observer variables.
If the property is attached to the back, it will be <Out of Scope> and cannot be referenced.

Expected Results:
5. "ThisComponent" or "CurrentSelection" is added to the observer variables.
"CurrentSelection" can be used as a variable name, so it is not a bug if either is added.


Reproducible: Always


User Profile Reset: No

Additional Info:

Of course, there is a similar problem with "oCel.Size.width" and an invalid property is added.

Not Reproduced with
Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

Reproducible with
Version: 24.8.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: 12b0d0dd2e22a1abc955a11bfe4ae87631409622
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 57f46e0244bdc1165ebbc5e09e4069cc075ff7ae
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 1 nobu 2024-08-12 05:02:48 UTC
Reproducible with
Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 2 nobu 2024-08-26 09:53:12 UTC
New findings:
Works fine in English locale.
Invalid properties are added for Japanese locale.
Comment 3 nobu 2024-08-30 09:03:15 UTC
Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4e04e96334a841865914c1629202912e343c4cb2
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 4 nobu 2024-11-27 23:07:13 UTC
Not Reproduced with
Version: 25.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 03a701516ea94b786ba6e1b35bf6dad22cceced5
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (ja_JP); UI: en-US
Calc: CL threaded

Reproducible with
Version: 25.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 03a701516ea94b786ba6e1b35bf6dad22cceced5
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: default
Comment 5 Buovjaga 2024-11-30 19:16:43 UTC
Same cause as bug 162912, commit 14c6cde779d64596eab0f4d3f32f181ce2243929
tdf#49885 Updated CJK BreakIterator to use ICU

Nothing to do with locale, repro by changing UI language to Japanese.

Please use the keywords regression, bibisectRequest when you notice something is a regression (in comment 0 you say this is not seen in 24.2).
Comment 6 nobu 2024-11-30 22:27:08 UTC
No problems are found in the final version of version 24.2.

Not Reproduced with
Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: default

And the title "[24.8]" obviously starts with version 24.8 and is based on my own rules which include a desire to have it fixed before the official release.
Don't worry about it.
Comment 7 Buovjaga 2024-12-03 09:43:21 UTC
The commit fixing bug 162912 took care of this as well.

*** This bug has been marked as a duplicate of bug 162912 ***
Comment 8 nobu 2024-12-06 10:38:16 UTC
It seems to be working correctly. Thanks.

Version: 25.2.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: 5ddccd3896abe24de2ff4b4f3cc9bf609305990a
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded