Re: [Lazarus] While starting IDE, lazarus lock, without nay error

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 10:50:45 +0300 FreeMan freema...@delphiturkiye.com wrote: [...] lazbuild --quiet --max-process-count=8 --pcp=/Users/freeman35/.lazarus --build-all --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 Note: --max-process-count=8 has no effect here,

Re: [Lazarus] While starting IDE, lazarus lock, without nay error

2015-08-13 Thread FreeMan
On 13.08.2015 11:04, Mattias Gaertner wrote: lazbuild --quiet --max-process-count=8 --pcp=/Users/freeman35/.lazarus --build-all --skip-dependencies --build-ide= --ws=qt --cpu=x86_64 --compiler=ppcx64 In case of an error, you should replace --quiet with --verbose --verbose. with fpc svn r31319

Re: [Lazarus] While starting IDE, lazarus lock, without nay error

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 10:50:45 +0300 FreeMan freema...@delphiturkiye.com wrote: I'll update fpc r31319 fpc r49661 still same, I mean IDE still lock while startup When I try run lazbuild from terminal, its freezing after 5.line verbose. Maybe can helpfull. I add trace info too. I'll test with

Re: [Lazarus] While starting IDE, lazarus lock, without nay error

2015-08-13 Thread FreeMan
On 13.08.2015 11:04, Mattias Gaertner wrote: Does the problem happen with the release compiler 2.6.4 too? Mattias I did and not error, IDE compiled and started with fpc 2.6.4 But I can not use lazbuil, this error creted, this is normal 'cos I'm using utf8

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-09 um 14:31 schrieb Jürgen Hestermann: I just had a closer look at the function UTF8CharacterLength in unit LazUTF8. To me it looks as if it can be improved (made faster) because it checks too many things. According to https://de.wikipedia.org/wiki/UTF-8 the number of bytes of an

Re: [Lazarus] Strange interaction between combox and IniPropStorage

2015-08-13 Thread Luca Olivetti
El 12/08/15 a les 16:37, Luca Olivetti ha escrit: Definitely a regression: I just had to modify an old program (where this feature worked) and it doesn't work anymore :-( At least the workaround seems to do the job. It's not a regression, it's probably always been there, but I manually

Re: [Lazarus] While starting IDE, lazarus lock, without nay error

2015-08-13 Thread FreeMan
I'll update fpc r31319 fpc r49661 still same, I mean IDE still lock while startup When I try run lazbuild from terminal, its freezing after 5.line verbose. Maybe can helpfull. I add trace info too. I'll test with fpc 2.6.4 lazbuild --quiet --max-process-count=8 --pcp=/Users/freeman35/.lazarus

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 13:01 schrieb Mattias Gaertner: On Thu, 13 Aug 2015 12:38:00 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Am 2015-08-13 um 11:55 schrieb Mattias Gaertner: A string always ends with a #0, so checking byte by byte makes sure you stay within range. Not quite

Re: [Lazarus] *** GMX Spamverdacht *** Re: *** GMX Spamverdacht *** Re: Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 13:29 schrieb Michael Van Canneyt: On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Am 2015-08-13 um 12:59 schrieb Michael Van Canneyt: On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Determining the character length of a invalid UTF-8 string is quite useless. Because it's

[Lazarus] Error in UTF8CompareText comment

2015-08-13 Thread Jürgen Hestermann
There is a comment for UTF8CompareText in LazUTF8 which is contradictorily: // Returns: 0 if S1 S2, 0 if S1 = S2, 0 if S2 S1. But S1 S2 is the same as S2 S1. In the first case the result should be 0 and in the second one 0. It cannot even be retrieved from the code how it realy works

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 11:55 schrieb Mattias Gaertner: A string always ends with a #0, so checking byte by byte makes sure you stay within range. Not quite true: if ((ord(p^) and %) = %1110) then begin // could be 3 byte character if ((ord(p[1]) and %1100) =

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Michael Van Canneyt
On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Am 2015-08-13 um 11:55 schrieb Mattias Gaertner: If you know that you have a valid UTF-8 string you can simply use the first byte of each codepoint (as you pointed out). So, for that case a faster function can be added. Maybe UTF8QuickCharLen or

Re: [Lazarus] *** GMX Spamverdacht *** Re: Improving UTF8CharacterLength?

2015-08-13 Thread Michael Van Canneyt
On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Am 2015-08-13 um 12:59 schrieb Michael Van Canneyt: On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Determining the character length of a invalid UTF-8 string is quite useless. Because it's not about getting a correct result then, but about

Re: [Lazarus] Error in UTF8CompareText comment

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 12:15 schrieb Mattias Gaertner: On Thu, 13 Aug 2015 11:52:26 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: There is a comment for UTF8CompareText in LazUTF8 which is contradictorily: // Returns: 0 if S1 S2, 0 if S1 = S2, 0 if S2 S1. But S1 S2 is the same as

Re: [Lazarus] Error in UTF8CompareText comment

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 11:52:26 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: There is a comment for UTF8CompareText in LazUTF8 which is contradictorily: // Returns: 0 if S1 S2, 0 if S1 = S2, 0 if S2 S1. But S1 S2 is the same as S2 S1. It should be 0 if S1 S2. I changed the

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Mattias Gaertner
On Sun, 9 Aug 2015 14:31:44 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: I just had a closer look at the function UTF8CharacterLength in unit LazUTF8. To me it looks as if it can be improved (made faster) because it checks too many things. According to

[Lazarus] Run/Compile ignores changes in inline functions

2015-08-13 Thread Jürgen Hestermann
It seems that if I change something within a function that is declared inline and I then use run/compile in Lazarus it does not rebuild this function. I have to use run/build to see my changes in the program. Is this a known issue? -- ___ Lazarus

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 12:38:00 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Am 2015-08-13 um 11:55 schrieb Mattias Gaertner: A string always ends with a #0, so checking byte by byte makes sure you stay within range. Not quite true: if ((ord(p^) and %) =

Re: [Lazarus] *** GMX Spamverdacht *** Re: Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 12:59 schrieb Michael Van Canneyt: On Thu, 13 Aug 2015, Jürgen Hestermann wrote: Determining the character length of a invalid UTF-8 string is quite useless. Because it's not about getting a correct result then, but about not crashing due to invalid memory access. But

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 13:01 schrieb Mattias Gaertner: On Thu, 13 Aug 2015 12:38:00 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Am 2015-08-13 um 11:55 schrieb Mattias Gaertner: A string always ends with a #0, so checking byte by byte makes sure you stay within range. Not quite

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 13:23:28 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: [...] if ((ord(p^) and %) = %1110) then begin // could be 3 byte character if ((ord(p[1]) and %1100) = %1000) and ((ord(p[2]) and %1100) = %1000) then ...

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Mattias Gaertner
On Thu, 13 Aug 2015 14:05:19 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: [...] Still I think it would be better to give back 3 in case the byte actually means 3 because 1 byte does not form a valid UTF-8 character. If I rely on this result I would try to use this 1 byte as a valid

Re: [Lazarus] Improving UTF8CharacterLength?

2015-08-13 Thread Jürgen Hestermann
Am 2015-08-13 um 14:19 schrieb Mattias Gaertner: On Thu, 13 Aug 2015 14:05:19 +0200 Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Still I think it would be better to give back 3 in case the byte actually means 3 because 1 byte does not form a valid UTF-8 character. If I rely on this

Re: [Lazarus] Editor not syntax highlighting certain unit

2015-08-13 Thread Graeme Geldenhuys
On 2015-08-13 18:59, Martin Frb wrote: It should look at the extension (the configured extensions are on the color page of the IDE options) It might (I am not sure) store info in the session (lps, lpi). Ah, the problem was in the .lps file. For some reason I had loads of files with

[Lazarus] Breakpoints not working

2015-08-13 Thread Donald Ziesig
Hi All, I just updated my windows (ugh) version of Lazarus to 1.4. Everything seems to be working fine except breakpoints are not breaking. They are listed in the breakpoints window with the break property set true, but execution goes wizzing by them without stopping. Any ideas on what

Re: [Lazarus] Breakpoints not working [solved]

2015-08-13 Thread Donald Ziesig
On 08/13/2015 12:27 PM, Donald Ziesig wrote: Hi All, I just updated my windows (ugh) version of Lazarus to 1.4. Everything seems to be working fine except breakpoints are not breaking. They are listed in the breakpoints window with the break property set true, but execution goes wizzing by

Re: [Lazarus] Breakpoints not working

2015-08-13 Thread Martin Frb
On 13/08/2015 17:27, Donald Ziesig wrote: Hi All, I just updated my windows (ugh) version of Lazarus to 1.4. Everything seems to be working fine except breakpoints are not breaking. They are listed in the breakpoints window with the break property set true, but execution goes wizzing by

Re: [Lazarus] Editor not syntax highlighting certain unit

2015-08-13 Thread Graeme Geldenhuys
On 2015-08-13 17:12, Martin Frb wrote: IIRC HL is chosen according to file extension .pp or .pas Do your files have those extension? For the project I'm working on they are all .pp file extensions. More specific, these units are pure code units (declaring unit tests), so no Forms or other

Re: [Lazarus] Editor not syntax highlighting certain unit

2015-08-13 Thread Martin Frb
On 13/08/2015 18:03, Graeme Geldenhuys wrote: On 2015-08-13 17:12, Martin Frb wrote: IIRC HL is chosen according to file extension .pp or .pas Do your files have those extension? Also, as I mentioned these units compile just fine, so no syntax issues. Forcing Free Pascal syntax highlighting

Re: [Lazarus] Run/Compile ignores changes in inline functions

2015-08-13 Thread Sven Barth
Am 13.08.2015 12:48 schrieb Jürgen Hestermann juergen.hesterm...@gmx.de: It seems that if I change something within a function that is declared inline and I then use run/compile in Lazarus it does not rebuild this function. I have to use run/build to see my changes in the program. Is this a

Re: [Lazarus] Editor not syntax highlighting certain unit

2015-08-13 Thread Martin Frb
On 13/08/2015 16:50, Graeme Geldenhuys wrote: I then have to manually select the popup menu and select Object Pascal as the highlighter and it works fine again. Closing the unit and opening it again doesn't solve the problem. It always happens with specific units too - I can reproduce the issue

[Lazarus] Editor not syntax highlighting certain unit

2015-08-13 Thread Graeme Geldenhuys
Hi, I'm running Lazarus 1.5 r48959 FPC 2.6.4 x86_64-linux-gtk 2, and every day I get this issue a couple of times - not always. I open a unit, but Lazarus simply doesn't apply any syntax highlighting. No idea why. There isn't any object pascal syntax errors as the units compile just fine. I