Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on February 18, 2016, 04:22:35 pm

Title: Lazarus 1.6 - Released
Post by: Martin_fr on February 18, 2016, 04:22:35 pm
The Lazarus team is glad to announce the release of Lazarus 1.6.

This release was built with FPC 3.0.0.
The previous release Lazarus 1.4.4 was built with FPC 2.6.4.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.0

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.6" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#1_6

Minimum requirements:

Windows:
  98, 2000, XP, Vista, 7, 8/8.1, 10, 32 or 64 bit.       
  Win98 and WinNT IDE needs FPC 2.6.4 and building with flag
    -dWIN9XPLATFORM.

FreeBSD/Linux:
  gtk 2.8 or qt4.5, 32 or 64bit.

Mac OS X:
  10.5 to 10.11, LCL only 32bit, non LCL apps can be 64bit.

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6

Here is the list of fixes for Lazarus 1.6:
http://wiki.freepascal.org/Lazarus_1.6_fixes_branch

For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at:
ftp://freepascal.dfmk.hu/pub/lazarus/releases/
and later at (after some time for synchronization)
http://michael-ep3.physik.uni-halle.de/Lazarus/releases/
and
http://mirrors.iwi.me/lazarus/

Title: Re: Lazarus 1.6 - Released
Post by: itmitica on February 18, 2016, 04:42:22 pm
FPC version was the same as with 1.6RC2. Removed 1.6RC2, removed the ~/.lazarus folder, installed 1.6, test compile successful.

Thank you Lazarus Team!
Title: Re: Lazarus 1.6 - Released
Post by: Shebuka on February 18, 2016, 05:26:04 pm
Congratulations to all, especially the Lazarus team! 👍

Btw, I'm the first to download the Mac version 😄 (or maybe the counter is lazy to update, it's still 0...)
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on February 18, 2016, 06:50:31 pm
Advice for Linux users. Some distros contain an older version of ld, that does not work well. If building hangs during linking please see http://forum.lazarus.freepascal.org/index.php/topic,31578.msg202509
Title: Re: Lazarus 1.6 - Released
Post by: Thaddy on February 18, 2016, 06:57:12 pm
Advice for Linux users. Some distros contain an older version of ld, that does not work well. If building hangs during linking please see http://forum.lazarus.freepascal.org/index.php/topic,31578.msg202509

Linker needs to be (maybe equal or) above v7.25 it seems. Some distro's have 7.23 as default. That does not work well. Older linkers may work.
Title: Re: Lazarus 1.6 - Released
Post by: TraumTaenzerDieter on February 18, 2016, 07:59:28 pm
Just installed and then tried a rebuild (to use my extra components)
which gives me this error:
Fatal: Kann sslsockets nicht finden verwendet von fphttpclient. Make sure all ppu files of a package are in its output directory. ppu im falschen Verzeichnis=D:\Dev\Lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..

RC2 worked without problems, so should I go back?

Problem was solved by making a CLEAN install of LNET 0.6.6 !
Title: Re: Lazarus 1.6 - Released
Post by: georgebou on February 18, 2016, 10:14:33 pm
Great news guys.
Keep up good work.
Title: Re: Lazarus 1.6 - Released
Post by: FTurtle on February 18, 2016, 10:35:03 pm
Thanks.

By the way, I think it is a good time to change link "What's New" at Lazarus Homepage

from:
http://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch

to:
http://wiki.lazarus.freepascal.org/Lazarus_1.6_fixes_branch
Title: Re: Lazarus 1.6 - Released
Post by: frakno on February 18, 2016, 11:01:57 pm
works like a charm. even my more sophisticated projects using zeos and/or internet connection work without any adjusting needs

a really great thank you for your efforts
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on February 18, 2016, 11:02:24 pm
By the way, I think it is a good time to change link "What's New" at Lazarus Homepage
committed, will be uploaded soon
Title: Re: Lazarus 1.6 - Released
Post by: chenyuchih on February 19, 2016, 01:10:10 am
Great news! Thank you so much all the lazarus team!!
Title: Re: Lazarus 1.6 - Released
Post by: lhxzui on February 19, 2016, 02:47:40 am
Good.
Thanks a lot. :)
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on February 19, 2016, 03:58:07 am
Thx much for this awesome point release !
Title: Re: Lazarus 1.6 - Released
Post by: dparnaby on February 19, 2016, 04:39:25 am
I changed a year ago to Lazarus with a large project  containing 250000 lines of code and thirty components but was not sure whether Lazarus would be a viable option.
Lazarus  has proved a rock solid alternative.
Lazarus 1.6 has been installed and works perfectly.
I am grateful.
Thank  you Lazarus and FPC teams. Well done. :) David

Title: Re: Lazarus 1.6 - Released
Post by: j0x on February 19, 2016, 05:47:05 am
congrats to the new release

btw is this site http://www.getlazarus.org/ also yours? or are they fake?
Title: Re: Lazarus 1.6 - Released
Post by: mangakissa on February 19, 2016, 09:01:27 am
Thanks, Lazarus team. Finally a distributed version with FPC 3.0
Title: Re: Lazarus 1.6 - Released
Post by: Thaddy on February 19, 2016, 09:07:12 am
congrats to the new release

btw is this site http://www.getlazarus.org/ also yours? or are they fake?

GetLazarus is by no means fake, but a website by a Lazarus user. It is not the official website if that is what you mean.
It contains a lot of useful information and builds that are not yet in the official release.

But official releases are only from https://sourceforge.net/projects/lazarus/files/ .

Title: Re: Lazarus 1.6 - Released (rebuild bug)
Post by: eric on February 19, 2016, 09:13:11 am
I deleted the old ~/.lazarus directory and uninstalled Lazarus and FPC. I then installed Lazarus 1.6 with FPC 3.0. When I rebuilt the IDE to install some components, it completed the rebuild and restarted properly. However, when I closed it down and tried to restart it again it displayed the "Configure Lazarus IDE" dialog with the message "Warning: directory lcl not found". The component palette was empty apart from my custom components.

I found the solution in the "IDE options" dialog. In the "Files" section, the item "Lazarus directory" was empty. I entered "/usr/share/lazarus/1.6/", and after this Lazarus started up properly. So I suppose this is a small bug but easily fixed.

[Edit] Sorry, I failed to say that this is a 64 bit Debian Linux system.
Title: Re: Lazarus 1.6 - Released (rebuild bug)
Post by: JuhaManninen on February 19, 2016, 11:23:17 am
I deleted the old ~/.lazarus directory and uninstalled Lazarus and FPC. I then installed Lazarus 1.6 with FPC 3.0.

How did you install it?
Title: Re: Lazarus 1.6 - Released
Post by: eric on February 19, 2016, 11:32:06 am
It's a Debian system. I used the .deb packages.
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on February 19, 2016, 11:55:53 am
It's a Debian system. I used the .deb packages.

I remember similar error with clean installation earlier but didn't find any report about it.
However the initial Configure Lazarus IDE dialog should find Lazarus directory and at least offer it in a Combo list.
It makes this a minor bug but still a bug.
I will test in a virtual machine later ...
Title: Re: Lazarus 1.6 - Released
Post by: Wok on February 19, 2016, 02:20:51 pm
Great work, go on :D
Title: Re: Lazarus 1.6 - Released
Post by: Valentin on February 19, 2016, 02:40:12 pm
Thank you!  :)
Title: Re: Lazarus 1.6 - Released
Post by: qptain Nemo on February 19, 2016, 04:17:36 pm
Guys, are you aware of http://bugs.freepascal.org/view.php?id=29176 (http://bugs.freepascal.org/view.php?id=29176)? It's a pretty serious bug in fpc 3.0.0 IMO. I don't know if it affects Lazarus, like whether Lazarus uses dateutils from the FPC RTL but I think someone should make sure that this issue doesn't actually affect Lazarus. Just sayin'.
Title: Re: Lazarus 1.6 - Released
Post by: Paul_ on February 19, 2016, 04:27:30 pm
Thank you for new version! :)
Title: Re: Lazarus 1.6 - Released
Post by: zeljko on February 19, 2016, 05:03:58 pm
Guys, are you aware of http://bugs.freepascal.org/view.php?id=29176 (http://bugs.freepascal.org/view.php?id=29176)? It's a pretty serious bug in fpc 3.0.0 IMO. I don't know if it affects Lazarus, like whether Lazarus uses dateutils from the FPC RTL but I think someone should make sure that this issue doesn't actually affect Lazarus. Just sayin'.

Afaik that bug is fixed in 3.0.0
Title: Re: Lazarus 1.6 - Released
Post by: j0x on February 19, 2016, 09:53:46 pm
congrats to the new release

btw is this site http://www.getlazarus.org/ also yours? or are they fake?

GetLazarus is by no means fake, but a website by a Lazarus user. It is not the official website if that is what you mean.
It contains a lot of useful information and builds that are not yet in the official release.

But official releases are only from https://sourceforge.net/projects/lazarus/files/ .

ye i actually thought its a shady site, that website looks better than the official site too so it got me skeptical that it might be deceitful

but thanks for clearing that up
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 20, 2016, 12:00:38 am
Ubuntu 12.04 64 bit in VMware VM on OSX.  I had 1.4.4 installed.  Downloaded the DEB files and installed the FPC no problem.  Installing Lazarus it says it can update via the Software Center but it get stuck about 1/8 of the progress bar and eventually just bails out. 
Rebooted the VM, Rebooted OSX.  Still the same.

Any thoughts?

UPDATE: 

 Tried it one more time and it finally asked me to allow changes and it installed...  Weird...

Jim
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 20, 2016, 12:27:41 am
http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779 (http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779)

This is not fixed in the release, it makes using Lazarus painful if I have to edit the library paths by editing the underlying files....

Jim
Title: Re: Lazarus 1.6 - Released
Post by: russeld on February 20, 2016, 10:43:15 am
Just installed and then tried a rebuild (to use my extra components)
which gives me this error:
Fatal: Kann sslsockets nicht finden verwendet von fphttpclient. Make sure all ppu files of a package are in its output directory. ppu im falschen Verzeichnis=D:\Dev\Lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..

RC2 worked without problems, so should I go back?

Problem was solved by making a CLEAN install of LNET 0.6.6 !
Same issue here:
fphttpclient.pp(285,6) Fatal: Cannot find sslsockets used by fphttpclient. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..
Title: Re: Lazarus 1.6 - Released
Post by: eric on February 20, 2016, 01:51:08 pm
Same issue here:
fphttpclient.pp(285,6) Fatal: Cannot find sslsockets used by fphttpclient. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..

That's the error you get if you install the current released version of lNet. If you want to install lNet, use the trunk version, which includes a fix for this issue.
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 20, 2016, 04:16:09 pm
Fantastic work! Thanks guys!

I just installed on OS X and giving it a spin. I can confirm this bug on OS X:

http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779 (http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779)

This is not fixed in the release, it makes using Lazarus painful if I have to edit the library paths by editing the underlying files....

Jim

Trying to add a path locks up Lazarus. Is a bug report filed?

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 20, 2016, 05:16:06 pm
Quote
I just installed on OS X and giving it a spin. I can confirm this bug on OS X:

The latest code in SVN does not work either.  I am trying to track this down.

To anyone, it is possible to run the SVN version of Lazarus from within Lazarus? 

Jim
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 20, 2016, 08:45:00 pm
@JimKueneman

The same thing happens when trying to add a new image in the ImageList Editor. Clicking on "Add" opens the "Add Image" dialog, which locks up and requires a force quit.

This makes it impossible to add an icon to a toolbar. :(

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 20, 2016, 10:22:13 pm
@JimKueneman

The same thing happens when trying to add a new image in the ImageList Editor. Clicking on "Add" opens the "Add Image" dialog, which locks up and requires a force quit.

This makes it impossible to add an icon to a toolbar. :(

Cheers,
VTwin

I have now installed 1.6 on Windows and Linux in VirtualBox, as well as OS X. All installations were smooth. I can boot into Windows for now to edit an ImageList.

I am liking the improvements in the IDE! Very nice job. Well worth dealing with a few minor hiccups.

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: Akira1364 on February 21, 2016, 02:02:42 am
Quality release! Why would anyone spend a ludicrous $5000+ dollars on Delphi in a world where Lazarus exists? For a bunch of mediocre database backends that no one uses? I mean, come on, FireDAC? In 2016? Give me a break! Keep up the good work and you might just put Embarcadero out of business. ;)
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 03:22:48 am
Quote
The same thing happens when trying to add a new image in the ImageList Editor. Clicking on "Add" opens the "Add Image" dialog, which locks up and requires a force quit.

What I think is going on is the only thing that changed between 1.4.4 and 1.6.0 is that the Edit/Button combo got refactored into a new class called TCustomAbstractGroupedEdit by Bart Broersma.

It seems like something is going on with parenting of the OSX file/folder find dialog and this new class.  I have not tracked it down yet and feel like a child stumbling around in the dark looking for the problem....

Is there a snapshot of 1.4.4 sources somewhere that I can download to help debug what is different?

Jim
Title: Re: Lazarus 1.6 - Released
Post by: Mike.Cornflake on February 21, 2016, 03:57:14 am
Is there a snapshot of 1.4.4 sources somewhere that I can download to help debug what is different?

http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_4_4/
(untested)
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on February 21, 2016, 04:28:20 am
I would not try to compare with 1.4.4, despite only some month between the releases, the actual difference is about a full year.
1.4.4 only is on the 1.4 branch which was created a year ago, and the 1.4 branch only received a subset of all the changes made since.

You will need an svn client to get different sources from trunk (step by step / or intersecting, by going back half way since the branch, and then keep halfing).

Quote
To anyone, it is possible to run the SVN version of Lazarus from within Lazarus?
- Start trunk as a 2nd install using --primary-config-path=new_conf_dir
- build trunk (with debug info) / dwarf if you have a newer debugger.

then open the project ide/lazarus.lpi  (from the trunk sources)
you can do that with the 1.6 IDE or with the trunk ide.

In menu Run > Run Params  make sure you point the "host application" to the trunk lazarus executable.

then press F9.
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 06:40:13 am
Quote
I would not try to compare with 1.4.4, despite only some month between the releases, the actual difference is about a full year.
1.4.4 only is on the 1.4 branch which was created a year ago, and the 1.4 branch only received a subset of all the changes made since.

I see what is going on.  The Project Options Dialog window is coming up with SUPER stay on top powers in OSX.  Even the Dock popup can't show on top of the Project Options Dialog (maybe others).  Can anyone give me a hint on where to look to see where there this dialog is getting its windows properties to stay on top?

Jim
Title: Re: Lazarus 1.6 - Released
Post by: JZS on February 21, 2016, 07:31:25 am
Many thanks Lazarus Team.

I do not know if this is only my impression. But Lazarus 1.6 looks much faster.
Title: Re: Lazarus 1.6 - Released
Post by: BlackT on February 21, 2016, 10:16:27 am
It's great to see the Lazarus IDE growing. Thank you very much for this new release!
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on February 21, 2016, 12:38:49 pm
I do not know if this is only my impression. But Lazarus 1.6 looks much faster.

Which part is faster? The startup got noticeably faster already in Lazarus 1.4.x when drawing the component palette was optimized.
The new compiler can make some difference in speed but it is not always faster.
Otherwise I don't know of any big speedups.
Title: Re: Lazarus 1.6 - Released
Post by: JZS on February 21, 2016, 02:27:51 pm
I do not know if this is only my impression. But Lazarus 1.6 looks much faster.

Which part is faster? The startup got noticeably faster already in Lazarus 1.4.x when drawing the component palette was optimized.
The new compiler can make some difference in speed but it is not always faster.
Otherwise I don't know of any big speedups.


Should have been more specific, for that I apologize.

I already noticed considerable difference in compiling/installing packages. It might be only me though.

I notice such small variations, since I am dealing with the exact same stuff across different versions. But I do not set benchmarks or any other method to share. Only my observations.

For instance, now also the executable size is relatively smaller. Also just observation.

Hope this hasn't created much fuss from my side.
Title: Re: Lazarus 1.6 - Released
Post by: zeljko on February 21, 2016, 02:37:24 pm
Indeed, binary size is smaller.
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on February 21, 2016, 02:52:35 pm
Hope this hasn't created much fuss from my side.

No fuss. I am interested in speedups and optimization. That's why I asked.
FPC 3.0 indeed creates smaller and faster code but the effect in IDE is small because most of the GUI stuff happens in widgetsets. But yes, in some operations it can make a difference. I have not timed / compared -O3 optimized versions of the IDE but it would be an interesting comparison. For example CodeTools does not depend on widgetset and the speedup may be visible when browsing and completing code in editor.

One issue is the compilation speed of FPC. It is often mentioned because Delphi's compiler has traditionally been so super fast. FPC speed will never match it but I believe it has room for some improvement. Let's see.
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 05:13:35 pm
Quote
I would not try to compare with 1.4.4, despite only some month between the releases, the actual difference is about a full year.
1.4.4 only is on the 1.4 branch which was created a year ago, and the 1.4 branch only received a subset of all the changes made since.

You will need an svn client to get different sources from trunk (step by step / or intersecting, by going back half way since the branch, and then keep halfing).

Ok, I see it.  For OS X users if you use ShowModal in any of your production code I would not use 1.6 yet, you may get some unhappy users.  Some change in the LCL have caused a ShowModal form to have a higher priority than _any_ other window on the system.  That can cause issues if you try to pop a system dialog from this modal form.  The modal form has higher priority and the system dialog will not be accessible. 

Simply drop two forms in a fresh application. Put one button on one form that simply calls Form2.ShowModal.  Drag that form down near the Applications Icon on the Dock.  Now go to the dock and press the Applications button.  The form shows on top of the popup from the Dock.   Also if you Command-Tab to another application it can't get on top of the modal form.

I compared the Carbon Interface files for the show modal code and they are virtually identical between 1.4.4 and 1.6 so it has to be somewhere in the window class creation which I have not found where this is exactly.

Jim

Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 21, 2016, 05:44:09 pm
Thanks Jim,

Quote
For OS X users if you use ShowModal in any of your production code I would not use 1.6 yet, you may get some unhappy users.
  :o

This is bad news. I verified your test, and it explains the problem with the system dialogs. Unfortunately I use ShowModal fairly often for input dialogs.

A patch or workaround would be most welcome.

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on February 21, 2016, 06:00:49 pm
I compared the Carbon Interface files for the show modal code and they are virtually identical between 1.4.4 and 1.6 so it has to be somewhere in the window class creation which I have not found where this is exactly.

Can you find the revision that caused the problem? Use trunk as Martin suggested, then binary search by testing a revision, splitting the range in half, compiling and testing again. O(log2(n)).
Hint: "git bisect" command makes this task easy and fun. :)
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 06:10:40 pm
Ok found the change that broke things I believe it is in the

{Lazarus}/lcl/include/customform.inc

1.4.4

Code: Pascal  [Select][+][-]
  1. procedure TCustomForm.CreateParams(var Params : TCreateParams);
  2. begin
  3.   inherited CreateParams(Params);
  4.   with Params do
  5.   begin
  6.     if (Parent = nil) and (ParentWindow = 0) then
  7.     begin
  8.       // define Parent according to PopupMode and PopupParent
  9.       if not (csDesigning in ComponentState) then
  10.       begin
  11.         if (Application.MainForm <> Self) then
  12.         begin
  13.           case PopupMode of
  14.             pmNone:;
  15.             pmAuto:
  16.               if (Screen.ActiveForm <> nil) then
  17.                 WndParent := Screen.ActiveForm.Handle;
  18.             pmExplicit:
  19.               if (PopupParent <> nil) then
  20.                 WndParent := PopupParent.Handle;
  21.           end;
  22.         end;
  23.         if (WndParent = 0) and
  24.            (((Self = Application.MainForm) and Application.MainFormOnTaskBar) or (GetEffectiveShowInTaskBar = stAlways)) then
  25.           ExStyle := ExStyle or WS_EX_APPWINDOW;
  26.       end;
  27.       Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);
  28.     end;
  29.   end;
  30. end;
  31.  

1.6.0

Code: Pascal  [Select][+][-]
  1. procedure TCustomForm.CreateParams(var Params : TCreateParams);
  2. var
  3.   APopupParent: TCustomForm;
  4. begin
  5.   inherited CreateParams(Params);
  6.   with Params do
  7.   begin
  8.     if (Parent = nil) and (ParentWindow = 0) then
  9.     begin
  10.       // define Parent according to PopupMode and PopupParent
  11.       if not (csDesigning in ComponentState) then
  12.       begin
  13.         if (Application.MainForm <> Self) then
  14.         begin
  15.           APopupParent := GetRealPopupParent;
  16.           if APopupParent <> nil then
  17.             WndParent := APopupParent.Handle;
  18.         end;
  19.         if (WndParent = 0) and
  20.            (((Self = Application.MainForm) and Application.MainFormOnTaskBar) or (GetEffectiveShowInTaskBar = stAlways)) then
  21.           ExStyle := ExStyle or WS_EX_APPWINDOW;
  22.       end;
  23.       Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);
  24.     end;
  25.   end;
  26. end;
  27.  

We have this new "GetRealPopupParent"

Code: Pascal  [Select][+][-]
  1.  
  2. function TCustomForm.GetRealPopupParent: TCustomForm;
  3. begin
  4.   Result := nil;
  5.   if (fsModal in FormState) or // always set WndParent of modal windows
  6.      (PopupMode in [pmAuto, pmExplicit]) // set WndParent of non-modal windows only for pmAuto, pmExplicit
  7.   then
  8.   begin
  9.     case PopupMode of
  10.       pmAuto:
  11.       begin
  12.         Result := Screen.ActiveForm;
  13.         if (Result<>nil) and (Result.FormStyle = fsSplash) then // ignore fsSplash
  14.           Result := nil;
  15.       end;
  16.       pmExplicit: Result := PopupParent;
  17.     end;
  18.     if (Result = nil) or not Result.HandleAllocated then
  19.       Result := Application.MainForm;
  20.   end;
  21.   if (Result <> nil) and not Result.HandleAllocated then
  22.     Result := nil;
  23.   if (Result = Self) then
  24.     Result := nil;
  25. end;
  26.  

With OS X it collapses into giving the Parent as Application.MainForm when ShowModal is used.  In 1.4.4 CreateParams exited with the WndParent = 0.

I am no where near enough of an OS X low level window management expert to understand why this makes a difference but it sure seems like it does.

Jim
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 21, 2016, 06:32:39 pm
Quote
Ok found the change that broke things

Nice detective work! Swapping in CreateParams from 1.4.4 works. Any idea if that might create side effects?

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: zeljko on February 21, 2016, 06:41:40 pm
That was Ondrej's patch to fix popupparent behaviour, so pls open an issue about it. It's regression for carbon ws (and probably cocoa).
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 07:07:59 pm
I checked the window handle relationships and it seems in theory it should be the correct thing to do.  What I believe is going on is that OS X does not like a window to be created that has a WndParent assigned but it does not have the CreateParam flags set with the WS_CHILD flag. 

VTwin could you try changing

Code: Pascal  [Select][+][-]
  1. Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);


to

Code: Pascal  [Select][+][-]
  1. Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);
  2. if WndParent <> 0 then
  3.   Style := Style or WS_CHILD;
  4.  

in 1.6.0? 

I don't have access to a computer that I can recompile it today.

Jim
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 07:41:12 pm
Quote
That was Ondrej's patch to fix popupparent behaviour, so pls open an issue about it. It's regression for carbon ws (and probably cocoa).

Done.  Issue 0029694
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 21, 2016, 08:04:35 pm
Code: Pascal  [Select][+][-]
  1. Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);
  2. if WndParent <> 0 then
  3.   Style := Style or WS_CHILD;
  4.  

Curiosity got the best of me.  Downloaded the source and tried this.  Yes this fixes it as well but I can see that could be an issue because CreateParams is for all windows.  Somehow the LCL would need to know that the window is a Form and that it is going to created as a child of another Form before the Handle is created.  I can image that is not something that is easy to do.  Maybe in the ShowModal call the LCL can set the ParentHandle then recreate the Window Handle before it is shown?

I just don't know the LCL enough to understand the issues doing something like this would cause.

Jim
Title: Re: Lazarus 1.6 - Released
Post by: MSC on February 21, 2016, 08:15:50 pm
Having installed Lazarus 1.6 (running ok) and thereafter IDE anchordockingdsgn package.
After restart, IDE didn´t show the Coolbar with the Save-, Run-, etc. buttons, only component-palette,object inspector and editor were visible.
I had to enable the flag "Coolbar visible" within the IDE-settings (environment-->Coolbar visible) to make it visible.
Now anchordocking is working fine. 

I also wanted to point out another problem.
When I design a form in the IDE, it should look the same at runtime (same position, same size, etc. --> wysiwyg).
But on the last Lazarus versions, the form and also the components on it are shown approx. 30% right and 30% down its designed position and all is streched/enlarged also by approx. 30 %. Looks like all IDE-designed screen position values but not the values programmed by software have moved. This of course will destroy my form design!
I´m using a notebook with a FullHD resolution (1920x1080 pixel). On an older notebook with only HD resolution this  effect didn´t occur. I found this problem already in Lazarus 1.4.4 (couldn´t test it on older versions).
To overcome this problem, I had to enable "dpi-dependent application (for vista+)" (dpi-abhängige Anwendung (für Vista+) in german) within the project settings.

Lazarus 1.6 32bit on Intel I3-6100 with HD-graphics 520 (1920x1080 pixel) running Windows 10 Home 64 bit.
Title: Re: Lazarus 1.6 - Released
Post by: Hansvb on February 21, 2016, 09:32:13 pm
Is something changed in TSQLScript?
I installed lazarus 1.6 win32 and tried to execute a program that works wel under lazaruss 1.4.2.

It compiles good but it stops running at
Code: Pascal  [Select][+][-]
  1. SQLScript1.Execute

There is no warning, it just seems to be bussy but does northing.
Title: Re: Lazarus 1.6 - Released
Post by: Ameta on February 22, 2016, 07:29:33 am
Thank you Lazarus Team!
Title: Re: Lazarus 1.6 - Released
Post by: bytebites on February 22, 2016, 12:31:06 pm
There is access violation in Json Data viewer when search string is not found. It happens in frmmain.pp line 856 ANode is nil.
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 22, 2016, 01:58:59 pm
Code: Pascal  [Select][+][-]
  1. Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD);
  2. if WndParent <> 0 then
  3.   Style := Style or WS_CHILD;
  4.  

Curiosity got the best of me.  Downloaded the source and tried this.  Yes this fixes it as well but I can see that could be an issue because CreateParams is for all windows.  Somehow the LCL would need to know that the window is a Form and that it is going to created as a child of another Form before the Handle is created.  I can image that is not something that is easy to do.  Maybe in the ShowModal call the LCL can set the ParentHandle then recreate the Window Handle before it is shown?

I just don't know the LCL enough to understand the issues doing something like this would cause.

Jim

Thanks Jim,

Hopefully someone with LCL and Carbon expertise can shed some additional light on this. I'll use the 1.4.4 patch for now. Thanks for tracking it down.

Cheers,
VTwin 
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 22, 2016, 02:51:45 pm
I installed it this weekend at  home. An upgrade from 1.4.4 to 1.6 will fail until you manually remove the .\fpc\2.6.4 directory. And there are a few bugs in brgaled.pas, IIRC. (search for backgroung, with a g, not whole word). That, and the ParentBackground property.
Title: Re: Lazarus 1.6 - Released
Post by: ChrisF on February 22, 2016, 02:52:21 pm
Is it me or is this new version not configurated to save the project backup files in a subdirectory called "backup"  by default (i.e. with a new clean installation of the IDE) ?

Of course, it's quite possible to modify this in the IDE options, but AFAIR this was -properly- configurated by default for the former versions (with a clean installation).
Title: Re: Lazarus 1.6 - Released
Post by: howardpc on February 22, 2016, 03:00:05 pm
I've also noticed this change of default for backup directory setting (on Linux).
Title: Re: Lazarus 1.6 - Released
Post by: ChrisF on February 22, 2016, 03:32:15 pm
@howardpc:
Thanks for the confirmation. Though it's not extremely important, I'll introduce a bug issue about it.
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 22, 2016, 04:29:12 pm
I don't know if this is an install issue, but I am now getting:

Code: Pascal  [Select][+][-]
  1. Error: unit not found: StrUtils

Apparently FPC can find find it, as the code compiles, but Lazarus can not. I'm puzzled. Any suggestions would be greatly appreciated.

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: Cyrax on February 22, 2016, 05:13:48 pm
I don't know if this is an install issue, but I am now getting:

Code: Pascal  [Select][+][-]
  1. Error: unit not found: StrUtils

Apparently FPC can find find it, as the code compiles, but Lazarus can not. I'm puzzled. Any suggestions would be greatly appreciated.

Cheers,
VTwin

Check out that you have installed FPC source code and have correct directory (which points to FPC sources) in Tools->Options->Environment->Files->FPC source directory.
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 22, 2016, 07:49:01 pm
Check out that you have installed FPC source code and have correct directory (which points to FPC sources) in Tools->Options->Environment->Files->FPC source directory.

Thanks Cyrax,

Yes FPC source is installed. The path is:

Code: Pascal  [Select][+][-]
  1. /usr/local/share/fpcsrc/

I searched that directory and found:

Code: Pascal  [Select][+][-]
  1. /usr/local/share/fpcsrc/packages/rtl-objpas/src/inc/strutils.pp

contains the function I was looking for (ExtractDelimited). Still puzzled.

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 22, 2016, 07:55:32 pm
I found another odd thing on OS X. I compiled a program using the Release option, with all debug information off. It seemed unusually large, ~7.7 MB, so I ran strip on it. This got it down to ~4.6 MB.

The Windows and Linux executables were both small, so this seems to be happening only on OS X. I don't mind running strip, but this seems like a bug.

Cheers,
VTwin
Title: Re: Lazarus 1.6 - Released
Post by: marcov on February 22, 2016, 08:29:26 pm
I don't mind running strip, but this seems like a bug.

True, but it might also be Apple's linker. Some linkers don't support stripping on the cmdline, requiring manual intervention
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 23, 2016, 05:20:46 pm
@marcov

Ok, thanks. It is not a big deal, but I'll check if this also happens in 1.4.4. I was routinely running strip, so am not sure.

VTwin
Title: Re: Lazarus 1.6 - Released
Post by: JimKueneman on February 24, 2016, 02:31:03 am
Quote
Thanks Jim,

Hopefully someone with LCL and Carbon expertise can shed some additional light on this. I'll use the 1.4.4 patch for now. Thanks for tracking it down.

The official fix that seem to work.

http://bugs.freepascal.org/view.php?id=29694 (http://bugs.freepascal.org/view.php?id=29694)

Jim
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 11:39:10 am
On multiple installations (all Windows 7), opening and building existing projects tends to show "Compile package FCL 1.0.1" and then nothing. When I try to quit or cancel, it tells me that the IDE is still building, do I want to cancel that, but it is never canceled. I have to kill it with task manager.

Edit: I think it is when I only "Compile" instead of "Build".
Title: Re: Lazarus 1.6 - Released
Post by: marcov on February 24, 2016, 11:54:56 am
Did you make antivirus exceptions for the lazarus and project directories?
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 01:43:08 pm
No. Should I? I don't use Norton or such.

I just try again until it works, and then it tends to work for a while. And I do a full build after something happens.

I did rescan source code and a full clean and build after upgrading Lazarus, of course.

It is hard to pinpoint, because I don't think it is related to the code I type.
Title: Re: Lazarus 1.6 - Released
Post by: marcov on February 24, 2016, 02:10:03 pm
No. Should I? I don't use Norton or such.

No Windows Defender ?
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 02:49:10 pm
Yes, Defender + Malwarebytes Anti-Malware at home, a commercial AVG at work. But I never noticed problems with those.

Norton OTOH, is the pits: it blocks everything not on their own whitelist, it seems. Especially their SONAR is excessive. And it takes a lot of fiddling to get things allowed, if that even works.

And building in Lazarus does work, after a  few tries.

But I'll try disabling the virus scanners for a bit and see if that helps.
Title: Re: Lazarus 1.6 - Released
Post by: marcov on February 24, 2016, 02:58:53 pm
Yes, Defender + Malwarebytes Anti-Malware at home, a commercial AVG at work. But I never noticed problems with those.

Windows Defender gives problems from time to times too. Usually the linking stage, but it can be more subtle.
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 03:54:40 pm
I have disabled the virusscanner, opened a project that was still completely empty (New Application, name form, Save All), added the stuff I needed (http server and some complex classes) and hit Run:

Compile Project, OS: win64, CPU: x86_64, Target: zipcodeserver.exe

And nothing more.

Kill, restart, Build: Nope.
Kill, restart, Compile: Nope.
Kill, restart, Clean up and Build: Yes!

And Lazarus crashed twice during the above...

It's not a good upgrade, 1.2 .. 1.4.4 worked flawlessly.
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 04:19:03 pm
Now it keeps crashing all the time. I tried reinstalling and rebooting, but that didn't help.
Title: Re: Lazarus 1.6 - Released
Post by: marcov on February 24, 2016, 04:23:50 pm
It's not a good upgrade, 1.2 .. 1.4.4 worked flawlessly.

If it is only a problem for you it must be on your system somehow.
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on February 24, 2016, 04:38:23 pm
I have removed it completely, and after a fresh install it seems to work. Fingers crossed.
Title: Re: Lazarus 1.6 - Released
Post by: VTwin on February 25, 2016, 02:24:30 pm

The official fix that seem to work.

http://bugs.freepascal.org/view.php?id=29694 (http://bugs.freepascal.org/view.php?id=29694)

Jim

Excellent! Many thanks.

Just applied the patch, works great.

VTwin
Title: Re: Lazarus 1.6 - Released
Post by: rtusrghsdfhsfdhsdfhsfdhs on February 26, 2016, 10:20:01 am
Is LCL utf16 ready yet?
Title: Re: Lazarus 1.6 - Released
Post by: Giorgio Tani on February 27, 2016, 07:24:12 pm
Thank you very much for this excellent release, I installed it with no problems on Windows 32 / 64 bit, and Linux (RPM) both i386 and x86_64.
I've found new Unicode model on Windows working very well and I've re-written of consequence platform-specific PeaZip code involving handling extended characters.
Thank you for keeping providing me the ideal development tool for my now ten years old project - I started writing it with Lazarus 0.9.10 and updated to 0.9.18 by the end of 2006!
Title: Re: Lazarus 1.6 - Released
Post by: JD on February 27, 2016, 09:41:56 pm
Thank you very much for this excellent release, I installed it with no problems on Windows 32 / 64 bit, and Linux (RPM) both i386 and x86_64.
I've found new Unicode model on Windows working very well and I've re-written of consequence platform-specific PeaZip code involving handling extended characters.
Thank you for keeping providing me the ideal development tool for my now ten years old project - I started writing it with Lazarus 0.9.10 and updated to 0.9.18 by the end of 2006!

Thank you for your wonderful tool, PeaZip! It is the only compression tool I use on all my systems. No more WinRAR & 7zip for me.

JD
Title: Re: Lazarus 1.6 - Released
Post by: bangfauzan on February 28, 2016, 01:17:22 pm
Great work.....!!! thank you very much.

But... currently, I can't checkout or update using svn repository anymore.
the svn url "http://svn2.freepascal.org/svn/lazarus/branches/fixes_1_6 always fails. I got these messages :
svn: E170013: Unable to connect to a repository at URL 'http://svn2.freepascal.org/svn/lazarus/branches/fixes_1_6'
svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/svn/lazarus/branches/fixes_1_6'

Using my web browser I can open repository successfully.

Platform: ubuntu 15.10 64bit

Regards.
Title: Re: Lazarus 1.6 - Released
Post by: rtusrghsdfhsfdhsdfhsfdhs on February 28, 2016, 02:21:46 pm
Run without debugger still hasn't been implemented.  :-\
Title: Re: Lazarus 1.6 - Released
Post by: Thaddy on February 28, 2016, 02:29:18 pm
Run without debugger still hasn't been implemented.  :-\

Of course it is... Simply change compile options to release.
Title: Re: Lazarus 1.6 - Released
Post by: Ondrej Pokorny on February 28, 2016, 02:33:31 pm
Run without debugger still hasn't been implemented.  :-\

It is supported although there is no default button/action for it.
Title: Re: Lazarus 1.6 - Released
Post by: rtusrghsdfhsfdhsdfhsfdhs on February 28, 2016, 02:33:37 pm
No it hasn't. I don't see this in Lazarus. Delphi has this since version 1.
This is like essential for development.

http://www.atmel.com/webdoc/atmelstudio/images/debugmenu_StartWithoutDebugging.PNG
Title: Re: Lazarus 1.6 - Released
Post by: Thaddy on February 28, 2016, 03:03:53 pm
@Fiji:
Sigh. Oh well, here a screenshot....
Title: Re: Lazarus 1.6 - Released
Post by: rtusrghsdfhsfdhsdfhsfdhs on February 28, 2016, 03:43:38 pm
This is not the same thing.
Title: Re: Lazarus 1.6 - Released
Post by: Ondrej Pokorny on February 28, 2016, 05:40:23 pm
No it hasn't. I don't see this in Lazarus. Delphi has this since version 1.
This is like essential for development.

http://www.atmel.com/webdoc/atmelstudio/images/debugmenu_StartWithoutDebugging.PNG

I said you can create your own command. It takes about 1 minute and you can even assign whatever keyboard shortcut you want. The feature is called "External tools".
Title: Re: Lazarus 1.6 - Released
Post by: bangfauzan on February 29, 2016, 12:25:32 am
Great work.....!!! thank you very much.

But... currently, I can't checkout or update using svn repository anymore.
the svn url "http://svn2.freepascal.org/svn/lazarus/branches/fixes_1_6 always fails. I got these messages :
svn: E170013: Unable to connect to a repository at URL 'http://svn2.freepascal.org/svn/lazarus/branches/fixes_1_6'
svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/svn/lazarus/branches/fixes_1_6'

Using my web browser I can open repository successfully.

Platform: ubuntu 15.10 64bit

Regards.
Title: Re: Lazarus 1.6 - Released
Post by: SnoopyDog on March 06, 2016, 06:56:30 pm
Thank you for this release :)

Unfortunately, from now on there is a compatibility break to Delphi and the previous Lazarus / FPC version.
Classes that use overloaded array properties don't get compiled anymore. Lazarus now shows the error "Duplicate identifier.

Example which compiles in Delphi 2007 / XE5 / Lazarus 1.4 + FPC 2.6.4
Code: [Select]
type
  cTestClass = class(TPersistent)
    protected
      function getValue (Idx : Integer) : string; overload; virtual; abstract;
      function getValue (const Key : string) : string; overload; virtual; abstract;
      procedure setValue (Idx : Integer; Value : string); overload; virtual; abstract;
      procedure setValue (const Key : String; Value : string); overload; virtual; abstract;
    public
      property Value [Idx : Integer] : string read getValue write setValue; {$IFNDEF FPC } default; {$ENDIF }
      property Value [const Key : string] : string read getValue write setValue; default;
  end;
You can access the properties like:
Code: [Select]
var testClass : cTestClass;

testClass.Value['Hello'] := 'World';
testClass.Value[1] := 'Another value';
Title: Re: Lazarus 1.6 - Released
Post by: howardpc on March 06, 2016, 09:10:38 pm
Classes that use overloaded array properties don't get compiled anymore. Lazarus now shows the error "Duplicate identifier.

Has this been reported as a bug (at least in delphi mode, if not in objfpc mode)?
As a workaround you can of course comment out the least used overloaded property and just use the overloaded setter and getter methods as appropriate rather than the missing property.
Title: Re: Lazarus 1.6 - Released
Post by: AEslabon4 on March 08, 2016, 07:22:49 pm
Congrats to all the Lazarus Team!!  ;D

I installed and works real fine. Except I have problems with the FormatCurr Function.  %)

In the attachment there's a little program I wrote to example this:

Put a number in the Edit component and the Label must return the result in the format: '$###,###,##0.00'. If I run the program in the older version 1.2.4 works fine but in version 1.6 returns the value wrong!!  :o

Please tell me if I did something wrong or is this is a bug.  :-\

Thanks for all the help!! Keep going with Lazarus!!  :D
Title: Re: Lazarus 1.6 - Released
Post by: wp on March 08, 2016, 07:29:26 pm
I don't know why this was changed (in fact, there's also a bug report on this one), but fps wants a shorter format string now:
Code: Text  [Select][+][-]
  1. Label2.Caption := FormatCurr('$#,##0.00', StrToFloat(Edit1.Text))  
Title: Re: Lazarus 1.6 - Released
Post by: AEslabon4 on March 09, 2016, 02:03:14 am
Thanks a lot WP!!  ;D

I prove your format and its working right!  :D

Now to change all the programs like this.  :P
Title: Re: Lazarus 1.6 - Released
Post by: uzoamaka on March 09, 2016, 05:21:44 pm
Thanks Lazarus Team. God bless for this release.

Still feeding my head on this Language
Title: Re: Lazarus 1.6 - Released
Post by: antispam88 on March 13, 2016, 02:11:44 pm
Hi,
I'm used to one window IDEs like Visual Studio and Eclipse.
Therefore I have activated the package "AnchorDockingDsgn 0.5" because I used AnchorDocking already with 1.4.4.

The idea creating different desktops for standard and debugging is nice.
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.

I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.

Can someone confirm my error?
Is there something I can do to avoid this?

Best regards,
antispam88

My system:
Win 10 prof. 64
Lazararus 1.6
FPC 3.0
SVN-Revision: 51630
i386-win32-win32/win64
Title: Re: Lazarus 1.6 - Released
Post by: jc99 on March 13, 2016, 05:24:20 pm
...
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.

I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.

Can someone confirm my error?
I can confirm this.
Changing between debug- and standard result in a broken desktop.
Restarting the IDE was the only thing what helped me too.
My solution: Don't use the debug-desktop ...
My conclution: AnchorDockingDsgn 0.5 still needs a LOT of work before getting a 1 before the point.
Title: Re: Lazarus 1.6 - Released
Post by: Ondrej Pokorny on March 13, 2016, 06:38:24 pm
...
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.

I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.

Can someone confirm my error?
I can confirm this.
Changing between debug- and standard result in a broken desktop.
Restarting the IDE was the only thing what helped me too.
My solution: Don't use the debug-desktop ...
My conclution: AnchorDockingDsgn 0.5 still needs a LOT of work before getting a 1 before the point.

I don't share your conclusion. It is the only bug left in AnchorDocking that I am aware about: http://mantis.freepascal.org/view.php?id=29200

Don't dock to tabs and you are good to go.
Title: Re: Lazarus 1.6 - Released
Post by: Leledumbo on March 13, 2016, 08:31:30 pm
I don't share your conclusion. It is the only bug left in AnchorDocking that I am aware about: http://mantis.freepascal.org/view.php?id=29200

Don't dock to tabs and you are good to go.
Agreed. Without tabbed docking everything works as expected. Attached is my config if any of you wants to test.
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on March 13, 2016, 08:33:40 pm
...
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.

I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.

Can someone confirm my error?
I can confirm this.
Changing between debug- and standard result in a broken desktop.
Restarting the IDE was the only thing what helped me too.
My solution: Don't use the debug-desktop ...
My conclution: AnchorDockingDsgn 0.5 still needs a LOT of work before getting a 1 before the point.

I don't share your conclusion. It is the only bug left in AnchorDocking that I am aware about: http://mantis.freepascal.org/view.php?id=29200

Don't dock to tabs and you are good to go.

I think I've encountered it a few monthes ago. I've managed to find a workaround (still used), see http://mantis.freepascal.org/view.php?id=28325#c84625

when I do
Code: Pascal  [Select][+][-]
  1. DockMaster.RestoreLayouts.Clear;
before restoring the problem is solved. There is a well detailed procedure to reproduce it and you'll be easily able to see if it's the same bug, what I believe.
Title: Re: Lazarus 1.6 - Released
Post by: Ondrej Pokorny on March 14, 2016, 06:47:36 pm
when I do
Code: Pascal  [Select][+][-]
  1. DockMaster.RestoreLayouts.Clear;
before restoring the problem is solved. There is a well detailed procedure to reproduce it and you'll be easily able to see if it's the same bug, what I believe.
[/quote]

Could you please post a full patch to http://mantis.freepascal.org/view.php?id=29200 or http://mantis.freepascal.org/view.php?id=28325 ? Thanks!
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on March 14, 2016, 07:19:43 pm
There's a misunderstanding here. The workaround I use is not applied in Lazarus but in another software that uses AnchorDocking.
Title: Re: Lazarus 1.6 - Released
Post by: jc99 on March 15, 2016, 08:59:41 am
Agreed. Without tabbed docking everything works as expected. Attached is my config if any of you wants to test.
Wow, without tabs it's much better, but it's a pain to arrange everything ...
But still there are some issues, e.G: if you resize the desktop, the wrong sub-window get's resized ... (there should be a way to tell what is the important (center) window)
The next thing, (I have not tried some time) if you close Laz with a window docked, that is not available on restart (Package-Option-Dialog e.G:) you (I got) get a bug-loop.
resulting to manual delete the config-file to get Laz started again.
(... and these are only the things i can remember at the moment ...)
That's why i came to that conclusion.
Don't get me wrong, I have learned to live with the issues, and i like AnchorDocking very much, otherwise i wouldn't use it.
Title: Re: Lazarus 1.6 - Released
Post by: luca on March 15, 2016, 09:20:46 am
I found this strange error:
- Project with two forms
- Form1 just with a Button
- Form2 with a TRadiogroup.

This is the code to initialize radiogroup and to open form2
Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3.  form2.RadioGroup1.Items.Clear;
  4.  form2.RadioGroup1.Items.Add('1');
  5.  form2.RadioGroup1.ItemIndex:=-1;
  6.  form2.showmodal;
  7. end;  
  8.  

This is the code linked to onclick event of radiogroup:
Code: Pascal  [Select][+][-]
  1. procedure TForm2.RadioGroup1Click(Sender: TObject);
  2. begin
  3.   showmessage(inttostr(RadioGroup1.ItemIndex))
  4. end;

First time I open form2 and click on Radiobutton event is fired
Second time no event is fired (Note: I create the Items every time)

If I add 2 items the event is fired only if I click on the second Item before.

Regards
Luca

I'm testing Lazarus 1.6 32 bits on Windows 7
Title: Re: Lazarus 1.6 - Released
Post by: luca on March 15, 2016, 09:28:10 am
Ok.
If I debug I found that FLastClickedItemIndex remain 0 second time even if I cleared all the items.
I think that Items.clear should reset to -1 FLastClickedItemIndex.


Code: Pascal  [Select][+][-]
  1. procedure TCustomRadioGroup.CheckItemIndexChanged;
  2. begin
  3.   if FCreatingWnd or FUpdatingItems then
  4.     exit;
  5.   if [csLoading,csDestroying]*ComponentState<>[] then exit;
  6.   UpdateRadioButtonStates;
  7.   if [csDesigning]*ComponentState<>[] then exit;
  8.   if FLastClickedItemIndex=FItemIndex then exit;
  9.   FLastClickedItemIndex:=FItemIndex;
  10.   EditingDone;
  11.   // for Delphi compatibility: OnClick should be invoked, whenever ItemIndex
  12.   // has changed
  13.   if Assigned (FOnClick) then FOnClick(Self);
  14.   // And a better named LCL equivalent
  15.   if Assigned (FOnSelectionChanged) then FOnSelectionChanged(Self);
  16. end;            

Regards
Luca
Title: Re: Lazarus 1.6 - Released
Post by: Cyrax on March 15, 2016, 09:54:51 am
luca, please report it to the bugtracer.
Title: Re: Lazarus 1.6 - Released
Post by: FTurtle on March 15, 2016, 09:57:00 am
luca, please report it to the bugtracer.

First better to forum in separate thread.
Title: Re: Lazarus 1.6 - Released
Post by: luca on March 15, 2016, 10:08:09 am
Ok
Regards
Luca
Title: Re: Lazarus 1.6 - Released
Post by: antispam88 on March 15, 2016, 05:53:19 pm
Hi,

I have found another strange thing using function CopyDirTree in fileutil.
Because jenkins reported an error I wanted to debug it on my machine with 1.6.

But in CopyDirTree the function returned always in line 715
Code: Pascal  [Select][+][-]
  1. if B and ((Copy(RelPath,1,2) = '..') or (RelPath = '')) then Exit;
.

Both paths are relative once, but also tried it with absolute paths:
sourcedir: C:\project\test\test1
targetdir: C:\project\bin\test1

Can someone help me?

Best regards,
antispam88


My system:
Win 10 prof. 64
Lazararus 1.6
FPC 3.0
SVN-Revision: 51630
i386-win32-win32/win64
Title: Re: Lazarus 1.6 - Released
Post by: Bart on March 15, 2016, 06:27:40 pm
I have found another strange thing using function CopyDirTree in fileutil.

Already fixed in trunk and merged (or requested for merging) to fixes branch (r51675 and r51692).

Bart
Title: Re: Lazarus 1.6 - Released
Post by: FTurtle on March 15, 2016, 07:21:43 pm
I think that Items.clear should reset to -1 FLastClickedItemIndex.

I tested it with trunk.
Yes, you are right.
When you will write report, you can attach my patch.
Title: Re: Lazarus 1.6 - Released
Post by: luca on March 15, 2016, 08:58:42 pm
Done
Thanks
Title: Re: Lazarus 1.6 - Released
Post by: Anton Shevtsov on March 18, 2016, 12:24:46 pm
I build Lazarus 1.6 with fpc 2.6.4 (linux)

it's wrong way?
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on March 18, 2016, 01:22:37 pm
I build Lazarus 1.6 with fpc 2.6.4 (linux)
it's wrong way?

FPC 2.6.4 is still supported, no problem.
You just don't get the new dynamic string encoding + improved UTF-8 support nor other new compiler features.
Title: Re: Lazarus 1.6 - Released
Post by: marcov on March 18, 2016, 02:03:44 pm
Note that FPC 2.6.4 is out of support on the FPC side.

So if you really need it, it is no problem, but if the only reason is that it happened to be in the distribution repositories, better check if you can update (e.g. by adding some other repository)
Title: Re: Lazarus 1.6 - Released
Post by: garlar27 on March 18, 2016, 04:56:47 pm
I have a problem configuring "Code Templates" and wanted to know if someone allready had reported it.

When you press "Rename" button and then press the "Change" button the code template content is erased.
For instance: if you select the template "cases" and then press the "Rename" buttton; when the dialog "Edit code template" shows up, press the "Change" button and the template will show in the "templates" list but it's code will disapear.

I'm using Lazarus 1.6 FPC 3.0.0 (32bits) on a Windows 8.1 (64bits).-
Title: Re: Lazarus 1.6 - Released
Post by: howardpc on March 18, 2016, 05:51:40 pm
@garlar27

Using Lazarus trunk (Linux 64-bit) the Code Templates rename functionality works well. You could try a Windows trunk version to see if that has sorted the problem.
Title: Re: Lazarus 1.6 - Released
Post by: garlar27 on March 18, 2016, 09:42:11 pm
Thankyou, I will try it later. But I think it should be OK for windows too.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 12:54:30 am
Hm, UTF8toSys() does not supply a valid "Sys" string anymore :


Code: [Select]
var
  hFindFile    : THandle;
  SearchRec    : TSearchRec;
..
hFindFile := FindFirstUTF8( PathUTF8 + '*.*', faAnyFile, SearchRec);
 
.. still works fine.

But
Code: [Select]
        ShowMessage( SearchRec.Name +#13
                     +UTF8ToSys( SearchRec.Name)+#13
                     +UTF8ToConsole( SearchRec.Name));
do ALL deliver UTF8 strings (shown as valid UTF8 strings in this MessageBox)


So now every path with "Ä Ö Ü ä ö ü"  chars is no more converted with UTF8toSys()
and my code says "File not found"  :-(
Title: Re: Lazarus 1.6 - Released
Post by: Bart on March 20, 2016, 01:28:08 am
What code do you use to open the file?

Bart
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 12:07:12 pm
Hi Bart,

I do not open the file(s).


I search for the file names in a folder by using
Code: Pascal  [Select][+][-]
  1. var
  2.   hFindFile    : THandle;
  3.   SearchRec    : TSearchRec;
  4. ..
  5. hFindFile := FindFirstUTF8( PathUTF8 + '*.*', faAnyFile, SearchRec);
  6. if hFindFile <> INVALID_HANDLE_VALUE then
  7.   repeat
  8.   ...
  9.   until FindNextUTF8( SearchRec) <> 0;
  10.  

where the result of the search, SearchRec.Name,
is said to be a  RawByteString  (= type AnsiString(CP_NONE); )


I then fail on converting this string to a SYS string as requested by the next steps
UTF8ToSys()  does not give back a valid Windows Sys string
in case I have (for example) one of the letters  Ä Ö Ü ä ö ü ß  in the folder name.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 12:10:32 pm
UTF8_RTL is defined so  UTF8ToSys()  in unit LazUTF8.pas does simply    Result:=s;   :-(

Code: Pascal  [Select][+][-]
  1. function UTF8ToSys(const s: string): string;
  2. begin
  3.   {$IFDEF UTF8_RTL}
  4.   Result:=s;
  5.   {$ELSE}
  6.   if NeedRTLAnsi and (not IsASCII(s)) then
  7.     Result:=UTF8ToAnsi(s)
  8.   else
  9.     Result:=s;
  10.   {$ENDIF}
  11. end;
  12.  

Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on March 20, 2016, 12:21:14 pm
I then fail on converting this string to a SYS string as requested by the next steps
UTF8ToSys()  does not give back a valid Windows Sys string
in case I have (for example) one of the letters  Ä Ö Ü ä ö ü ß  in the folder name.

What is the problem? The string encoding is UTF-8 just like it should be.

If you can provide an example that demonstrate a real problem, then please open a new forum thread for it. This Lazarus 1.6 Release thread is long and contains many diverse issues already.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 02:31:37 pm
What is the problem? The string encoding is UTF-8 just like it should be.

Must be my fault anyhow ..

In ListView the Icon is found.
In TreeView not .. :-(
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on March 20, 2016, 02:45:26 pm
In ListView the Icon is found.
In TreeView not .. :-(

Icon? I thought the problem was with filenames.
Please start a new forum thread and attach a small zipped application demonstrating the problem.
Let's keep this Lazarus 1.6 release thread for posts related to Lazarus 1.6 release.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 02:56:40 pm
Icon? I thought the problem was with filenames.

No valid SYS (not UTF8) filename for SHGetFileInfo()   =>  no Icon
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on March 20, 2016, 03:50:32 pm
The problem is SHGetFileInfo()? I don't know why you give only small drops of information each time. Maybe it feels funny for you.
Anyway, start a new thread with a proper example as I asked already twice. Let's not continue this in 1.6 release thread.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 05:58:42 pm
The problem is SHGetFileInfo()? I don't know why you give only small drops of information each time. Maybe it feels funny for you.
I don't want to upset anybody. Not You, not anybody else.

I just don't get no Windows compatible sys strings with UTF8ToSys().

SHGetFileInfo() works fine - until You give it a File or Directory string that contains for example "Ä Ö Ü ..."

I'll try to set up an easy example project. And open a new thread for it. Thanks.
Title: Re: Lazarus 1.6 - Released
Post by: PeterX on March 20, 2016, 08:55:03 pm
http://forum.lazarus.freepascal.org/index.php/topic,32014.0.html
Title: Re: Lazarus 1.6 - Released
Post by: Wodzu on March 21, 2016, 09:36:46 am
Quality release! Why would anyone spend a ludicrous $5000+ dollars on Delphi in a world where Lazarus exists? For a bunch of mediocre database backends that no one uses? I mean, come on, FireDAC? In 2016? Give me a break! Keep up the good work and you might just put Embarcadero out of business. ;)

I can name a few valid reasons. Like way way way...way... better debugger for example. And I don't know how did you come up with this price, I've paid around 1000$ for my copy of Delphi. It is great that Lazarus is devoloping as well as FPC but that does not mean Delphi is not an alternative. Also I dont understand your argument about FireDAC in 2016? Those are excellent components, but I do not like their forcing policy to pay for an upgrade when you pay for a new Delphi version.

BTW: Sorry for the offtopic ;)
Title: Re: Lazarus 1.6 - Released
Post by: Dibo on March 22, 2016, 06:14:30 pm
Is it possible to still use Lazarus 1.6 with FPC 2.6.4 (ubuntu 14.04 64bit). Can I just download Lazarus 1.6 deb without FPC 3.0 deb and install it?
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on March 22, 2016, 08:15:59 pm
If you want to add packages, you'll need to recompile Laz and this needs FPC 3.
Title: Re: Lazarus 1.6 - Released
Post by: Bart on March 22, 2016, 08:45:51 pm
Lazarus 1.6 can still be built with fpc 2.6.4.

Bart
Title: Re: Lazarus 1.6 - Released
Post by: Dibo on March 22, 2016, 09:06:55 pm
If you want to add packages, you'll need to recompile Laz and this needs FPC 3.
Lazarus 1.6 can still be built with fpc 2.6.4.

Bart
So what is a correct answer? :) . If I install 1.6 and go to Tools -> Build Lazarus then it will be rebuild with my FPC 2.6.4?
Title: Re: Lazarus 1.6 - Released
Post by: Bart on March 22, 2016, 10:10:43 pm
Yes this should work (make sure you do not have any remnants of older fpc's somewhere, or you will get the infamous "unit xyz not found" error message.

If 1.6 cannot be built with fpc 2.6.4 the this is a bug and it should be fixed.

Bart
Title: Win64 or Win32
Post by: PeterX on March 23, 2016, 04:03:49 pm
lazarus-1.6.0-fpc-3.0.0-win64.exe
lazarus-1.6.0-fpc-3.0.0-win32.exe

Hm. In earlier days the Win32 version was the default one. (Was it ?)

On a 64-Bit-Windows, shall I use the win64 version now ?
And it still builds 32-bit-exe-files per default ?
Title: Re: Win64 or Win32
Post by: Bart on March 23, 2016, 04:33:41 pm
On a 64-Bit-Windows, shall I use the win64 version now ?

You can, you must not.
I use 32-bit Lazarus on Win7-64.
Whenever I need to test something 64-bit I just cross-compile to 64-bit.

And it still builds 32-bit-exe-files per default ?

I would expect not, but don't take my word for it.

Bart
Title: Re: Win64 or Win32
Post by: JuhaManninen on March 23, 2016, 05:12:24 pm
And it still builds 32-bit-exe-files per default ?

No, a compiler builds for its native target by default.
Title: Re: Lazarus 1.6 - Released
Post by: Dibo on March 26, 2016, 06:52:47 pm
If 1.6 cannot be built with fpc 2.6.4 the this is a bug and it should be fixed.
Bart
Tried install Lazarus 1.6 DEB package but dependency is FPC >=3.0.0 and can't install it by ubuntu package manager
Title: Re: Lazarus 1.6 - Released
Post by: Bart on March 26, 2016, 07:00:20 pm
Tried install Lazarus 1.6 DEB package but dependency is FPC >=3.0.0 and can't install it by ubuntu package manager

That does not mean it cannot be built with 2.64.
Better ask on mailing list wether this (require fpc >= 3.0.0) is indeed a bug.
(You have a better change that some devel who actually knows read the ML than here on the forum)

If you cannot get access to mailinglist PM me, I'll ask for you.

Bart
Title: Re: Lazarus 1.6 - Released
Post by: Dibo on March 26, 2016, 07:17:21 pm
Thanks Bart. I'm subscriber on that list so I'll ask there. Thanks again
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on March 26, 2016, 08:07:16 pm
That does not mean it cannot be built with 2.64.
Better ask on mailing list wether this (require fpc >= 3.0.0) is indeed a bug.

No, it is not a bug. Lazarus 1.6 is released with FPC 3.0 and the dependency in the Debian package is correct.
I recommend installing FPC 2.6.4 from your distro's repo or elsewhere, then loading Lazarus sources from fixes_1_6 SVN branch and building with "make".
Title: Re: Lazarus 1.6 - Released
Post by: Alguien on April 02, 2016, 05:08:59 am
Hi!

I've noticed that "refactoring -> unused units" does not work properly when there are things (attributes, record fields) with the same name as the imported unit.
It is an easy to avoid thing, but sometimes a property with the same name as the imported unit might come handy ("md5" for instance)

Just try to use the "unused units" tool with the following code. "BlowFish" and "md5" should appear in the dialog but they don't.
The comments are describing the points of failure I could detect for the tool.

Code: Pascal  [Select][+][-]
  1. program UnusedUnits;
  2.  
  3. uses
  4.   BlowFish,
  5.   md5; // Import any unit, no matter which
  6.  
  7. type
  8.  
  9.   { TMyClass }
  10.  
  11.   TMyClass = class
  12.   private
  13.     Fmd5: integer;
  14.   public
  15.     // Using the name of the unit in classes causes trouble
  16.     property md5: integer read Fmd5 write Fmd5;
  17.   end;
  18.  
  19.   { TMyRecord }
  20.  
  21.   TMyRecord = record
  22.     // Just using the name of the unit here does not cause any trouble
  23.     BlowFish: integer;
  24.   end;
  25.  
  26. var
  27.   c: TMyClass;
  28.   r: TMyRecord;
  29.  
  30. begin
  31.   r.BlowFish := 0;    // This line causes the refactoring tool to fail...
  32.   { r.BlowFish := 0;} // but this other one not, as it is a comment
  33.  
  34.   // Same goes if you put something similar inside a procedure
  35. end.

Tested with Lazarus 1.6 and the latest trunk version right now.
Title: Re: Lazarus 1.6 - Released
Post by: RusDeveloper on April 04, 2016, 11:17:07 am
Where I can download last version of sources of Lazarus? I found link https://sourceforge.net/p/lazarus/code/HEAD/tree/, but recent changes have been made 2013-05-29...
Title: Re: Lazarus 1.6 - Released
Post by: molly on April 04, 2016, 11:23:45 am
Where I can download last version of sources of Lazarus? I found link https://sourceforge.net/p/lazarus/code/HEAD/tree/, but recent changes have been made 2013-05-29...
From the svn server (http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=lazarus), or in case that doesn't ring a bell, from the ftp site (http://ftp://ftp.freepascal.org/pub/lazarus/snapshots/).

^^ i am not going to fight this stupidity forum software anymore. figure out the correct ftp link yourself please.
Title: Re: Lazarus 1.6 - Released
Post by: RusDeveloper on April 04, 2016, 01:17:59 pm
From the svn server (http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=lazarus), or in case that doesn't ring a bell, from the ftp site (http://ftp://ftp.freepascal.org/pub/lazarus/snapshots/).

^^ i am not going to fight this stupidity forum software anymore. figure out the correct ftp link yourself please.
thanks :)
Title: Re: Lazarus 1.6 - Released
Post by: SymbolicFrank on April 06, 2016, 12:17:00 pm
I am unable to create a win32 executable with Lazarus 1.6.

I installed and re-installed the official Windows32/64 download multiple times, on a Windows 7 64-bit laptop, but when selecting WIn32 as target, I get the error message:

Error: Illegal parameter: -Twin32

I have also tried installing FPC32 and the cross-compiler, but to no avail.
Title: Re: Lazarus 1.6 - Released
Post by: Bart on April 06, 2016, 07:31:20 pm
If your default setup of Lazarus/Fpc is Win64, then when you want a Win32 app, you must set both TargetOS and TargetCPU.

(Same goes if you cross compile from win32 -> win64).

Bart
Title: Re: Lazarus 1.6 - Released
Post by: uzoamaka on April 07, 2016, 03:28:23 pm
Please Friends, I have uninstalled the old Lazarus IDE - 1.4.2 and  downloaded the latest IDE, also have installed it. As a newbie and still learning the language by using the IDE; on the old one - Lazarus IDE 1.4.2, I have some tutorial questions or DIY assignment program from a book am learning from as the book do give some questions at the end of every chapter. After I have installed the new version 1.6.0, I tried to continue with the tutorial but I realized that compiling and running a program from the 1.6.0 version fails, went back to the old programs I have written before and tried to open anyone of them, none could compile and run, the "begin.... end." statement is what is highlighted as the error and I don't know why. If you guys don't mind me posting a simple DIY program done by me:

Code: [Select]
program ArithmeticFunction;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { Arithmetic Standard Functions};
CONST
  Pi = 3.14159;
begin
  Writeln('SQR(3) : ', SQR(3));     {Power of 2}
  Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
  Writeln('SQR(SQR(3)) : ', SQR(SQR(3)));     {Power of 4}
  Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
  Writeln('SQRT(16) : ', SQRT(16) :0:2);
  Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
  Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
  Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
  Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
  Writeln('INT(8.22) : ', INT(8.22):2:2);   {Fractional function}
  Writeln(RANDOM:2:2);
  Writeln(RANDOM(5));
  Readln;
end.

THE ERROR MESSAGE BELOW:
Compile Project, Target: ArithmeticFunction.exe: Exit code 1, Errors: 13
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol PASCALMAIN
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol main
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol INITFINAL
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_THREADVARTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESSTRINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __heapsize
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __fpc_valgrind
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol $unwind$main
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IID_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IIDSTR_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: RTTI_$TYPES_$$_ISTREAM


Please, I need someone, anyone to help me rectify this bug. Thanks and God bless
Title: Re: Lazarus 1.6 - Released
Post by: uzoamaka on April 07, 2016, 03:38:55 pm
Please Friends, I have uninstalled the old Lazarus IDE - 1.4.2 and  downloaded the latest IDE, also have installed it. As a newbie and still learning the language by using the IDE; on the old one - Lazarus IDE 1.4.2, I have some tutorial questions or DIY assignment program from a book am learning from as the book do give some questions at the end of every chapter. After I have installed the new version 1.6.0, I tried to continue with the tutorial but I realized that compiling and running a program from the 1.6.0 version fails, went back to the old programs I have written before and tried to open anyone of them, none could compile and run, the "begin.... end." statement is what is highlighted as the error and I don't know why. If you guys don't mind me posting a simple DIY program done by me:

Code: [Select]
program ArithmeticFunction;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { Arithmetic Standard Functions};
CONST
  Pi = 3.14159;
begin
  Writeln('SQR(3) : ', SQR(3));     {Power of 2}
  Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
  Writeln('SQR(SQR(3)) : ', SQR(SQR(3)));     {Power of 4}
  Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
  Writeln('SQRT(16) : ', SQRT(16) :0:2);
  Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
  Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
  Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
  Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
  Writeln('INT(8.22) : ', INT(8.22):2:2);   {Fractional function}
  Writeln(RANDOM:2:2);
  Writeln(RANDOM(5));
  Readln;
end.

THE ERROR MESSAGE BELOW:
Compile Project, Target: ArithmeticFunction.exe: Exit code 1, Errors: 13
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol PASCALMAIN
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol main
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol INITFINAL
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_THREADVARTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESSTRINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __heapsize
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __fpc_valgrind
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol $unwind$main
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IID_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IIDSTR_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: RTTI_$TYPES_$$_ISTREAM


Please, I need someone, anyone to help me rectify this bug. Thanks and God bless

I would have loved to remove to this post but had a second thought that someone else, a newbie like me might have the same issue. Somehow, I got the idea to do or use the "Clean up and Build..." function on the IDE and everything is okay now.

Thanks Everyone!
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 08, 2016, 06:13:56 pm
Hi
just installed Lazarus 1.6 and the startup dialog has OK on all tabs.
Clicked Start IDE
Now I gets the dialog in the attachments.

How do I fix this?

I do have Lazarus 1.2.6 installed in a different folder just for I are in a project and do not need to stop codeing for now.
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on April 08, 2016, 07:02:25 pm
Did you install as "secondary installation"?
What did you set the the config path to?

You can check, do you have: c:\mitt\lazarus16\lazarus.cfg
And what does it contain?
(Assuming you installed to c:\mitt\lazarus16\ )

If you choose c:\mitt\lazarus16\ as config path (and that is the install path too), that may be an issue (not sure, but avoid it).

You can create the folder c:\mitt\lazarus16\config\ for your conf.
Just edit the lazarus.cfg to point there, and try again.
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 08, 2016, 10:11:33 pm
> Did you install as "secondary installation"?
Yes

> What did you set the the config path to?
Same as install path.

>You can check, do you have: c:\mitt\lazarus16\lazarus.cfg
>And what does it contain?
Code: Pascal  [Select][+][-]
  1. --primary-config-path=C:\Mitt\lazarus16

> (Assuming you installed to c:\mitt\lazarus16\ )
Yes I did.

> You can create the folder c:\mitt\lazarus16\config\ for your conf.
> Just edit the lazarus.cfg to point there, and try again.
Sorry as user I dont can do that. Not alow as a user.
______________________________

This is in a Windows7 install and I have 2 user accounts in the system:
Administrator
User

I can logon as administrator and make \config\

As it is now I can run Lazarus from user account but, I need to run it as administrator.
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on April 08, 2016, 10:29:37 pm
Code: [Select]
primary-config-path=is where your config is stored.

So it must point to a user writeable directory.
It can be outside the install dir. e.g. C:\Users\USERNAME\AppData\Local\laz2


Note that (for 2ndary installations) all logins (windows user accounts) will use the same path for config.

The primary installation, uses a path inside the current users home dir.
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 08, 2016, 10:35:08 pm
Uninstalled Lazarus 1.6 and tryed to install from my user/programmer account and it do not have rights to run the installer, so the installer most run from administrator account.

Hmmm, tested to make a new folder in C:\Mitt and windows want admin... password, so I will try to changes the rights on that folder (C:\mitt).
Title: Re: Lazarus 1.6 - Released
Post by: Martin_fr on April 08, 2016, 10:51:19 pm
make a folder in your user account.

then either:
- during install (as admin) enter that as the location for config.
- (or) edit the lazarus.cfg file (as admin).

I have not tested on windows, but afaik it works so long as the config folder is writeable. (it does on other os)

If you rebuild the IDE (install packages, you need to use startlazarus.exe, as the new lazarus.exe should be in your conf folder (since/if the install folder is not writeable)
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 08, 2016, 10:57:13 pm
By Switch user and fix the rights for the folder and logout as administrator, run the installer for Lazarus from user/programmers account and now do it all work just fine.
Now is the path like this:
Install: C:\Mitt\lazarus1.6
Config: C:\Mitt\lazarus1.6\Config
 :-[


Thanks for you poke me at right way.
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 08, 2016, 11:00:32 pm
How do I config Lazarus 1.6 so this dialog (see attachments) will be back?
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on April 08, 2016, 11:47:03 pm
How do I config Lazarus 1.6 so this dialog (see attachments) will be back?

You cannot get it back. It was replaced by a threaded build system. All information is in the messages window.
The dialog could be brought back to life if somebody worked for it but nobody felt it important enough.
Title: Re: Lazarus 1.6 - Released
Post by: lgrfbs on April 09, 2016, 12:00:12 am
Ok, thanks
Title: Const becoming var via Result
Post by: matthius on April 23, 2016, 02:28:34 pm
Just duplicate Result.
Title: Re: Lazarus 1.6 - Released
Post by: neutronix on May 04, 2016, 10:21:58 pm
Hi!
Sorry, but my english is not well, is weak.
My problem is maube simple for other, but for me is ... I write simple client in Lazarus on Raspberry Pi. I powered package Synapse. Need simple system two Raspberries: one client (GUI sender "intelli" home) and one server for perform end commands i.e. IR commands, light switch, RS232 commands etc. my client Raspberry (GUI sender) work perfectly: buttons generated TCP connected commands. I write tested server on normally PC with Delphi 6 and this server work perfectly - received commands from Raspberry client and performs it. But Raspberry, which is to be the server "receive" commands without the initiation of the application itself Synapse server!!! short - already charging system on the server Raspberry, Raspberry client connects to the server Raspberry !!! and that on any port !!! it looks as if the system rasbian was a "viral" server that supports the entire pot ports !! Of course when I turn off the server Raspberry client is not connected and it shows. to be honest I ran out of ideas.
can someone with this meeting, I will be grateful for any suggestion. Sorry for my english...
Title: Re: Lazarus 1.6 - Released
Post by: FASTConsulting on May 16, 2016, 03:49:52 pm
The Lazarus team is glad to announce the release of Lazarus 1.6.

This release was built with FPC 3.0.0.
The previous release Lazarus 1.4.4 was built with FPC 2.6.4.

Congratulations and sincere thanks!
Title: Re: Lazarus 1.6 - Released
Post by: ozoltan on June 13, 2016, 02:02:16 pm
Can U tell me a hopefully date when version 1.7 would be released ?
I am waiting that very much :)

Thx!
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on June 13, 2016, 02:22:18 pm
Can U tell me a hopefully date when version 1.7 would be released ?
I am waiting that very much :)

It is the development version and you can get it any time.
  http://wiki.freepascal.org/Getting_Lazarus#Getting_Lazarus_SVN_development_version
Lucky for you. :)

Lazarus 1.6.2 will be released soon after FPC 3.0.2 (I believe). You can use it already from its SVN branch:
  http://svn.freepascal.org/svn/lazarus/branches/fixes_1_6/
Title: Re: Lazarus 1.6 - Released
Post by: tom.chris on August 11, 2016, 12:19:35 pm
glyph property doesn't published yet in 1.6 :(

2nd Use Github or bitbucket not souceforge.net

Please Provide me Good Docs for json and XPATH :)
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on August 11, 2016, 01:45:06 pm
You can use one of the Git mirrors, for example:
 https://github.com/graemeg/lazarus
 https://github.com/alrieckert/lazarus
See:
 http://wiki.freepascal.org/git_mirrors

json and XPATH do not belong to Lazarus project. Ask about them in a proper forum category or mailing list.
The same applies for a specific property question.
Title: Re: Lazarus 1.6 - Released
Post by: tom.chris on August 11, 2016, 05:01:24 pm
okay. Sorry for posting in wrong forum.
Title: Re: Lazarus 1.6 - Released
Post by: snorkel on September 20, 2016, 03:39:14 pm
Has there been a slow down in production releases?   It's been almost 8 months.
Just curios.  I saw in a previous post about releasing after the next update to FPC 3.x?
Historically at least from my observations FPC releases are a pretty long time coming.

Not complaining, just wondering.

Thanks
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on September 20, 2016, 04:45:11 pm
Historically at least from my observations FPC releases are a pretty long time coming.
Now FPC 3.0.2 is taking exceptionally long. Last time I asked in April or early May they were just about to release but it still has not happened at late September.
I believe they have their reasons. Many things had been merged etc.
It will be a good release once it comes out.
Title: Re: Lazarus 1.6 - Released
Post by: Thaddy on September 20, 2016, 05:01:34 pm
It's not October or November yet. It is still well in line with at least my expectations.
I am sure we will see a release this year. :D
Title: Re: Lazarus 1.6 - Released
Post by: marcov on September 20, 2016, 08:02:46 pm
Now FPC 3.0.2 is taking exceptionally long. Last time I asked in April or early May they were just about to release but it still has not happened at late September.
I believe they have their reasons. Many things had been merged etc.
It will be a good release once it comes out.

The rc1 sources were uploaded july 23th. But there were problems with the documentation tool that needed to be expanded for more generics related code in the RTL (probably there's more because it is easier now that the 2.6.x bootstrapping requirement is gone).

Michael reported last week that he is making good progress with this, so I have some hopes that the 3.0.2 schedule will soon progress again.
Title: Re: Lazarus 1.6 - Released
Post by: Michaela Joy on September 20, 2016, 10:33:31 pm
I'm looking to the next release of FPC / Lazarus. With each release, it just keeps getting better and better. :)

Thank you for your wonderful contribution to the world.

Best Wishes,
:MJ
Title: Re: Lazarus 1.6 - Released
Post by: ssliackus on October 29, 2016, 12:46:43 pm
Hi,
When the next release may be expected?
Title: Re: Lazarus 1.6 - Released
Post by: snorkel on November 08, 2016, 05:16:36 pm
I was wondering about the next release as well, has there been a decision to only release on FPC compiler releases?
Is there some feature that's needed in the next FPC that the IDE needs?

Not complaining just wondering.

Thanks

Title: Re: Lazarus 1.6 - Released
Post by: Handoko on November 08, 2016, 06:16:53 pm
I'm not a member of the development team. But I found some pages that are interesting to have a look. It said Lazarus 1.8 is scheduled for release on 2016-12-31:

http://bugs.freepascal.org/roadmap_page.php?project_id=1
http://wiki.freepascal.org/Lazarus_1.8.0_release_notes

Title: Re: Lazarus 1.6 - Released
Post by: Bart on November 08, 2016, 06:51:26 pm
Lazarus 1.6.2 wil probably NOT wait for fpc 3.0.2.

Bart
Title: Re: Lazarus 1.6 - Released
Post by: zeljko on November 08, 2016, 07:05:28 pm
Yeah, it was our bad decision to wait for fpc-3.0.2, but 1.6.2 has more bug fixes because of such waiting :)  Hope that tagging and release will start in next 5-10 days.
Title: Re: Lazarus 1.6 - Released
Post by: snorkel on November 08, 2016, 09:03:53 pm
yes, I did notice that there are many more merges for 1.6.2.  So that will be a good thing :-)

There will be release candidates for us to test right ?
 
Title: Re: Lazarus 1.6 - Released
Post by: Ondrej Pokorny on November 08, 2016, 09:28:38 pm
There will be release candidates for us to test right ?

If I am not mistaken, release candidates are only before the x.x.0 version (1.6.0, 1.8.0 etc).
Title: Re: Lazarus 1.6 - Released
Post by: tom.chris on November 14, 2016, 10:57:01 am
where may i get Lazarus 1.7 i herd its on trunk? same with FPC 3.1.1

Title: Re: Lazarus 1.6 - Released
Post by: howardpc on November 14, 2016, 11:19:14 am
See http://wiki.lazarus.freepascal.org/Installing_Lazarus (http://wiki.lazarus.freepascal.org/Installing_Lazarus)

Or you may prefer to use fpcupdeluxe, see
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/tag/0.91 (https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/tag/0.91)

Or you could try GetLazarus, see
http://www.getlazarus.org/ (http://www.getlazarus.org/)
Title: Re: Lazarus 1.6 - Released
Post by: tom.chris on November 14, 2016, 11:32:12 am
Thanks
Title: Re: Lazarus 1.6 - Released
Post by: FTurtle on January 04, 2017, 08:10:04 pm
Can somebody say when approximately may be released 1.8 RC1 ?
Mainly interesting "not earlier than ..."
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on January 04, 2017, 11:41:49 pm
Can somebody say when approximately may be released 1.8 RC1 ?
Mainly interesting "not earlier than ..."
Not anytime soon. It was not planned or discussed yet. There is some interesting development that must stabilize first.
I would say "not earlier than summer 2017".
On the other hand there will hopefully be many dot releases for 1.6 before that (1.6.4, 1.6.6 ... ?).
Title: Re: Lazarus 1.6 - Released
Post by: FTurtle on January 05, 2017, 12:36:21 am
Thank you.
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on January 05, 2017, 11:52:16 am
Can somebody say when approximately may be released 1.8 RC1 ?
Mainly interesting "not earlier than ..."
Not anytime soon. It was not planned or discussed yet. There is some interesting development that must stabilize first.
I would say "not earlier than summer 2017".
On the other hand there will hopefully be many dot releases for 1.6 before that (1.6.4, 1.6.6 ... ?).

Will the next dot releases be based on FPC 3.0.2 (assuming it's released soon enough) ?

I'd like to release a new version of Coedit but unfortunately I've switched to FPC 3.0.2 as the minnimal compiler version required. Also I have to wait for a new official Laz version that would fix a clipboard problem with the GTK widgetset...In fine I start wondering if I haven't shoot myself in the foot (e.g if next Laz version includes the fix but not FPC 3.0.2 that's bad for my plans)...
Title: Re: Lazarus 1.6 - Released
Post by: JuhaManninen on January 05, 2017, 12:26:04 pm
Will the next dot releases be based on FPC 3.0.2 (assuming it's released soon enough) ?
Of course, but don't assume anything. FPC 3.0 was released well over a year ago but still no dot release ...
Better ask about FPC schedule in FPC forum section or mailing list.

Quote
I'd like to release a new version of Coedit but unfortunately I've switched to FPC 3.0.2 as the minnimal compiler version required. Also I have to wait for a new official Laz version that would fix a clipboard problem with the GTK widgetset...In fine I start wondering if I haven't shoot myself in the foot (e.g if next Laz version includes the fix but not FPC 3.0.2 that's bad for my plans)...
Revisions merged to Lazarus 1.6 fixes branch are listed here:
 http://wiki.freepascal.org/Lazarus_1.6_fixes_branch
As I wrote, I don't know about FPC dot-release schedule.
Title: Re: Lazarus 1.6 - Released
Post by: guest58172 on January 05, 2017, 01:53:43 pm
Revisions merged to Lazarus 1.6 fixes branch are listed here:
 http://wiki.freepascal.org/Lazarus_1.6_fixes_branch
The fix I'm intereseted by is merged, that's already that. :D
TinyPortal © 2005-2018