Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-11

IDE problems

14 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

brian

Hi folks,

Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously because I was in the middle of debugging a program when suddenly everything but the source window disappeared. I eventually had to abort Lazarus and re-start the program, but now I see some very strange behaviour :-

1) Pull-down menus stay pulled down, even when I've selected an entry.

2) Only the object inspector or the source editor can be visible at any one time - select one, and the other vanishes.

There are probably a few other quirks too, but those are the most annoying two.

In my Delphi days, there used to be a desktop configuration file which you deleted if the IDE got all screwed up, and then when you ran the program again you were back to all the defaults.

Is there such a file for Lazarus? I assume this isn't a version-specific question, but anyway, I'm running Lazarus under 64-bit Debian multi-home, and the version is the latest as downloaded by fpcup_linux_x64 two days ago, SVN revision 43478.

Thanks,

Brian.

Reply by email

Mattias Gaertner
to brian
Show quoted text 9 lines
Hi folks, Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously because I was in the middle of debugging a program when suddenly everything but the source window disappeared. I eventually had to abort Lazarus and re-start the program, but now I see some very strange behaviour :- 1) Pull-down menus stay pulled down, even when I've selected an entry.

What Lazarus version do you use?

Show quoted text 14 lines
2) Only the object inspector or the source editor can be visible at any one time - select one, and the other vanishes. There are probably a few other quirks too, but those are the most annoying two. In my Delphi days, there used to be a desktop configuration file which you deleted if the IDE got all screwed up, and then when you ran the program again you were back to all the defaults. Is there such a file for Lazarus? I assume this isn't a version-specific question, but anyway, I'm running Lazarus under 64-bit Debian multi-home, and the version is the latest as downloaded by fpcup_linux_x64 two days ago, SVN revision 43478.

The config files are under Linux in $HOME/.lazarus.

Mattias

Reply by email

Martin Frb
to brian: Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously…
brian wrote 10 lines
Hi folks, Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously because I was in the middle of debugging a program when suddenly everything but the source window disappeared. I eventually had to abort Lazarus and re-start the program, but now I see some very strange behaviour :- 1) Pull-down menus stay pulled down, even when I've selected an entry.

This does not sound like a config issue to me.

However, I have seen some Linux, or maybe some of the Destops/Window managers getting in trouble, if gdb pauses an application in the wrong moment. e.g. in a paint event, or other events (mouse, kbd).

In that case you may have to restart your desktop session, potentially the entire system.

Reply by email

brian
to Martin Frb
Martin Frb wrote 21 lines
On 25/11/2013 23:26, brian wrote: > Hi folks, > > Something has spontaneously gone wrong with the IDE on my setup. I > say spontaneously because I was in the middle of debugging a program > when suddenly everything but the source window disappeared. I > eventually had to abort Lazarus and re-start the program, but now I > see some very strange behaviour :- > > 1) Pull-down menus stay pulled down, even when I've selected an entry. > This does not sound like a config issue to me. However, I have seen some Linux, or maybe some of the Destops/Window managers getting in trouble, if gdb pauses an application in the wrong moment. e.g. in a paint event, or other events (mouse, kbd). In that case you may have to restart your desktop session, potentially the entire system.

The problem has survived a full reboot.

Brian.

Reply by email

brian
to Mattias Gaertner: On Mon, 25 Nov 2013 18:26:48 -0500 What Lazarus version do you use? The config files are…
Mattias Gaertner wrote 33 lines
On Mon, 25 Nov 2013 18:26:48 -0500 brian wrote: > Hi folks, > > Something has spontaneously gone wrong with the IDE on my setup. I say > spontaneously because I was in the middle of debugging a program when > suddenly everything but the source window disappeared. I eventually > had to abort Lazarus and re-start the program, but now I see some very > strange behaviour :- > > 1) Pull-down menus stay pulled down, even when I've selected an entry. What Lazarus version do you use? > 2) Only the object inspector or the source editor can be visible at > any one time - select one, and the other vanishes. > > There are probably a few other quirks too, but those are the most > annoying two. > > In my Delphi days, there used to be a desktop configuration file which > you deleted if the IDE got all screwed up, and then when you ran the > program again you were back to all the defaults. > > Is there such a file for Lazarus? I assume this isn't a > version-specific question, but anyway, I'm running Lazarus under > 64-bit Debian multi-home, and the version is the latest as downloaded > by fpcup_linux_x64 two days ago, SVN revision 43478. The config files are under Linux in $HOME/.lazarus.

Thanks, Mattias. I tried renaming .lazarus and then ran lazarus up again, but no change in the behaviour. Let me show you the sort of thing I see, screenshot attached. Any time I click a pulldown menu, the source window disappears, and as you will see, the pulldown menus stay there.

P.S. Didn't know about the 100 KB size triggering a moderator review. OK, the .png is here.

http://www.meadows.pair.com/Screenshot - 11252013 - 06:57:09 PM.png

Brian.

Reply by email

Junior
to brian

Fixing the link:

http://www.meadows.pair.com/Screenshot%20-%2011252013%20-%2006:57:09%20PM.png

brian wrote 59 lines
On 11/25/2013 06:45 PM, Mattias Gaertner wrote: > On Mon, 25 Nov 2013 18:26:48 -0500 > brian wrote: > >> Hi folks, >> >> Something has spontaneously gone wrong with the IDE on my setup. I say >> spontaneously because I was in the middle of debugging a program when >> suddenly everything but the source window disappeared. I eventually >> had to abort Lazarus and re-start the program, but now I see some very >> strange behaviour :- >> >> 1) Pull-down menus stay pulled down, even when I've selected an entry. > > What Lazarus version do you use? > > >> 2) Only the object inspector or the source editor can be visible at >> any one time - select one, and the other vanishes. >> >> There are probably a few other quirks too, but those are the most >> annoying two. >> >> In my Delphi days, there used to be a desktop configuration file which >> you deleted if the IDE got all screwed up, and then when you ran the >> program again you were back to all the defaults. >> >> Is there such a file for Lazarus? I assume this isn't a >> version-specific question, but anyway, I'm running Lazarus under >> 64-bit Debian multi-home, and the version is the latest as downloaded >> by fpcup_linux_x64 two days ago, SVN revision 43478. > > The config files are under Linux in $HOME/.lazarus. > Thanks, Mattias. I tried renaming .lazarus and then ran lazarus up again, but no change in the behaviour. Let me show you the sort of thing I see, screenshot attached. Any time I click a pulldown menu, the source window disappears, and as you will see, the pulldown menus stay there. P.S. Didn't know about the 100 KB size triggering a moderator review. OK, the .png is here. > http://www.meadows.pair.com/Screenshot - 11252013 - 06:57:09 PM.png Brian. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

brian
to brian: Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously…
brian wrote 25 lines
Hi folks, Something has spontaneously gone wrong with the IDE on my setup. I say spontaneously because I was in the middle of debugging a program when suddenly everything but the source window disappeared. I eventually had to abort Lazarus and re-start the program, but now I see some very strange behaviour :- 1) Pull-down menus stay pulled down, even when I've selected an entry. 2) Only the object inspector or the source editor can be visible at any one time - select one, and the other vanishes. There are probably a few other quirks too, but those are the most annoying two. In my Delphi days, there used to be a desktop configuration file which you deleted if the IDE got all screwed up, and then when you ran the program again you were back to all the defaults. Is there such a file for Lazarus? I assume this isn't a version-specific question, but anyway, I'm running Lazarus under 64-bit Debian multi-home, and the version is the latest as downloaded by fpcup_linux_x64 two days ago, SVN revision 43478.

Well, not surprisingly, the nuclear option worked. Rename .lazarus and my development directory, copy the .ini files and fpcup_linux_x64 into a new directory, and rebuild the whole thing. Bit of a nuisance having to set all my preferences again, but nothing like as bad as trying to debug with the previous setup.

If anyone can figure out what happened, I for one would still be interested to hear it.

Brian.

Reply by email

Mattias Gaertner
to Junior: Fixing the link: http://www.meadows.pair.com/Screenshot%20-%2011252013%20-%2006:57:09%20PM…
Show quoted text 50 lines
Fixing the link: http://www.meadows.pair.com/Screenshot%20-%2011252013%20-%2006:57:09%20PM.png Em 25-11-2013 21:49, brian escreveu: > On 11/25/2013 06:45 PM, Mattias Gaertner wrote: >> On Mon, 25 Nov 2013 18:26:48 -0500 >> brian wrote: >> >>> Hi folks, >>> >>> Something has spontaneously gone wrong with the IDE on my setup. I say >>> spontaneously because I was in the middle of debugging a program when >>> suddenly everything but the source window disappeared. I eventually >>> had to abort Lazarus and re-start the program, but now I see some very >>> strange behaviour :- >>> >>> 1) Pull-down menus stay pulled down, even when I've selected an entry. >> >> What Lazarus version do you use? >> >> >>> 2) Only the object inspector or the source editor can be visible at >>> any one time - select one, and the other vanishes. >>> >>> There are probably a few other quirks too, but those are the most >>> annoying two. >>> >>> In my Delphi days, there used to be a desktop configuration file which >>> you deleted if the IDE got all screwed up, and then when you ran the >>> program again you were back to all the defaults. >>> >>> Is there such a file for Lazarus? I assume this isn't a >>> version-specific question, but anyway, I'm running Lazarus under >>> 64-bit Debian multi-home, and the version is the latest as downloaded >>> by fpcup_linux_x64 two days ago, SVN revision 43478. >> >> The config files are under Linux in $HOME/.lazarus. >> > > Thanks, Mattias. I tried renaming .lazarus and then ran lazarus up > again, but no change in the behaviour. Let me show you the sort of > thing I see, screenshot attached. Any time I click a pulldown menu, > the source window disappears, and as you will see, the pulldown menus > stay there. > > P.S. Didn't know about the 100 KB size triggering a moderator review. > OK, the .png is here. > >> http://www.meadows.pair.com/Screenshot - 11252013 - 06:57:09 PM.png

I have never seen such a bug with the LCL.
Does that happen only with Lazarus?
What window manager do you use?
Is that the LCL QT widgetset?

Mattias

Reply by email

brian
to Mattias Gaertner
Mattias Gaertner wrote 56 lines
On Mon, 25 Nov 2013 22:17:05 -0300 Junior wrote: > Fixing the link: > > http://www.meadows.pair.com/Screenshot%20-%2011252013%20-%2006:57:09%20PM.png > > Em 25-11-2013 21:49, brian escreveu: >> On 11/25/2013 06:45 PM, Mattias Gaertner wrote: >>> On Mon, 25 Nov 2013 18:26:48 -0500 >>> brian wrote: >>> >>>> Hi folks, >>>> >>>> Something has spontaneously gone wrong with the IDE on my setup. I say >>>> spontaneously because I was in the middle of debugging a program when >>>> suddenly everything but the source window disappeared. I eventually >>>> had to abort Lazarus and re-start the program, but now I see some very >>>> strange behaviour :- >>>> >>>> 1) Pull-down menus stay pulled down, even when I've selected an entry. >>> >>> What Lazarus version do you use? >>> >>> >>>> 2) Only the object inspector or the source editor can be visible at >>>> any one time - select one, and the other vanishes. >>>> >>>> There are probably a few other quirks too, but those are the most >>>> annoying two. >>>> >>>> In my Delphi days, there used to be a desktop configuration file which >>>> you deleted if the IDE got all screwed up, and then when you ran the >>>> program again you were back to all the defaults. >>>> >>>> Is there such a file for Lazarus? I assume this isn't a >>>> version-specific question, but anyway, I'm running Lazarus under >>>> 64-bit Debian multi-home, and the version is the latest as downloaded >>>> by fpcup_linux_x64 two days ago, SVN revision 43478. >>> >>> The config files are under Linux in $HOME/.lazarus. >>> >> >> Thanks, Mattias. I tried renaming .lazarus and then ran lazarus up >> again, but no change in the behaviour. Let me show you the sort of >> thing I see, screenshot attached. Any time I click a pulldown menu, >> the source window disappears, and as you will see, the pulldown menus >> stay there. >> >> P.S. Didn't know about the 100 KB size triggering a moderator review. >> OK, the .png is here. >> >>> http://www.meadows.pair.com/Screenshot - 11252013 - 06:57:09 PM.png I have never seen such a bug with the LCL. Does that happen only with Lazarus?

I tried OpenOffice, and its menus worked perfectly.

What window manager do you use?

XFCE

Is that the LCL QT widgetset?

No, gtk2.

Anyway, as you will see from another posting, I ran out of patience with it and nuked the setup, then set it to rebuild overnight. The new setup works just fine, and the bit of reconfiguration needed is less frustrating than trying to use the corrupted(?) setup.

Thanks anyway,

Brian.

Reply by email

Mark Morgan Lloyd
to brian: Well, not surprisingly, the nuclear option worked. Rename .lazarus and my development…
brian wrote 8 lines
Well, not surprisingly, the nuclear option worked. Rename .lazarus and my development directory, copy the .ini files and fpcup_linux_x64 into a new directory, and rebuild the whole thing. Bit of a nuisance having to set all my preferences again, but nothing like as bad as trying to debug with the previous setup. If anyone can figure out what happened, I for one would still be interested to hear it.

Run diff (e.g. kdiff3) on the old and new configuration files. Report back.

I think that what you didn't tell us is exactly how you are accessing Lazarus: for example, I see a couple of minor issues when tunnelling X over ssh that I don't see over VNC, and in the general case VNC has its own problems and instabilities. Even if you're running locally (i.e. using the machine's own screen/keyboard/mouse) the window manager (AKA desktop) can influence things.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Torsten Bonde Christiansen
to brian: Well, not surprisingly, the nuclear option worked. Rename .lazarus and my development…
brian wrote 36 lines
On 11/25/2013 06:26 PM, brian wrote: > Hi folks, > > Something has spontaneously gone wrong with the IDE on my setup. I say > spontaneously because I was in the middle of debugging a program when > suddenly everything but the source window disappeared. I eventually > had to abort Lazarus and re-start the program, but now I see some very > strange behaviour :- > > 1) Pull-down menus stay pulled down, even when I've selected an entry. > > 2) Only the object inspector or the source editor can be visible at > any one time - select one, and the other vanishes. > > There are probably a few other quirks too, but those are the most > annoying two. > > In my Delphi days, there used to be a desktop configuration file which > you deleted if the IDE got all screwed up, and then when you ran the > program again you were back to all the defaults. > > Is there such a file for Lazarus? I assume this isn't a > version-specific question, but anyway, I'm running Lazarus under > 64-bit Debian multi-home, and the version is the latest as downloaded > by fpcup_linux_x64 two days ago, SVN revision 43478. > Well, not surprisingly, the nuclear option worked. Rename .lazarus and my development directory, copy the .ini files and fpcup_linux_x64 into a new directory, and rebuild the whole thing. Bit of a nuisance having to set all my preferences again, but nothing like as bad as trying to debug with the previous setup. If anyone can figure out what happened, I for one would still be interested to hear it.

I am not sure if it is related, but my Lazarus can at times also crash horribly and leave me with a corrupter GUI.

I have traced my problems down to the package AnchorDockingDesign - which I really like using. It usually messes up the .lazarus/anchordocklayout.xml file if Lazarus crashed for some odd reason.

All i need to do to make the GUI work again is deleting the file, and the setup the whole anchordocking designer again.

Perhaps that is of some use to you ;)

Regards,
Torsten.

Reply by email

brian
to Mark Morgan Lloyd: Run diff (e.g. kdiff3) on the old and new configuration files. Report back. I think that…
Mark Morgan Lloyd wrote 21 lines
brian wrote: > Well, not surprisingly, the nuclear option worked. Rename .lazarus > and my development directory, copy the .ini files and > fpcup_linux_x64 into a new directory, and rebuild the whole thing. > Bit of a nuisance having to set all my preferences again, but > nothing like as bad as trying to debug with the previous setup. > > If anyone can figure out what happened, I for one would still be > interested to hear it. Run diff (e.g. kdiff3) on the old and new configuration files. Report back. I think that what you didn't tell us is exactly how you are accessing Lazarus: for example, I see a couple of minor issues when tunnelling X over ssh that I don't see over VNC, and in the general case VNC has its own problems and instabilities. Even if you're running locally (i.e. using the machine's own screen/keyboard/mouse) the window manager (AKA desktop) can influence things.

Sorry for the delayed reply, now programming is just a hobby, my wife has other ideas about how I should spend my time... :(

Anyway, everything is local, my desktop is XFCE.

Checking the old and new directories, these are the directory listings

Old setup (showing the problem)

total 512
-rw-r--r-- 1 brian brian 803 Nov 13 00:59 codeexploreroptions.xml -rw-r--r-- 1 brian brian 215 Nov 13 00:59 codetoolsoptions.xml -rw-r--r-- 1 brian brian 245235 Nov 25 03:28 codyunitdictionary.txt -rw-r--r-- 1 brian brian 0 Nov 25 06:34 compilertest.pas -rw-r--r-- 1 brian brian 86 Nov 26 00:37 EditorMacros.xml -rw-r--r-- 1 brian brian 817 Nov 13 00:59 editoroptions.xml -rw-r--r-- 1 brian brian 13171 Nov 26 00:37 environmentoptions.xml -rw-r--r-- 1 brian brian 176600 Nov 25 06:28 fpcdefines.xml -rw-r--r-- 1 brian brian 424 Nov 13 00:59 helpoptions.xml -rw-r--r-- 1 brian brian 3400 Nov 25 06:30 idemake.cfg -rw-r--r-- 1 brian brian 5216 Nov 26 00:37 includelinks.xml -rw-r--r-- 1 brian brian 1361 Nov 26 00:37 inputhistory.xml -rw-r--r-- 1 brian brian 11295 Nov 22 00:19 jcfsettings.cfg -rw-r--r-- 1 brian brian 4447 Oct 25 07:07 lazarus.dci -rw-r--r-- 1 brian brian 1139 Oct 25 07:07 laz_indentation.pas -rw-r--r-- 1 brian brian 2558 Nov 25 06:27 miscellaneousoptions.xml -rw-r--r-- 1 brian brian 1425 Nov 15 04:03 packagefiles.xml drwxr-xr-x 2 brian brian 4096 Oct 25 07:07 projectsessions -rw-r--r-- 1 brian brian 84 Nov 26 00:36 protocol.xml -rw-r--r-- 1 brian brian 469 Nov 25 06:28 staticpackages.inc

New setup (works just fine)

total 108
-rw-r--r-- 1 brian brian 0 Nov 26 03:01 compilertest.pas -rw-r--r-- 1 brian brian 86 Nov 27 17:14 EditorMacros.xml -rw-r--r-- 1 brian brian 522 Nov 26 03:01 editoroptions.xml -rw-r--r-- 1 brian brian 10368 Nov 27 17:14 environmentoptions.xml -rw-r--r-- 1 brian brian 31043 Nov 26 02:32 fpcdefines.xml -rw-r--r-- 1 brian brian 3029 Nov 26 03:14 idemake.cfg -rw-r--r-- 1 brian brian 858 Nov 27 14:46 includelinks.xml -rw-r--r-- 1 brian brian 404 Nov 27 17:14 inputhistory.xml -rw-r--r-- 1 brian brian 11479 Nov 26 03:01 jcfsettings.cfg -rw-r--r-- 1 brian brian 4447 Nov 26 03:01 lazarus.dci -rw-r--r-- 1 brian brian 1139 Nov 26 03:01 laz_indentation.pas -rw-r--r-- 1 brian brian 2315 Nov 26 03:13 miscellaneousoptions.xml -rw-r--r-- 1 brian brian 1425 Nov 26 03:12 packagefiles.xml drwxr-xr-x 2 brian brian 4096 Nov 26 03:01 projectsessions -rw-r--r-- 1 brian brian 84 Nov 27 14:44 protocol.xml -rw-r--r-- 1 brian brian 400 Nov 26 03:14 staticpackages.inc

The comparisons are attached, hopefully it just gets in under 100 KB. All I did was to run a diff on the two files ignoring white space differences and pipe the output to files of the same name in a third directory.

Brian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compares.tar.bz2
Type: application/x-bzip
Size: 41946 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131128/9067db70/attachment-0001.bin>

Reply by email

Martin Frb
to brian
brian wrote 12 lines
On 11/26/2013 04:02 AM, Mark Morgan Lloyd wrote: > > Run diff (e.g. kdiff3) on the old and new configuration files. Report > back. Sorry for the delayed reply, now programming is just a hobby, my wife has other ideas about how I should spend my time... :( Anyway, everything is local, my desktop is XFCE. Checking the old and new directories, these are the directory listings Old setup (showing the problem)

Problem is that your main window (ide bar) is maximized. I just tested, I get the same error under fedora with xfce

- Start IDE
- maximize main-ide-bar
- restart

To fix: un-maximize

Also notable: The maximize IDE bar should be restrained in high, but it is not. Though that may be ok, since the WM may override the LCL decision.

Reply by email

brian
to Martin Frb
Martin Frb wrote 27 lines
On 28/11/2013 08:38, brian wrote: > On 11/26/2013 04:02 AM, Mark Morgan Lloyd wrote: >> >> Run diff (e.g. kdiff3) on the old and new configuration files. Report >> back. > Sorry for the delayed reply, now programming is just a hobby, my > wife has other ideas about how I should spend my time... :( > > Anyway, everything is local, my desktop is XFCE. > > Checking the old and new directories, these are the directory listings > > Old setup (showing the problem) Problem is that your main window (ide bar) is maximized. I just tested, I get the same error under fedora with xfce - Start IDE - maximize main-ide-bar - restart To fix: un-maximize Also notable: The maximize IDE bar should be restrained in high, but it is not. Though that may be ok, since the WM may override the LCL decision.

I've just tried it myself, Martin, and I confirm your findings. Thank you for solving the problem. Now, of course, I just have to figure out *HOW* the IDE bar got maximised, because as I said in my original posting, it appeared totally spontaneous. The first indication I had was in the middle of a debugging session when suddenly everything but the source window disappeared. If there's any way of maximising the IDE bar with the F7 and F8 keys then it's news to me!

Brian.

Reply by email