Recent

Author Topic: Lazarus Release 2.0.10  (Read 26721 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6615
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.10
« Reply #30 on: July 14, 2020, 02:23:39 pm »
3. I am probably not qualified for testing. Out of date, one could say. And even if I was qualified, I do not have the time.
I am replying to this, but not about you. There are many with exactly that answer. "You" in the below, shall refer to all individuals who are unaware of the simplicity.

This is primarily about testing new Fpc, because they have a longer release cycle and that makes it more important.


It is trivial. And quick.

Well I haven't tested it on Linux/Mac. But it should be similar. https://wiki.lazarus.freepascal.org/Multiple_Lazarus#Linux

On Windows, it goes as follow
- Download the test installer that we provide (I made announcements for test builds with the new fpc, before it was released)
- Run it.
- Enter a new directory to install too (i.e. c:\laz_test\ )
- Check "secondary install"
- Next page enter a config dir (i.e. c:\laz_test\conf\ )
Done

- Packages:
Well, ok, if you have lots of packages installed, you need to redo that. That is the one point that may add some extra time. Depends how many of them you test.

- Publish projects:
From your original Lazarus, open your projects, and "Export" them to a new folder. (Project > Publish Project)

- Test:
Then open the published project in the 2ndary install. Compile and test it. Compile with -O1 -O2 -O3 and -O4 if you want (and can afford 3 or 4 minutes extra per project)


How long you think that takes?
If you have 2 or 3 projects, you should be done in under half on hour.  (And compilation and download could be done in the background)

---
How much time, do you spent if you install the update (overwriting your current install), and then things crumble and do not work?


Of course if all your projects depend on 3rd party close-sourced packages that are not available for the test release, then indeed you cannot test your projects.

Birger52

  • Sr. Member
  • ****
  • Posts: 270
Re: Lazarus Release 2.0.10
« Reply #31 on: July 14, 2020, 09:23:31 pm »
Understanding it's not really me you're talking to. ;)

First off, the things you outline here, does not seem to take much time. Tho, being retired, the mind does not spin all that fast - luckily, this does not affect the PC - only the typing speed, and other human aspects.

The main thing about "testing" to me, is actually about reporting the errors or malfunctions found - and I assume probably also a qualified guess, as to why things are NOT functioning - which is the main goal and the main time-consumer, in any form of testing.

I have a hard time checking that my own projects are working as they should - also when used in ways they were not intended to, or exposed to stuff they were not supposed to be exposed to.
Having to do it in several other environments, is not really appealing.
Lazarus 2.0.8 FPC 3.0.4
Win7 64bit
Playing and learning - strictly for my own pleasure.

PascalDragon

  • Hero Member
  • *****
  • Posts: 2132
  • Compiler Developer
Re: Lazarus Release 2.0.10
« Reply #32 on: July 15, 2020, 09:43:18 am »
The main thing about "testing" to me, is actually about reporting the errors or malfunctions found - and I assume probably also a qualified guess, as to why things are NOT functioning - which is the main goal and the main time-consumer, in any form of testing.

Best leave the guessing of the Why to the professionals who know the inner workings. Already knowing that something goes wrong is the most important part. And of course an explanation what one had done to trigger the problem (which is as important as knowing that something is erratic at all, cause a dev needs to be able to reproduce it to fix it).

calebs

  • Full Member
  • ***
  • Posts: 136
Re: Lazarus Release 2.0.10
« Reply #33 on: July 16, 2020, 05:43:15 am »
Hello all. I think i've encountered a bug with 2.0.10 I've tried to install UECONTROLS from the online package manager but fails when tried to compile BCGRABITMAP.
I didnt have this problems with 2.0.8 or any previous version.
Other components installs fine (zeosdbo, lnet, uniqueinstance and a few more)
Previously i've uninstaled 2.0.8, and cleaned lazarus folder on appdata manually.
Im using windows 10 pro x64 1909 and installed lazarus 2.0.10 x86.
Downloading manually BCGRABITMAP and BCGRACONTROLS and tried to install them gives error on FFont.CharKerning function, appearently didn't recognize it

Thanks and keep good work and sorry for my bad english!

nachoap

  • New Member
  • *
  • Posts: 18
Re: Lazarus Release 2.0.10
« Reply #34 on: July 17, 2020, 09:48:36 am »
Great! I'll try it.

I'm working with previous version, 2.0.8, so I'll install 2.0.10 as a secondary installation and I'll try to compile my apps.

Thank you very much!!!

PascalDragon

  • Hero Member
  • *****
  • Posts: 2132
  • Compiler Developer
Re: Lazarus Release 2.0.10
« Reply #35 on: July 17, 2020, 01:12:07 pm »
Downloading manually BCGRABITMAP and BCGRACONTROLS and tried to install them gives error on FFont.CharKerning function, appearently didn't recognize it

Use the most current version, that was recently fixed.

Dan3468298

  • Full Member
  • ***
  • Posts: 126
Re: Lazarus Release 2.0.10
« Reply #36 on: July 17, 2020, 03:41:14 pm »
Just upgraded to 2.0.10 on MacOS.  Everything went smoothly.  Thanks!
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Igor Antić

  • Newbie
  • Posts: 4
Re: Lazarus Release 2.0.10
« Reply #37 on: July 18, 2020, 08:39:34 am »
This is how I have a problem with TDateTimePicker and Lazarus 2.0.10. version i368-win32-win32/win64.
The problem is that when I put the value NULL on the TDateTimePicker property DATE, the project will not be translated-executed, as the error states "Error reading DateTimePicker1.Date: Floating point overflow"
While in Lazarus version 2.0.10 x86_64-win64-win32/win64 works fine.

OS windows 10 x64

Zoran

  • Hero Member
  • *****
  • Posts: 1589
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazarus Release 2.0.10
« Reply #38 on: July 19, 2020, 01:11:57 pm »
This is how I have a problem with TDateTimePicker and Lazarus 2.0.10. version i368-win32-win32/win64.
The problem is that when I put the value NULL on the TDateTimePicker property DATE, the project will not be translated-executed, as the error states "Error reading DateTimePicker1.Date: Floating point overflow"
While in Lazarus version 2.0.10 x86_64-win64-win32/win64 works fine.

OS windows 10 x64

You should have opened another thread for TDateTimePicker problem.

Anyway, NULL is a variant constant.
You should use NullDate constant from DateTimePicker unit:
Code: Pascal  [Select][+][-]
  1. DateTimePicker1.Date := DateTimePicker.NullDate;

While in Lazarus version 2.0.10 x86_64-win64-win32/win64 works fine.
If NULL appears to work fine, it's by accident. Just use NullDate.

And to test if a DateTimePicker control has Null value you can use either IsNullDate function or DateIsNullMethod of TDateTimePicker:
Code: Pascal  [Select][+][-]
  1. if IsNullDate(DateTimePiker1.Date) then
  2.   ...
  3.  
  4. // or
  5. if DateTimePiker1.DateIsNull then
  6.   ...
  7.  

If this does not solve your problem, please don't continue here, but open a new thread.

Regards,
Zoran
« Last Edit: July 19, 2020, 01:22:31 pm by Zoran »

WladimirKowtun

  • Newbie
  • Posts: 1
Re: Lazarus Release 2.0.10
« Reply #39 on: July 19, 2020, 08:33:05 pm »
Thank you very much for maintaining this project. I have been studying Free Pascal for a few weeks; and every day I fall more in love with the language and the Lazarus IDE.  :)

furious programming

  • Sr. Member
  • ****
  • Posts: 468
  • I click a little.
    • TreeStructInfo — format for text and binary configuration files
Re: Lazarus Release 2.0.10
« Reply #40 on: July 19, 2020, 10:50:46 pm »
Anyway, NULL is a variant constant.

Null is not a constant — it is a function that returns cleared variant with set the type to varnull:

Code: Pascal  [Select][+][-]
  1. function Null: Variant;
  2. begin
  3.   VarClearProc(TVarData(Result));
  4.   TVarData(Result).VType := varnull;
  5. end;
Lazarus 2.0.10 with FPC 3.2.0 (SVN Revision 63526), Windows XP (all 32-bit)

Zoran

  • Hero Member
  • *****
  • Posts: 1589
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazarus Release 2.0.10
« Reply #41 on: July 20, 2020, 04:32:56 pm »
Anyway, NULL is a variant constant.

Null is not a constant — it is a function that returns cleared variant with set the type to varnull:

Code: Pascal  [Select][+][-]
  1. function Null: Variant;
  2. begin
  3.   VarClearProc(TVarData(Result));
  4.   TVarData(Result).VType := varnull;
  5. end;

As there are no variant consts, it is just a parameterless function which always returns the same value.
Not a constant at all. ::)

VTwin

  • Hero Member
  • *****
  • Posts: 927
  • Former Turbo Pascal 3 user
Re: Lazarus Release 2.0.10
« Reply #42 on: July 20, 2020, 08:32:17 pm »
Excellent, many thanks!
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.13.6: Lazarus 2.0.8 (64 bit Cocoa, also fixes and trunk)
Ubuntu 18.04.3: Lazarus 2.0.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.8 (64 bit on VBox)

furious programming

  • Sr. Member
  • ****
  • Posts: 468
  • I click a little.
    • TreeStructInfo — format for text and binary configuration files
Re: Lazarus Release 2.0.10
« Reply #43 on: July 20, 2020, 10:10:54 pm »
As there are no variant consts, it is just a parameterless function which always returns the same value.

It doesn't matter — a function is a function, and a constant is a constant, and these concepts must not be mixed up, because they describe two very different things. Incorrect nomenclature misleads the readers, so I advise against this type of simplification.

Or just look to the docs, if you don't know what the Null is. 8-)
« Last Edit: July 20, 2020, 10:47:09 pm by furious programming »
Lazarus 2.0.10 with FPC 3.2.0 (SVN Revision 63526), Windows XP (all 32-bit)

ssap

  • Newbie
  • Posts: 1
Re: Lazarus Release 2.0.10
« Reply #44 on: July 20, 2020, 10:24:58 pm »
The release 2.10 seem an excellent work.
but I compiled my code, with a lot of numerical issues. and tehst on may own benchmark
It compile well with lazarus 2.10 IDE and fpc 3.20 64 bit code..
but the difference with the fpc 3.0.4 is amazing..
The final numerical result is the same but the time to complete the process requires 145 second with fpc 3.0.4 (inside lazarus IDE 2.0.8 )
and 240 seconds with fpc 3.2.0   (inside lazarus 2.10)
the compiling instruction are the same for  both compiler (given in project option and without optimization)
« Last Edit: July 20, 2020, 10:26:57 pm by ssap »

 

TinyPortal © 2005-2018