Recent

Author Topic: Lazarus Release Candidate 3 of 1.4  (Read 61038 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 3 of 1.4
« Reply #30 on: April 11, 2015, 07:52:32 pm »
i found an error by accident  ;)

File: SourceSynEditor
Function:  TIDESynGutterLOvProviderPascal.HighlightChanged
Line: 1826

Thanks and fixed.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: Lazarus Release Candidate 3 of 1.4
« Reply #31 on: April 12, 2015, 02:04:57 am »
Still same "Semaphore init" err, like I told in Mantis. One of 1.4RC worked ok (rc1 maybe), only shown "Debugger error", while 1.4RC2/3 show err on compile, and compile hangs, cannot run - cannot quit IDE (ide cannot close)


Project atSynEdit (https://github.com/Alexey-T/ATSynEdit , app/demo_editor),
error on compile

 
« Last Edit: April 12, 2015, 02:07:37 am by Alextp »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: Lazarus Release Candidate 3 of 1.4
« Reply #32 on: April 12, 2015, 02:12:42 am »
note. "1.4 Test" ide from getlazarus.org works/compiles ok, while 1.4RC1/2/3 don't work..

Tommi

  • Full Member
  • ***
  • Posts: 213
Possibile BUG in TRegistry
« Reply #33 on: April 12, 2015, 03:37:06 pm »
This is my code:
Code: [Select]
procedure TForm1.FormCreate(Sender: TObject);
var
  reg: TRegistry;
  l: TStringList;
  n:integer;
begin
  sport := TblockSerial.create;
  connected  := FALSE;
  l:=TStringList.Create;
  reg := TRegistry.Create;
  try
    reg.Access := KEY_READ;
    reg.RootKey := HKEY_LOCAL_MACHINE;
    reg.OpenKey('\HARDWARE\DEVICEMAP\SERIALCOMM', false);
    reg.GetValueNames(l);
    for n := 0 to l.Count - 1 do
      begin
        ComboBox2.Items.Add(reg.ReadString(l[n]));
        memo1.Text:=memo1.Text+l[n];
        memo1.Text:=memo1.Text+'  --  '+ reg.ReadString(l[n])+#13+#10;
      end;
    if (ComboBox2.Items.Count>0) then ComboBox2.Text:=ComboBox2.Items[0];
  finally
    reg.Free;
    l.Free;
  end;
end;   

This is what I find in Memo1:
Code: [Select]
\Device\Serial0  --  COM1
\Device\BthModem2  --  COM
\Device\BthModem0  --  COM
\Device\BthModem1  --  COM

But the real content is of the key is :
Code: [Select]
\Device\Serial0  --  COM1
\Device\BthModem2  --  COM3
\Device\BthModem0  --  COM6
\Device\BthModem1  --  COM7

I noticed that if I create a new value it is correctly read.
If I go on one of the not working values, I select Edit, and I just click OK, it becomes working.

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 3 of 1.4
« Reply #34 on: April 12, 2015, 03:59:43 pm »
note. "1.4 Test" ide from getlazarus.org works/compiles ok, while 1.4RC1/2/3 don't work..

getlazarus.org uses trunk fpc and trunk lazarus. Fix could be in fpc or in lazarus.

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 3 of 1.4
« Reply #35 on: April 12, 2015, 08:56:56 pm »
Does your project has any changes to any path setting (on the Project > Compiler Options > Path)?
Ahym, that was it: C:\lazarus\fpc\2.6.1\source\packages\fcl-base\src\;C:\lazarus\components\tachart\
I have no idea why it was there, so I removed the whole line and it compiles now.
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Possibile BUG in TRegistry
« Reply #36 on: April 12, 2015, 08:59:30 pm »
This is my code:
Code: [Select]
procedure TForm1.FormCreate(Sender: TObject);
var
  reg: TRegistry;
  l: TStringList;
  n:integer;
begin
  sport := TblockSerial.create;
  connected  := FALSE;
  l:=TStringList.Create;
  reg := TRegistry.Create;
  try
    reg.Access := KEY_READ;
    reg.RootKey := HKEY_LOCAL_MACHINE;
    reg.OpenKey('\HARDWARE\DEVICEMAP\SERIALCOMM', false);
    reg.GetValueNames(l);
    for n := 0 to l.Count - 1 do
      begin
        ComboBox2.Items.Add(reg.ReadString(l[n]));
        memo1.Text:=memo1.Text+l[n];
        memo1.Text:=memo1.Text+'  --  '+ reg.ReadString(l[n])+#13+#10;
      end;
    if (ComboBox2.Items.Count>0) then ComboBox2.Text:=ComboBox2.Items[0];
  finally
    reg.Free;
    l.Free;
  end;
end;   

This is what I find in Memo1:
Code: [Select]
\Device\Serial0  --  COM1
\Device\BthModem2  --  COM
\Device\BthModem0  --  COM
\Device\BthModem1  --  COM

But the real content is of the key is :
Code: [Select]
\Device\Serial0  --  COM1
\Device\BthModem2  --  COM3
\Device\BthModem0  --  COM6
\Device\BthModem1  --  COM7

I noticed that if I create a new value it is correctly read.
If I go on one of the not working values, I select Edit, and I just click OK, it becomes working.

Use FPC trunk/upcoming FPC 3.0.x for that. See : http://bugs.freepascal.org/view.php?id=21899

CM630

  • Hero Member
  • *****
  • Posts: 1077
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 3 of 1.4
« Reply #37 on: April 14, 2015, 12:42:43 pm »
I just found something in the IDE, which I think is wrong:
When I open Project Inspector and then I press ESC, the window of the project inspector gets empy. I suppose it should simply get closed when ESC is pressed.
Same problem exists in the official Lazarus, too.
If it matters- I use anchored IDE.
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 3 of 1.4
« Reply #38 on: April 14, 2015, 02:14:01 pm »
I just found something in the IDE, which I think is wrong:
When I open Project Inspector and then I press ESC, the window of the project inspector gets empy. I suppose it should simply get closed when ESC is pressed.
Same problem exists in the official Lazarus, too.
If it matters- I use anchored IDE.

Better fill an issue about it.

baldzhang

  • New Member
  • *
  • Posts: 33
Re: Lazarus Release Candidate 3 of 1.4
« Reply #39 on: April 14, 2015, 05:06:50 pm »
Hi

I use fixes_1_4 branch, and updated
found a designer problem:
  when a control is selected, and drag it to new position, the control will jump a random offset in horizontal and vertical.
  but if the control is NOT selected, then click and drag, the action is ok

in 1.2 release, is ok

if someone else meet the same, please submit a bug report

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release Candidate 3 of 1.4
« Reply #40 on: April 14, 2015, 05:08:53 pm »
Hi

I use fixes_1_4 branch, and updated
found a designer problem:
  when a control is selected, and drag it to new position, the control will jump a random offset in horizontal and vertical.
  but if the control is NOT selected, then click and drag, the action is ok

in 1.2 release, is ok

if someone else meet the same, please submit a bug report

When you updated 1_4 fixes ? Some changes were merged yesterday (about selections), so it's important information.

baldzhang

  • New Member
  • *
  • Posts: 33
Re: Lazarus Release Candidate 3 of 1.4
« Reply #41 on: April 14, 2015, 05:20:13 pm »
I update 1 hours ago, last changed revision: 48755

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: Lazarus Release Candidate 3 of 1.4
« Reply #42 on: April 14, 2015, 05:29:00 pm »
I just found something in the IDE, which I think is wrong:
When I open Project Inspector and then I press ESC, the window of the project inspector gets empy. I suppose it should simply get closed when ESC is pressed.
Same problem exists in the official Lazarus, too.
If it matters- I use anchored IDE.
I do not have that problem on Linux GTK2...
keep it simple

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: Lazarus Release Candidate 3 of 1.4
« Reply #43 on: April 14, 2015, 06:50:57 pm »
I use fixes_1_4 branch, and updated
found a designer problem:
  when a control is selected, and drag it to new position, the control will jump a random offset in horizontal and vertical.
  but if the control is NOT selected, then click and drag, the action is ok

I cannot reproduce. I tested on Windows and on Linux with GTK2 and QT widgetsets.
Does it happen only with a certain project or form? Can you please copy it here.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

baldzhang

  • New Member
  • *
  • Posts: 33
Re: Lazarus Release Candidate 3 of 1.4
« Reply #44 on: April 14, 2015, 07:31:23 pm »
I use fixes_1_4 branch, and updated
found a designer problem:
  when a control is selected, and drag it to new position, the control will jump a random offset in horizontal and vertical.
  but if the control is NOT selected, then click and drag, the action is ok

I cannot reproduce. I tested on Windows and on Linux with GTK2 and QT widgetsets.
Does it happen only with a certain project or form? Can you please copy it here.


Nothing special....
Just start lazarus, start new project, put a panel in form, and drag & drag & drag...
See attachment photo

PS: Win7 x64, fpc 2.6.4 win32, lazarus fix_1_4 r48755 Win32 widgetsets
Lazarus 1.2.6 tested, is ok

 

TinyPortal © 2005-2018