Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on December 06, 2017, 11:10:46 pm

Title: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Martin_fr on December 06, 2017, 11:10:46 pm
The Lazarus team is glad to announce the release of Lazarus 1.8.

The release was built with FPC 3.0.4.
The previous release Lazarus 1.6.4 was built with FPC 3.0.2.

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.0" directory.

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

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_0

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 (with FPC 3.0.4)
Post by: BSaidus on December 06, 2017, 11:41:59 pm
 :)
Thanks !! great work from great peoples
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: dbannon on December 07, 2017, 12:07:10 am
Good one, thanks to the teams involved !

David
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Jurassic Pork on December 07, 2017, 12:18:46 am
hello,
Thanks to the team for this release !

I have installed this release on Windows 7  (Lazarus version 32 bits) . I have a strange thing : with the project ziptest (attachment  of this bugtracker post  0032773: paszlib inflate of file gives crc error (https://bugs.freepascal.org/view.php?id=32773) ) i cant'see the form and when i execute it no window displayed (no error message) . The project is a 1.6.0.4 project.

Friendly, J.P
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Noodly on December 07, 2017, 12:27:20 am
Great work, but the release notes haven't been released yet  ;)

"Lazarus 1.8.0 is not yet released. This page is under construction!"
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Martin_fr on December 07, 2017, 12:34:52 am
I have a strange thing : with the project ziptest (attachment  of this bugtracker post  0032773: paszlib inflate of file gives crc error (https://bugs.freepascal.org/view.php?id=32773) ) i cant'see the form and when i execute it no window displayed

Open the lfm, and look at "Left"...
At least for me this is displayed way outside the visible desktop area.

Edit left to something reasonable, and it works.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Martin_fr on December 07, 2017, 12:36:40 am
Great work, but the release notes haven't been released yet  ;)

"Lazarus 1.8.0 is not yet released. This page is under construction!"
Which url have you looked at?

The files are on sourceforge.

Maybe the mirrors need some time to catch up.

--
EDIT
Oh, I see the wiki... fixed
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Jurassic Pork on December 07, 2017, 12:42:59 am
Open the lfm, and look at "Left"...
At least for me this is displayed way outside the visible desktop area.
Edit left to something reasonable, and it works.

Yes i have seen that , the author must have a big screen  ;)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Eugene Loza on December 07, 2017, 06:55:52 am
Congratulations!!! Awesome job!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: tomitomy on December 07, 2017, 07:40:27 am
Really great work !  :) I've already downloaded it, and I'm making it a portable version.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Mladen on December 07, 2017, 10:48:57 am
After updating to Lazarus 1.8 (was using 1.6.4 ) I have noticed strange behavior in source editor.

When ever i try to write something in source editor it inputs two characters on one key press.
For example if i press "k" on my keyboard it inputs "kk" and so on...
I have been unable to find the cause of the issue.

I am using Linux Mint mate 18.3 64 bit
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: GetMem on December 07, 2017, 10:51:08 am
Did you try a forum search? The following thread was posted today: http://forum.lazarus.freepascal.org/index.php/topic,39213.0.html
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: rvk on December 07, 2017, 11:26:23 am
Is there a page with known bugs per Lazarus/FPC version?

In this version Lazarus 1.8 the FormatFloat() error is still present.
See: http://forum.lazarus.freepascal.org/index.php/topic,39144.msg267614.html

With such a bug Lazarus 1.8 doesn't seem ready for production use and a (wiki-)page to list all known problems could help people decide if switching to that version is wise.

Edit: Or maybe this should be a section in the release notes ("Known bugs" or "Known issues") which can be changed as they are found.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: georgebou on December 07, 2017, 12:06:09 pm
Congratulations guys.

Keep up good work
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: hubblec4 on December 07, 2017, 12:10:01 pm
Many many thanks for this wonderful work!!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on December 07, 2017, 12:35:39 pm
Is there a page with known bugs per Lazarus/FPC version?
Known bugs and issues are in bug tracker. There are thousands of them. It is unrealistic to copy them all to wiki or to release notes.

Quote
In this version Lazarus 1.8 the FormatFloat() error is still present.
See: http://forum.lazarus.freepascal.org/index.php/topic,39144.msg267614.html
FPC release cycle is slow. The fix will not be in a release anytime soon.
Lazarus project could maybe build its own version of FPC from their 3.0 fixes branch for the most common platforms when releasing its next dot release.
I will ask what others think of it...
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: wp on December 07, 2017, 12:42:17 pm
In this version Lazarus 1.8 the FormatFloat() error is still present.
See: http://forum.lazarus.freepascal.org/index.php/topic,39144.msg267614.html (http://forum.lazarus.freepascal.org/index.php/topic,39144.msg267614.html)

With such a bug Lazarus 1.8 doesn't seem ready for production use and a (wiki-)page to list all known problems could help people decide if switching to that version is wise.

I wrote about a workaround in that mentioned thread.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: rvk on December 07, 2017, 12:43:35 pm
Is there a page with known bugs per Lazarus/FPC version?
Known bugs and issues are in bug tracker. There are thousands of them. It is unrealistic to copy them all to wiki or to release notes.
I understand. But it isn't easy to let the bugtracker show the bugs for just the Lazarus release 1.8.
What filters should you apply for that?
(Maybe a direct link to that sorted by severeness/priority)

Besides that, I think users will more likely use the forum to post such bugs instead of digging through the bugtracker.

Anyway, (as mentioned above) wp already found a temporary solution to mentioned problem (which is in the post).
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: WooBean on December 07, 2017, 12:57:36 pm
My congratulations to Lazarus Team!
Something considered somewhen a toy for programmers is becoming the Tool for them now.
I just switched from Lazarus 1.6.0/FPC 3.0.0 to 1.8.0/FPC 3.0.4 and impression of progress in Lazarus Project is excellent.

IMHO it would be good to add anchordockingdsgn.lpk, sparta_dockedformeditor.lpk and sparta_mdi.lpk packages to the default installation set.


Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: ahiggins on December 07, 2017, 01:35:59 pm
Yet again, excellent work. Many thanks. :D
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: BlueIcaro on December 07, 2017, 03:55:49 pm
Thanks for this release
Lazarus team, you did a great work!
/BlueIcaro
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: ASBzone on December 07, 2017, 04:36:51 pm
Awesome.  Great work, team...
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: lainz on December 07, 2017, 07:18:20 pm
What is the fatest mirror? I'm getting it at 100kbps when I usually get downloads at 2mbps.

Someone can mirror it at GitHub?

Edit: finished the download, BTW a faster mirror will be great...
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: six1 on December 08, 2017, 09:25:15 am
Thanks a lot Martin, Mattias and the whole Team behind.

This is the best Version, i used until today. I saw many improvements in many parts.

If i had a wish for free (Christmas is coming  :D ), then the top one will be:

Make Debuger output better.

Debuger Output on Arrays sometimes is terrible not as aspected.
Properties can't be shown. (i.e there is a Property "caption", but if you hover over it, it can't be shown <ctrl><F7> is showing, that it's name is fCaption.... )



Take it as a tiny criticism, which does not diminish your great work in any way!

I love it  :-X
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Gury on December 08, 2017, 10:44:29 am
Thank you, Lazarus Team!

I was very excited about new release, because it has support for MySQL 5.7 delivered directly in component palette.

Really great development tool, which I use for my personal projects on Windows platform.

Greetings,
Boštjan
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JD on December 08, 2017, 10:47:31 am
Thumbs up to the team. I've updated my Windows & Linux installations and everything is going fine.

JD  :D
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: andresayang on December 08, 2017, 01:33:24 pm
Thanks a lot for this wonderfull free rad software.

Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Martin_fr on December 08, 2017, 02:12:22 pm
Make Debuger output better.

Debuger Output on Arrays sometimes is terrible not as aspected.
Properties can't be shown.

The property issue is well known, but major work across several projects to solve.

Can you explain what is wrong with arrays?
Best way to view them may be the watches window. And the enable the "detail" site panel.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: six1 on December 08, 2017, 02:53:46 pm
Hi Martin,
it's easy to describe: like in Delphi  8)

Code: Pascal  [Select][+][-]
  1. Item+
  2.     |-Sub1
  3.     |-Sub2+
  4.           |-SubSub2_1
  5.  

and so on...

in time it is like "Array in a row". Array with Record Elements are very difficult to debug. Sometimes i get all the Data in one Line...

Thanks a lot!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: dbannon on December 09, 2017, 12:05:22 am
I note that on the Mac, unlike Linux, the FPC Source is installed without a version number.

On Linux, using the src kit bundled with 1.8 ends up in /usr/share/fpcsrc/3.0.4/. but on the Mac its /usr/local/share/fpcsrc/.

is that intentional ? Or a decision made at the FPC level, or some necessary Mac-ism ?

In my case, it appears that the 3.0.4 src has overwritten the previous install, probably not a problem, just hope I don't need to revert :-)   The compiler on the other hand appears to be tucked away nicely in its own named directory. Don't, at this stage, know where the RTL lives ....

David
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Max V. Terentiev on December 09, 2017, 03:59:52 am
After installing 1.8 I cannot rebuild IDE and build any projects. I got "error while linking". All works fine in 1.8 RC5

Here is error log:

usr/bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: нераспознанное перемещение (0x2a) в разделе «.text»
/usr/bin/ld: final link failed: Некорректное значение
/home/maxter/tmp/project1.lpr(20,1) Error: (9013) Error while linking
/home/maxter/tmp/project1.lpr(20,1) Fatal: (10026) There were 1 errors compiling module, stopping

OS: CentOS 7 x64         
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: zeljko on December 09, 2017, 10:16:10 am
Check your fpc.cfg
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: kaygey on December 09, 2017, 10:17:34 am
 Well done amazing work!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Max V. Terentiev on December 09, 2017, 03:44:03 pm
Quote
Check your fpc.cfg

I was try to install 1.8 to clean CentOS (just installed from ISO image). So, here is no old fpc.cfg.

I can only install 1.8 using FpcUpDeluxe with building it from scratch. RPM packages install broken version.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Martin_fr on December 09, 2017, 04:15:44 pm
usr/bin/ld: /usr/lib64/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: нераспознанное перемещение (0x2a) в разделе «.text»
/usr/bin/ld: final link failed: Некорректное значение

I dont know what it says, but I guess something like "unknown section"? IIRC that has something to do with the version of ld.

I think there were previous posts on the forum about this issue.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: scons on December 09, 2017, 05:39:32 pm
Great work, thanks to the whole team.
Looks great too with the new icons.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: jmpessoa on December 09, 2017, 06:46:07 pm
About:
Quote
IMHO it would be good to add anchordockingdsgn.lpk, sparta_dockedformeditor.lpk and sparta_mdi.lpk packages to the default installation set.

as a sidenote: After installing "anchordockingdsgn.lpk, sparta_dockedformeditor.lpk"  I have to drop any reference to "AutoSize = True"  in  all  "*.lfm"  files...   else   Lazarus  crash!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: chenyuchih on December 09, 2017, 07:04:28 pm
Thank you the lazarus teams! It is so good to see lazarus keeping growing. And long life the free pascal!

Chenyuchih
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: BeniBela on December 09, 2017, 09:54:31 pm
Why is heaptrace enabled in lazbuild.lpi? That only drops an incomprehensible amount of leak traces, when there is  an exception, like when you try to compile something that does not compile.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: creaothceann on December 09, 2017, 10:36:57 pm
Nice work.

Note to others: I noticed that projects were building slower than usual; after adding an exception to Windows Defender for the Lazarus directory it's fast again.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: jwdietrich on December 09, 2017, 10:57:44 pm
Don't, at this stage, know where the RTL lives ....

On my machine (macOS Sierra 10.12.6) it is in /usr/local/share/fpcsrc/rtl.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: nachoap on December 10, 2017, 08:39:59 am
Great news!

Thank you very very much!

I love Lazarus. It's the best free ide I know. I've been programming for more than 30 years and I feel really happy with Lazarus and FreePascal. And I can program with them evererywhere. So, thank you very very much
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: tcsorgo on December 10, 2017, 09:31:49 am
Thank you!
Great work!
It works very well!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: segfault on December 10, 2017, 10:29:56 am
Thanks for the new release.

My system is Debian Linux and I'm currently using 1.6.4 which I installed using the debs from the previous release. Should I remove these packages before installing the new debs?
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: PeterX on December 10, 2017, 01:28:05 pm
Just compiled one of my projects with 1.8 release, everything's fine !
(I already tested under 1.8 RC5 before, so I expected no problems ..)

Thanks a lot, great job !
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on December 10, 2017, 02:51:14 pm
My system is Debian Linux and I'm currently using 1.6.4 which I installed using the debs from the previous release. Should I remove these packages before installing the new debs?
You should uninstall the old version to be on the safe side. I am not sure how the Debian package system does the update.
Anyway, some people get errors like "Cannot find unit Interfaces" which are caused by mixing sources or compiled .ppu files from different versions.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Thaddy on December 10, 2017, 03:59:46 pm
sudo apt-get purge fpc
sudo apt-get purge lazarus
sudo apt-get remove /etc/fpc.cfg  // this one must be done by hand because the package manager forgot about it...
sudo apt-get autoremove

Then install....

You may ave to re-install some dependencies, or skip autoremove.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: PeterX on December 10, 2017, 09:09:14 pm
Wow, I can confirm that the 1.8 release can compile a working VST Plugin - yeah !!!

(Doesn't draw jet, but this should not be that difficult I hope ...)

=> http://wiki.lazarus.freepascal.org/Bounties#Fixing_bug_.237182_Problems_using_LCL_in_DLL_-_.24100
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: userx-bw on December 11, 2017, 03:12:14 pm
I HAD 1.8 installed, it compiles slowly, then the compiled basic default window takes forever to show up after being compiled. I do not remember Lazarus being that slow.

I went into the setting to eliminate the windows that ( i do not know what names they were given) one uses to work on when running, and all I seen was get rid of IDE when running, so I had to use that, when I selected it, then ran the default window to get a look see, the IDE and everything associated to it went  crazy. cycling opening and closing, minimize restore, if you like. it wasn't until I opened a terminal to kill Lazarus to stop it from doing that is when it stopped doing that.  I guess it didn't want to die.

Slackware 14.2 Lazarus 1.8 and the needed fpc fpc-source. I just removed it, and am installing the later one as I type this. Just felt obligated to tell you people at Lazarus this information. As I removed it and no longer am not going to use it. I did not submit a bug report because I will not be able to open it up and do whatever I might need to do so I can get a ideal what to write up on it other than what I already did.

Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Thaddy on December 11, 2017, 03:21:22 pm
I HAD 1.8 installed, it compiles slowly, then the compiled basic default window takes forever to show up after being compiled. I do not remember Lazarus being that slow.
Usually just first time use. After that you should not notice any difference.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: userx-bw on December 11, 2017, 03:25:48 pm
I HAD 1.8 installed, it compiles slowly, then the compiled basic default window takes forever to show up after being compiled. I do not remember Lazarus being that slow.
Usually just first time use. After that you should not notice any difference.

it's more that other problem, the "slowness" is mostly just me not remembering How Lazarus does that compiling speed. the cycling of the IDE and everything while running is the real buggy problem. it should not do that. it should just stay minimized while running the project, and when it stops running go back to the state it was in instead of cycling open close the eitire time.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: molly on December 11, 2017, 03:36:29 pm
... , the "slowness" is mostly just me not remembering How Lazarus does that compiling speed.
Most basic used classes/components are build/compiled on the first compilation run, sometimes resulting in an very annoying slowness (same happens when you switch widgetset/target and recompile your project for the first time). Once compiled things go must faster. Also the OS usually caches things better the longer you use lazarus.

Unfortunately I have no experience with the other issue...
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: BeanzMaster on December 11, 2017, 10:00:21 pm

Hello it seems with Linux Lazarus installation have some problems

Message translated from https://www.developpez.net/forums/d1786555/autres-langages/pascal/lazarus/l-edi-lazarus-1-8-disponible-retard-fort-serieuses-ameliorations/#post9840211

Quote
I can not run this version 1.8 on Linux, and I have the same problem with Mageia 64 bit (installed with RPM packages) and with Mint 64 bit (DEB packages): link editing is not possible ( I checked the platform options, etc.).

If I install FPC 3.0.4 alone, downloaded on freepascal.org, compiling and linking is done worry free.
If I add the downloaded Lazarus 1.8.0 package to SourceForge, then the expected version of FPC is not the right one (it wants 3.0.4 release 1). OK, let's give him the right version. I uninstall version 3.0.4.

I'm now installing version 3.0.4.1 alone, available with Lazarus 1.8: link editing does not work - with a very terse error message 'Error while linking'. Lazarus installs without problems later, but hey without being able to edit the links, I'm stuck.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on December 11, 2017, 10:25:11 pm
BeanzMaster, forget the packages. After installing FPC, checkout Lazarus sources from SVN fixes_1_8 branch and build with "make".
My experience also is that installing packages outside the distro's repository often breaks something.
Either bypass the package system or use a rolling distro which has recent versions of everything.
I can recommend Manjaro from my experience.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: userx-bw on December 12, 2017, 12:41:12 am
... , the "slowness" is mostly just me not remembering How Lazarus does that compiling speed.
Most basic used classes/components are build/compiled on the first compilation run, sometimes resulting in an very annoying slowness (same happens when you switch widgetset/target and recompile your project for the first time). Once compiled things go must faster. Also the OS usually caches things better the longer you use lazarus.

Unfortunately I have no experience with the other issue...

this is on Slackware 14.2 so it is not a over night copy of Linux this disto is rather standard and it just flips out when I select hide IDE windows on run.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: BeanzMaster on December 12, 2017, 02:02:00 pm
BeanzMaster, forget the packages. After installing FPC, checkout Lazarus sources from SVN fixes_1_8 branch and build with "make".
My experience also is that installing packages outside the distro's repository often breaks something.
Either bypass the package system or use a rolling distro which has recent versions of everything.
I can recommend Manjaro from my experience.

Thanks JuhaManninen i'm transmitting your answer  :)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Elfrom on December 12, 2017, 05:57:28 pm
Thanks a milion
I just have to say how much i love version 1.8.
With the Online Package Manager, it's SO cool.

Love it, thanks Lazarus team
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: BeanzMaster on December 12, 2017, 10:37:40 pm
Hi to all for install Lazarus from Deb or Rpm package with linux. It seem the easy and quick way is :

- Install FPC from .deb or .rpm and change nothing
- Reinstall FPC from fpc-3.0.4.x86_64-linux.tar
  - Download here :  https://sourceforge.net/projects/freepascal/files/Linux/3.0.4
  - Decompress then
    - cd fpc-3.0.4.x86_64-linux/
    - sudo ./install.sh
- install fpc_src from .deb or .rpm
- install lazarus from .deb or .rpm

This method was tested  with Mint/Mint cinnamon,  Mageia 64 bits

It's recommended to clean previous version of lazarus and fpc before like in some post above

sudo apt-get purge fpc
sudo apt-get purge lazarus
sudo apt-get remove /etc/fpc.cfg // this one must be done by hand because the package manager forgot about it...
sudo apt-get autoremove

and Install..this second method has been tested with Ubuntu 32 bits

Hope this help someone

Cheers
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: apeoperaio on December 13, 2017, 01:30:21 pm
I am trying to update to lazarus 1.8 on my OSX (I was using 1.6.4).
I downloaded and installed, fpc, fpc src and lazarus.
First run is ok.
Then if I recompile lazarus (clean build all) everything seems to be ok but if I try to start lazarus I got an error message. See message1. I close the message try to restart again lazarus and I got the message2.

What is going wrong?
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: segfault on December 15, 2017, 03:40:28 pm
sudo apt-get purge fpc
sudo apt-get purge lazarus
sudo apt-get remove /etc/fpc.cfg  // this one must be done by hand because the package manager forgot about it...
sudo apt-get autoremove

Then install....

You may ave to re-install some dependencies, or skip autoremove.

Thanks, all went well except I had to also remove the config file from my .home directory (I had a message on startup telling me the system contained a previous version of Lazarus).

Very nice release!  :)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: jcfaria on December 16, 2017, 03:18:26 pm
Thank you, Lazarus Team! :D

Very nice release!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: RayoGlauco on December 18, 2017, 10:52:09 am
Hello!

Thanks to the whole team for the good work.

I have been updating my code to remove references to UTF8 functions like DirectoryExistsUTF8 and replace it by the "standard" functions (like DirectoryExists), but I see that UpperCase does not work the same as UTF8UpperCase. Characters like ñ ç á è ô ü are not converted to Ñ Ç Á È Ô Ü by UpperCase.

  UTF8UpperCase('test ñ ç á è ô ü') = 'TEST Ñ Ç Á È Ô Ü'
  UpperCase('test ñ ç á è ô ü') = 'TEST ñ ç á è ô ü'

I think UpperCase should convert these characters. Is this correct?

I made tests on Windows 10 64 bits, Lazarus 1.8 32 bits.

Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: krolikbest on December 18, 2017, 01:05:32 pm
Never was so much owed by so many to so few. :)
Thx.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Thaddy on December 18, 2017, 01:52:44 pm
Never was so much owed by so many to so few. :)
Thx.
https://www.youtube.com/watch?v=Y0t-RqjMH-A

 8-) :D
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on December 18, 2017, 03:10:51 pm
... but I see that UpperCase does not work the same as UTF8UpperCase.
Please open a new thread for this.
It is not related to Lazarus 1.8 release.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: RayoGlauco on December 18, 2017, 03:54:06 pm
... but I see that UpperCase does not work the same as UTF8UpperCase.
Please open a new thread for this.
It is not related to Lazarus 1.8 release.


Ok, thanks! If someone is interested in it, I posted the question here:
http://forum.lazarus.freepascal.org/index.php/topic,39331.0.html
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: DMoRiaM on December 24, 2017, 12:03:11 pm
Great release. Congrats to all the people involved.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: SnoopyDog on December 28, 2017, 02:27:26 pm
Thank you for this great new release :)

I only found one small thing in FPC (don't know where to report it): the variable FPC_FULLVERSION is set to 30000 but it should be 30400.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: rvk on December 28, 2017, 02:43:09 pm
I only found one small thing in FPC (don't know where to report it): the variable FPC_FULLVERSION is set to 30000 but it should be 30400.
It isn't set to 30000 (I think). I think it is set to 030004.
2.6.1 was 020601 so 3.0.4 would be 03 00 04 (which is 030004).

(take 00 "format" for each number)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: SnoopyDog on December 28, 2017, 03:04:14 pm
Ups, sorry, i was wrong. Thank you :)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: dstritt on December 29, 2017, 08:01:05 am
My problem is that all windows brought up with the "View" menu remember their location next time you run Lazarus except for the "Todo" window. That always resets to the initial location when you start Lazarus. Does anyone know how to make it remember where it was last?

Thanks,
Daniel
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on December 29, 2017, 11:25:22 am
Please open a new thread for issues not related to Lazarus 1.8 release.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Thaddy on December 29, 2017, 12:16:29 pm
I have updated wikipedia to reflect the current version. Maybe devs want to add/edit. I just added the bare minimum, release window and table. And MariaDB to MySQL entry and local db options.
https://en.wikipedia.org/wiki/Lazarus_(IDE)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Thaddy on December 29, 2017, 01:47:58 pm
I only found one small thing in FPC (don't know where to report it): the variable FPC_FULLVERSION is set to 30000 but it should be 30400.
It isn't set to 30000 (I think). I think it is set to 030004.
2.6.1 was 020601 so 3.0.4 would be 03 00 04 (which is 030004).

(take 00 "format" for each number)
Just always test: here's a utility for that:
Code: Pascal  [Select][+][-]
  1. program fullversion;
  2. // has dependecy on LCL
  3. {$mode objfpc}{$H+}{$I-}{$macro on}
  4. uses lclversion;
  5. begin
  6.   writeln('FPC version: ', FPC_FULLVERSION);
  7.   writeln('LAZ version: ', LCL_FULLVERSION);
  8. end.
You must compile and this with your current version. It can help detect double installs. (although Lazarus has an aboutbox that does similar)
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: bytebites on January 03, 2018, 01:12:52 pm
TMemo.SelText problem persists, two latest patches were no applied.
https://bugs.freepascal.org/view.php?id=32583
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: JuhaManninen on January 03, 2018, 03:42:28 pm
TMemo.SelText problem persists, two latest patches were no applied.
https://bugs.freepascal.org/view.php?id=32583
A bug report should be reopened if the bug still persists. Comments in a resolved issue are typically not followed.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: del on January 05, 2018, 09:58:12 am
Me like.   :D

Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: antekgla on January 08, 2018, 05:37:27 am
Hi!
I have a problem related to Lazarus 1.8 0 fpc 3.0.4 I dont know if this thread is the suitable for this or I have to open a new thread...
 
I am a collaborator in TransGUI  (https://github.com/transmission-remote-gui/transgui)

The code compile just fine in 1.6 and 1.8 but at runtime ( only in 1.8 ) there is a problem with a TPageControl component...

Each tab has assigned a shortcut, when you press the shortcut the tab is changed but the content is not showed. When you change tabs with the mouse the behavior is normal. (the content of the tab is showed)

This problem dont occur in Lazarus 1.6 the shortcuts change the tabs and the content is showed.

The shortcut change tabs like this:
Code: Pascal  [Select][+][-]
  1.         case Keypressed of
  2.            VK_G: PageInfo.PageIndex:=0;
  3.            VK_K: PageInfo.PageIndex:=1;
  4.            VK_P: PageInfo.PageIndex:=2;
  5.            VK_F: PageInfo.PageIndex:=3;  
  6.  

This behavior is described in this post (https://github.com/transmission-remote-gui/transgui/issues/1063) in Github (with Screenshots)

Edit: change thru PageInfo.ActivePage := don't solve the issue.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: GetMem on January 08, 2018, 07:49:06 am
@antekgla
Can you supply a small example that demonstrates the issue? I cannot reproduce the bug,  TPageControl works fine both on Lazarus_1.8 and Lazarus_trunk. Download the attached project then press: Alt + P,  Alt + F, etc...
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: antekgla on January 09, 2018, 04:37:02 am
@antekgla
Can you supply a small example that demonstrates the issue? I cannot reproduce the bug,  TPageControl works fine both on Lazarus_1.8 and Lazarus_trunk. Download the attached project then press: Alt + P,  Alt + F, etc...

I compile your example and Yes works OK.

I dont know how reproduce this issue in a new project.
You can compile TransGUI (https://github.com/transmission-remote-gui/transgui) is not a complicated program. I am a newbie in Lazarus and I can compile without problem.
Only need install a component (included) in the sources (TVarGRid).
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: GetMem on January 09, 2018, 11:05:25 am
Quote
@antekgla
I dont know how reproduce this issue in a new project.
You can compile TransGUI is not a complicated program. I am a newbie in Lazarus and I can compile without problem.
Only need install a component (included) in the sources (TVarGRid).
I really don't like debug third party applications/components. However, it looks like you have some relevant code in PageInfo(TPageControl) OnChange event. The big difference between 1.6 and 1.8, is that in case of 1.6 the OnChange event is automatically called when you programmatically change ActivePageIndex. To do the same in 1.8 just set nboDoChangeOnSetIndex to true in the form OnCreate event, with ifdef to avoid code break.
Code: Pascal  [Select][+][-]
  1. uses ...LCLVersion;
  2.  
  3. procedure TMainForm.FormCreate(Sender: TObject);
  4. begin
  5.   //...
  6.  {$IF LCL_FULLVERSION >= 1080000}
  7.    PageInfo.Options := PageInfo.Options + [nboDoChangeOnSetIndex]
  8.  {$ENDIF}
  9. end;

This will most likely fix the issue.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: antekgla on January 09, 2018, 03:48:28 pm
I really don't like debug third party applications/components. However, it looks like you have some relevant code in PageInfo(TPageControl) OnChange event. The big difference between 1.6 and 1.8, is that in case of 1.6 the OnChange event is automatically called when you programmatically change ActivePageIndex. To do the same in 1.8 just set nboDoChangeOnSetIndex to true in the form OnCreate event, with ifdef to avoid code break.
Code: Pascal  [Select][+][-]
  1. uses ...LCLVersion;
  2.  
  3. procedure TMainForm.FormCreate(Sender: TObject);
  4. begin
  5.   //...
  6.  {$IF LCL_FULLVERSION >= 1080000}
  7.    PageInfo.Options := PageInfo.Options + [nboDoChangeOnSetIndex]
  8.  {$ENDIF}
  9. end;

This will most likely fix the issue.

Wow, that really solve the issue.
I am amazed of your wisdom!

Thank you very much for taking the time to look at this!!!

PD: Last question... this 1.8 behaviour of not calling the OnChange method when is done programatically applies only to TPageControl or to all components?
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: wp on January 09, 2018, 04:10:30 pm
I don't think so. But find out yourself by reading the code-breaking changes in 1.8: http://wiki.freepascal.org/Lazarus_1.8.0_release_notes#Changes_affecting_compatibility
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: reinhardt1053 on January 10, 2018, 11:27:36 am
Thank you!
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: bastynator on January 12, 2018, 11:20:45 am
Works great  8) Thanks for work
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: ermeneuta on January 24, 2018, 12:28:41 am
How can I install Release 1.8 on a Raspberry Pi 3B that has a previous RC version installed ?
Are there available .deb packages for the ARM CPU ?
The SourceForge site don't mention ARM...

Thanks
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: bpr on January 29, 2018, 06:42:28 pm
You might take a look at the script download at blog.boberglund.com
You'd want to change this section as desired:
#Fpc and Lazarus tags and versions
FPCTAG=release_3_0_0
FPCVER=3.0.0
LAZTAG=lazarus_1_6_2
LAZVER=1.6.2

and probably change the two later svn co http:// ... lines to https:// ...
See author's comments at https://www.tweaking4all.com/hardware/raspberry-pi/install-lazarus-pascal-on-raspberry-pi-2/#comment-160946 (currently last comment in long thread)
Worked for me
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Djordje on February 11, 2018, 08:29:15 pm
Hi i have a problem as shown above,can someone help me?
procedure TForm1.Button1Click(Sender: TObject);
begin
  brTemperatura:=brTemperatura+1;
  nizTemperatura[brTemperatura]:=edit1.text;
  edit1.clear;
end;         
This is the code and i get a message
Compile Project, Target: C:\Users\INDIJA~1\AppData\Local\Temp\project1.exe: Exit code 1, Errors: 3
unit1.pas(50,43) Error: Wrong number of parameters specified for call to "StrToInt"
Error: Found declaration: StrToInt(const AnsiString):LongInt;
unit1.pas(53,39) Error: Incompatible types: got "TTranslateString" expected "LongInt"
Thanks.
Title: Re: Lazarus Release 1.8 (with FPC 3.0.4)
Post by: Bart on February 11, 2018, 09:01:50 pm
Hi i have a problem as shown above,can someone help me?

This question does not belong in this thread.
Furthermore, this question cannot be answered with the information you supplied.

Bart
TinyPortal © 2005-2018