Bug 158602 - "Option ClassModule" makes double-clicking the "Object Catalog" stop working
Summary: "Option ClassModule" makes double-clicking the "Object Catalog" stop working
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2023-12-08 18:00 UTC by Rafael Lima
Modified: 2023-12-21 12:52 UTC (History)
1 user (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 Rafael Lima 2023-12-08 18:00:57 UTC

    
Comment 1 Rafael Lima 2023-12-08 18:04:53 UTC
In the Basic IDE, if you place:

Option Compatible
Option ClassModule

At the header of a Basic Module, double clicking method names on this module will stop working in the Object Catalog.

For instance, consider these macros in Module1:

Sub Macro1
	'Dummy Macro
	MsgBox "Dummy 1"
End Sub

Sub Macro2
	'Dummy Macro
	MsgBox "Dummy 2"
End Sub

Sub Macro3
	'Dummy Macro
	MsgBox "Dummy 3"
End Sub

Sub Macro4
	'Dummy Macro
	MsgBox "Dummy 4"
End Sub

If you create them in Module1, it is possible to navigate the macros using the Object Catalog and double-clicking their names will move the cursor to the beginning of the macro definition.

However, after adding "Option ClassModule" at the top of the module and compiling the module, double-clicking will stop working.

System info

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 07036eea5089feae511145412d7105cb76c1955a
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 2 Buovjaga 2023-12-21 12:52:10 UTC
Repro already with 4.2.0 alpha1 on Windows.