Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on May 22, 2018, 11:39:03 pm

Title: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Martin_fr on May 22, 2018, 11:39:03 pm
The Lazarus team is glad to announce the release of Lazarus 1.8.4. This is a bugfix release.

The release was built with FPC 3.0.4.

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

Here is the list of fixes for Lazarus 1.8.x:
http://wiki.freepascal.org/Lazarus_1.8_fixes_branch

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

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

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

Minimum requirements:

Windows:
2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.
optional qt 4.5 or 5.6 for qt apps

FreeBSD/Linux:
gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32 or 64bit).

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

For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:
ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization)
http://mirrors.iwi.me/lazarus/

Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: chenyuchih on May 23, 2018, 12:24:58 pm
Great! I'll give it a try when I am available.

Thank you the Lazarus team!
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: loaded on May 23, 2018, 01:07:10 pm
Thanks a lot!
Health to your hands  :) :
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: carondaniel1957 on May 23, 2018, 03:43:37 pm
Bonjour je possède Lazarus 18.02 fonctionnel mais quand je veut installer la dernière mouture avec gDBI, je recois ce message:

Lazarus 18.04 - Erreur: La dépendance ne peut être satisfaite: fpc (= 3.0.4) fp-compiler (= 3.0.4).

Des suggestions $$

Salutations à tous
-------------------------------------------------------------------------------------------------------------------------------------
Good day to all I already a functionnal Lazarus 18.02 but when I want to install the new version with gDBI I get this message

Lazarus 18.04 - Error: The  dependancy cannot be satisfied: fpc (= 3.0.4) fp-compiler (= 3.0.4).

Any suggestions ??

Regards to all

Daniel
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Groffy on May 23, 2018, 04:24:57 pm
December 2017 / February 2018 / May 2018 - The speed of the release development is really impressive

Thank you!
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Zvoni on May 23, 2018, 06:54:44 pm
Quick Question: Any Idea if/when it's going to be available in the official repositories (Ubuntu in my case)?
I'm a bit wary now to install it from the deb's after my fiasco during the Ubuntu-Upgrade to 18.04
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: adilsonpazzini on May 23, 2018, 09:18:09 pm
Congratulations to everyone involved.

Someone with problems in DBLookupComboBox, when entering the component and selecting the chosen item, when leaving the component to go to another, it erases the selection made. it just happens from version 1.8.2 in version 1.8.0 was working properly.

Thank you very much in advance

Adilson Pazzini
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Martin_fr on May 23, 2018, 10:25:26 pm
Quick Question: Any Idea if/when it's going to be available in the official repositories (Ubuntu in my case)?
I'm a bit wary now to install it from the deb's after my fiasco during the Ubuntu-Upgrade to 18.04
We don't maintain or have any influence on the various linux repositories. They are entirely maintained by their own teams. (The could even be build with different settings than ours.

If you are worried about your next system upgrade and having Lazarus as 3rd party package, maybe dont use a package. You can use fpupdeluxe, this builds from source in your home folder. So nothing that would conflict with any installation. (I am not using fpupdeluxe myself, so dont know all details)
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: mangakissa on May 24, 2018, 09:22:53 am
Someone with problems in DBLookupComboBox, when entering the component and selecting the chosen item, when leaving the component to go to another, it erases the selection made. it just happens from version 1.8.2 in version 1.8.0 was working properly.
This is a problem when a record is saved. But this occurs when alle datasets are connected to one transaction. Setting caCommitedRetaining in transaction won't work. I made a workaround to set the option [sqoKeepOpenOnCommit] in the TSQLQuery component.

Normally I give each TSQLQuery its own transaction, but that's not working with SQLite
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: wp on May 24, 2018, 09:30:14 am
Someone with problems in DBLookupComboBox, when entering the component and selecting the chosen item, when leaving the component to go to another, it erases the selection made. it just happens from version 1.8.2 in version 1.8.0 was working properly.
Please post a bug report to BugTracker and attach a demo program to demonstrate the issue. There were several bug fixes in TDBCombobox and TDBLookupCombo where this could have crept in.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Hendrik on May 25, 2018, 10:14:20 pm
Peculiar event-trigger
MacOs.10.9.5 (not so recent I know, but hesitating to update, with the GDB installation-problems I had years ago in mind).
The FPC/Lazarus stable version-updates from last years went without hick-up so I reckoned this latest would be no problem.
Lazarus started indeed without a problem, compilation of a simple test-program went well.
But then while testing this program I discovered a strange thing I never had before.

Simply put a Button1, an Edit1 and a Listbox1 on  Form1.

Insert by 2-click on the Button1 following  code (nothing else):

Code: Pascal  [Select]
  1.  
var Year: integer;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Year:=StrToInt(edit1.Text);
    Listbox1.Items.add('Button1Click : Year is '+IntTostr(Year));
end;
Code: Pascal  [Select]
  1.  

Compilation OK, but the strange thing is when I complete with a keyboard « enter », an entry in the Edit1, like ‘1999’, the Button1Click seems to be triggered, as messaged in the Listbox.
I would expect – as it did in previous Lazarus-versions if I remember well – that the « enter » would only trigger Edit1.OnEditingDone.

If I insert the Edit1.EditingDone event :

Code: Pascal  [Select]
  1.  
procedure TForm1.Edit1EditingDone(Sender: TObject);
begin
  Listbox1.Items.add('Edit1EditingDone : Year is '+IntTostr(Year));
end;
Code: Pascal  [Select]
  1.  

this event is triggered first followed by the button1.click event.
Could one confirm this ?
I reinstalled FPC/Lazarus twice  ; started with new/ project/application.
What could be messing this up ?
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Bart on May 25, 2018, 11:12:49 pm
Does your Button1 have Default := True?
If so, then is expected behaviour.

IIRC in a previous version it did not behave like that, but it was adjusted to mimic Delphi behaviour.

Bart
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Hendrik on May 27, 2018, 09:33:53 pm

1. My setting is {$mode objfpc} not delphi mode : does that make a difference ?

2. Nevertheless I checked : at design my setting was Button1.default := false ?
Toggling it to true doesn’t change the behaviour. No difference if I do it programmatically.
I checked roughly in ‘release notes’, ‘changes lists’  for a clue.

So far getting into it :
http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tbutton.html
http://lazarus-ccr.sourceforge.net/docs/lcl/stdctrls/tcustombutton.default.html  :

TCustomButton.Default
‘True if this is the modal Default button.
Pressing ENTER in a modal form is equivalent to pressing the Default button.’

I thought Modal Form related to a secondary form being like a dialog, which is not the case here.
So now trying to figure out the definition of modal form.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Zvoni on May 27, 2018, 11:43:52 pm

I thought Modal Form related to a secondary form being like a dialog, which is not the case here.
So now trying to figure out the definition of modal form.

Modal-Form doesn't necessarily mean secondary form.
It's more like: If you call a Form Modal, the calling (!!) code only continues on, when your Form has been closed
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: wp on May 28, 2018, 12:02:27 am
You gave a description how you observe this behavior. I cannot reproduce it on Windows (I know you have MacOS). Maybe I did something wrong, maybe you forgot to mention a tiny detail, maybe it is a widgetset or OS related issue...

Since a very simple program seems to be sufficient to demonstrate the issue why don't you pack the pas, lfm, lpi and lpr files of this project into a common zip and upload it here?
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: mischi on May 28, 2018, 10:38:32 pm
Lazarus on macOS: fink package descriptions are updated to version 1.8.4.

It gives you the choice for lazarus-aqua(carbon), lazarus-gtk2, lazarus-qt4 and lazarus-qt5.

You can build projects with following lcl:

lcl-carbon
lcl-cocoa(32bit)
lcl-cocoa(64bit)
lcl-gtk2(64bit)
lcl-qt4(64bit)
lcl-qt5(64bit)

and

crossbuilding for

lcl-win32
lcl-win64
lcl-wince-i386
lcl-wince-arm
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: totya on May 31, 2018, 12:41:36 am
Hi!

Thanks for this release, but usually I use the svn version. I found a small bug, if I select it in message window see pics, I got reverse operation, inserted directive is:
Quote
{$WARN 5024 on : Parameter "$1" not used}

Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: nachoap on June 01, 2018, 01:52:23 pm
Thanks for the release.

I can't work with lazreport with 1.8.4 nor 1.8.2. I install, I mark lazreport and sqlite3 packages for install, then Lazarus compiles and links a new exe... But when I try to execute Lazarua again I get an error with the code: 0xc000007b.

I've installed it as a secondary installation. I've tried to install in two different coputers (PC, with Windows 10 x64). I've been working with Lazarus in those computers for years without problem.

It would be nice if you can guide me where can be the problem. Now I'm working with 1.8.0 version and everything is fine.

Regards!
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: zeljko on June 01, 2018, 02:37:31 pm
Thanks for the release.

I can't work with lazreport with 1.8.4 nor 1.8.2. I install, I mark lazreport and sqlite3 packages for install, then Lazarus compiles and links a new exe... But when I try to execute Lazarua again I get an error with the code: 0xc000007b.

I've installed it as a secondary installation. I've tried to install in two different coputers (PC, with Windows 10 x64). I've been working with Lazarus in those computers for years without problem.

It would be nice if you can guide me where can be the problem. Now I'm working with 1.8.0 version and everything is fine.

Regards!

hm...I had similar problem with commercial FastReports 5 under MacOSX - Qt5 64bit. Before rebuilding lazarus I've rebuilded FR5 package and then it works fine, AFAIR problem was something with resources.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: wp on June 01, 2018, 03:20:29 pm
I can't work with lazreport with 1.8.4 nor 1.8.2. I install, I mark lazreport and sqlite3 packages for install, then Lazarus compiles and links a new exe... But when I try to execute Lazarua again I get an error with the code: 0xc000007b.
Aggressive antivirus? Put Lazarus folders on white-list of the antivirus.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Thaddy on June 01, 2018, 03:56:34 pm
Aggressive antivirus? Put Lazarus folders on white-list of the antivirus.
It is a better idea to notify any anti-virus developers that they also need to have a footprint of FPC compiled code available. Some actually do that, when informed and demonstrated. MS is one of them (but slow).
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: jc99 on June 02, 2018, 09:31:34 am
@Developers:
Thanks for the release....

@nachoap:

I can't work with lazreport with 1.8.4 nor 1.8.2. I install, I mark lazreport and sqlite3 packages for install, then Lazarus compiles and links a new exe... But when I try to execute Lazarua again I get an error with the code: 0xc000007b.
Is it only this project or are other projects also corrupted ?
Can you give an example ?
I had an similar issue regarding the new project-settings about HighDPI
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: nachoap on June 02, 2018, 01:45:52 pm
Hi again!
>>
I get the error without open any project, with default project: I install Lazarus 1.8.4, I execute it, I try to install a new package from Package -> Install/Uninstall package, I compile ide and... I get the error. With 1.8.2 I got the same problem.

I've read this kind of error can be caused by a dll msvc++ file. I'm going to try to install VisualC Redistributable again.

It's not an antivirus problem because I get the same error in two different computers with two different antivirus: Trend Micro and Kaspersky.

Regards!
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: nachoap on June 02, 2018, 01:48:59 pm
Ooooops! It works now in my personal computer  :o

Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: nachoap on June 02, 2018, 01:52:00 pm
Bad luck! It worked with Lazreport but it failed after installing sqlite3  :'( :'( :'(
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: nachoap on June 02, 2018, 02:26:06 pm
Ooops. The problem was in sqlite3laz 0.4 package. But it's not needed in order to work with SQLite Zeos  :o

If I don't install this package everything works fine.

I apologize about my message. This week I'll try the new Lazarus version. I'm impatient!

Regards!
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: ermeneuta on June 08, 2018, 06:54:31 pm
Running here Kubuntu 18.04 LTS.

FPC is installed, version 3.0.4, as is fpc-src, version 3.0.4-2, the one downloaded from Source Forge.
Trying to install  lazarus-project_1.8.4-0_amd64.deb, the package installer QApt tells me in red :
"Error: Cannot satisfy dependencies"

Suggestions welcome, thanks.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Handoko on June 08, 2018, 07:31:25 pm
Try this:
https://forum.lazarus.freepascal.org/index.php/topic,41524
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: ermeneuta on June 11, 2018, 11:14:46 pm
Try this:
https://forum.lazarus.freepascal.org/index.php/topic,41524
Many thanks, that worked.
I skipped your step 12, as Synaptic Package Manager did not tell me that fpc was waiting to be updated...
I am glad that Linux does not have a registry as Windows has, so the step of uninstalling something can be easily done by just deleting with rm any traces of the program you want to get rid of... no worries of leaving dangling (and obscure) hexadecimal entries into the registry...
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: Handoko on June 12, 2018, 08:20:57 am
To check if the FPC is in the waiting for update using Synaptic Package Manager:

01. Start Synaptic Package Manager
02. On the bottom-left panel, click Status
03. On the top-left panel, choose Installed (upgradable)
04. On the right panel, see the exclamation mark at the right of fpc

If the fpc is marked with an exclamation mark, your Lazarus will most likely stop working after you (accidentally) upgrade it. At least it happened on me twice.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: ermeneuta on June 12, 2018, 07:04:05 pm
To check if the FPC is in the waiting for update using Synaptic Package Manager:

01. Start Synaptic Package Manager
02. On the bottom-left panel, click Status
03. On the top-left panel, choose Installed (upgradable)
04. On the right panel, see the exclamation mark at the right of fpc

If the fpc is marked with an exclamation mark, your Lazarus will most likely stop working after you (accidentally) upgrade it. At least it happened on me twice.
You are right... it was marked as upgradeable... now it is locked.  Thanks again.
Title: Re: Lazarus Release 1.8.4 (with FPC 3.0.4)
Post by: ermeneuta on June 12, 2018, 07:08:34 pm
What I really would need now is a set of step-by-step instructions to upgrade Lazarus to 1.8.4 on the Raspberry Pi 3B with Raspbian Stretch...

I develop and debug on the Kubuntu Linux on the PC, then I transfer all the source to the Raspberry for a final compilation and testing. For this, I need that the two Lazarus versions (PC and Raspberry) are kept in sync....
 
Title: Open request
Post by: Editor on June 18, 2018, 11:00:36 pm
Can anyone tell me how to get to the administrator? I have an email from David Rhoads who seems not be able to become a member
He is not allowed or whatever..