Re: [Lazarus] Customizing Lazarus IDE, some items hard to find...
On Thu, 28 Nov 2019 14:21:51 +0100, Mattias Gaertner via lazarus wrote: >> So I want to have a space both before and after := >> How can that be done? >> >> The closest I get is Options/CodeTools/Space >> But no matter if I check or uncheck the box before "Colon" there is no >> space added. > >Insert space before "Symbol". >":" and ":=" are different tokens. > > >> Where can I locate this setting (the working one)? So "Symbol" is a generic term in this case? It solved the problem when completing the call to a method of the object. :) I removed the add space before Comma and Semicolon too. Now working much better! Thanks! -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...
On 28/11/2019 15:10, Martin Frb via lazarus wrote: You could try running lazarus, without gdb, but with output redirection to a file. Lazarus has some logging that checks for an open console. So there will be content in that file, that does not confirm anything about a rogue writeln. But if there were no crash, it could be a hint. you could try lazarus --debug-log=/home/NAME/good-log.txt > /home/NAME/bad-log.txt The first part redirects any proper logging. So anything that goes into the 2nd file, would need to be checked. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...
On 28/11/2019 12:08, Bo Berglund via lazarus wrote: On Mon, 25 Nov 2019 10:31:51 +0100, Bo Berglund via lazarus wrote: OK, This worked! Now I have a Lazarus IDE running after starting via gdb. Lets see how long it will take before the next crash... So it has been running fine now for 72 hours while I have coded a lot. No crashes that plagued me last week. :) Two possibilities: 1) GDB itself makes the Lazarus application behave better? 2) Not using startlazarus when starting lazarus? I did use the lazarus program for gdb and not startlazarus... Yes, it is important to use "lazarus" not "startlazarus" in gdb. gdb only debugs the program it started. By default it will not do anything to sub processes. That also means restarting the IDE will stop it from being debugged. gdb should not have much effect. So there a slight changes in timing (eg when libraries are loaded). This could change race-conditions. It could be something different in the remote connection There could be a bug in startlazarus, and maybe it started an old/buggy lazarus from some other place... (not sure, but) Or it could be, that when launching in GDB (and with that in a terminal) there is a console. That means, if someone put an unprotected "writeln" somewhere in the IDE code, it could write to console. Otherwise stdout would be a closed handle. You could try running lazarus, without gdb, but with output redirection to a file. Lazarus has some logging that checks for an open console. So there will be content in that file, that does not confirm anything about a rogue writeln. But if there were no crash, it could be a hint. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Customizing Lazarus IDE, some items hard to find...
On Thu, 28 Nov 2019 14:04:33 +0100 Bo Berglund via lazarus wrote: > I am used to a certain style of code formatting including coloring > etc. > Now I am strugglking again to find where one sets these items... > > It is not obvious to me but I know I have gotten advice before but I > cannot find it again. > > So: when a property of an item is completed the IDE puts =; after the > item. Like so: > TS.Active:=; > > The 3 last chars are entered by Lazarus when I select the Active word > in the drop-down that appears. > > I want it to look like this inmstead: > > TS.Active := ; > > So I want to have a space both before and after := > How can that be done? > > The closest I get is Options/CodeTools/Space > But no matter if I check or uncheck the box before "Colon" there is no > space added. Insert space before "Symbol". ":" and ":=" are different tokens. > Where can I locate this setting (the working one)? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Customizing Lazarus IDE, some items hard to find...
I am used to a certain style of code formatting including coloring etc. Now I am strugglking again to find where one sets these items... It is not obvious to me but I know I have gotten advice before but I cannot find it again. So: when a property of an item is completed the IDE puts =; after the item. Like so: TS.Active:=; The 3 last chars are entered by Lazarus when I select the Active word in the drop-down that appears. I want it to look like this inmstead: TS.Active := ; So I want to have a space both before and after := How can that be done? The closest I get is Options/CodeTools/Space But no matter if I check or uncheck the box before "Colon" there is no space added. Where can I locate this setting (the working one)? -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...
On Thu, 28 Nov 2019 12:08:30 +0100 Bo Berglund via lazarus wrote: > On Mon, 25 Nov 2019 10:31:51 +0100, Bo Berglund via lazarus > wrote: > > >OK, This worked! > >Now I have a Lazarus IDE running after starting via gdb. > >Lets see how long it will take before the next crash... > > So it has been running fine now for 72 hours while I have coded a lot. > No crashes that plagued me last week. :) > > Two possibilities: > 1) GDB itself makes the Lazarus application behave better? > 2) Not using startlazarus when starting lazarus? > > I did use the lazarus program for gdb and not startlazarus... > > If it is the second item then I could well create another desktop file > that starts lazarus directly instead of using startlazarus in the exec > command in the desktop file. > > OTOH, if I want to add a package to Lazarus it is my understanding > that it needs startlazarus in order to recompile itself properly. > So is that only possible if I have started lazarus by startlazarus or > will it be able to do the same also if it runs from lazarus only? It can be started either way. The restart uses startlazarus. Of course you can just close and start it manually as well. > Note that here I am talking about running in Linux (Raspbian) and NOT > on Windows... Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus 2.0.6 IDE suddenly disappeared losing a lot of edits...
On Mon, 25 Nov 2019 10:31:51 +0100, Bo Berglund via lazarus wrote: >OK, This worked! >Now I have a Lazarus IDE running after starting via gdb. >Lets see how long it will take before the next crash... So it has been running fine now for 72 hours while I have coded a lot. No crashes that plagued me last week. :) Two possibilities: 1) GDB itself makes the Lazarus application behave better? 2) Not using startlazarus when starting lazarus? I did use the lazarus program for gdb and not startlazarus... If it is the second item then I could well create another desktop file that starts lazarus directly instead of using startlazarus in the exec command in the desktop file. OTOH, if I want to add a package to Lazarus it is my understanding that it needs startlazarus in order to recompile itself properly. So is that only possible if I have started lazarus by startlazarus or will it be able to do the same also if it runs from lazarus only? Note that here I am talking about running in Linux (Raspbian) and NOT on Windows... -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus