Apache OpenOffice (AOO) Bugzilla – Issue 16999
Toolbar in IDE in wrong state
Last modified: 2009-02-05 16:18:17 UTC
Create two modules in the same library. In module2, create a subroutine that contains poor syntax such as: Sub Main this is not correct End Sub Now attempt to run the correct macro in Module1. The focus is taken to Module2 and after clicking OK to acknowledge the error, the toolbar is still configured as though a macro is running. (The Stop icon is red and the Compile and Run icons are disabled)
confirmed with 1.1.1rc3
set prio P3 -> P4
SBA-> SW: Please take over. Thx. Reassigned to Stephan.
SW->AB: this also appears in src680_m32 and on all platforms.
according to the announcement on releases (http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7503) this issue will be re-targeted to OOo Later.
the biggest problem with delaying a fix for this bug is that when it happens, you must KILL OpenOffice because the Basic IDE thinks that it is running a macro when it is not. You can still save and close your documents, but the IDE is stuck and can not be closed or run any other macros. Ironically, I can still edit the code, but I am told for each change I make that I need to restart the macro for the change to take effect. The change is then made in the source code, but the state still thinks that a macro is running. Even a quick hack that always STOPS a macro when I change the macro text would suffice. I had this problem again with the 74 dev build...
ab->pitonyak: I checked this with a m86 built and found that there's only a UI problem left. The IDE buttons are not updated correctly after you've clicked away the error message, but if you force an update e.g. by switching to ano- ther module, the buttons are displayed correct again. But even when the but- tuns are in the false run state after the error, Basic isn't really active any more and the office can be exited normally. I hope, you can reproduce this. So I think, under these conditions P4 / OOo Later is ok for this task. ab->tbe: As discussed, the problem is: The error occurs when Basic executes its init code - including the compilation of other modules. At this time Basic hasn't send a BASICSTART hint yet and so later also won't send a BASICSTOP hint. Anyway the StarBASIC::IsRunning() returns true already during initialisation and so the Basic IDE displays the buttons in running state when gaining control because of the compilation error. You've suggested that maybe the IDE can up- date the slot state after termination of the error dialog. I think it's better you take a look yourself to check this.
TBE->AB: As discussed to you.
STARTED
I cannot reproduce this any more on dev300 m38 -> WORKSFORME
CLOSED