Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on November 01, 2018, 11:00:40 am

Title: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 01, 2018, 11:00:40 am
The Lazarus team is glad to announce the second release candidate of Lazarus 2.0.

This release was built with FPC 3.0.4.
The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well.

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

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

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

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

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

Minimum requirements:

Windows:
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

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, beta), qt and qt5 (32 or 64bit).

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

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/

== Why should everybody (including you) test the release candidate? ==

In the past weeks the Lazarus team has stabilized the 2.0 fixes branch. The resulting 2.0RC2 is now stable enough to be used by any one for test purposes.

However many of the fixes and new features that where committed since the release of 1.8 required changes to the code of existing features too. While we have tested those ourself, there may still be problems that only occur with very specific configurations or one project in a million.

Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective
about which fixes can be merged for further 2.0.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features.

== How to test ==

Download and install the 2.0 RC2.
- On Windows you can install as a 2ndary install, that will not affect
  your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use
--primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.8.x), and use "Publish2 Project" from the project menu. This creates a clean copy of your
project.

You can then open that copy in the RC2. Please test:
- If you can edit forms in the designer
  - rename components / change properties in Object inspector / Add new
    events
  - Add components to form / Move components on form
  - Frames, if you use them
- If you can navigate the source code (e.g. jump to implementation)
- Auto completion in source code
- Compile, debug and run
- Anything else you use in your daily work
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: mischi on November 01, 2018, 01:49:11 pm
1) RC2 is not available for macOS as a download from http://sourceforge.net/projects/lazarus/files

2) I did a brief test of building the various variants of lazarus from https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/

All variants (carbon, cocoa, gtk2, Qt4 and win... cross-lcls) were built without problems. So far, I did not test running the variants.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: nanobit on November 01, 2018, 07:24:18 pm
It would be nice if users had another download, with -dTEST_WIN32_SEH:
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2032/
lazarus-2.0.0RC2-?????-fpc-3.2.0-beta-?????-win32-seh.exe

Reason: AFAIK, there are at least two problems with Non-SEH exceptions:
1) catching os-exceptions in dll (propagate to host)
2) debugging with os-exceptions (app can't continue)
Especially, users coming from Delphi are very surprised about this.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: JuhaManninen on November 01, 2018, 07:58:39 pm
SEH is about FPC build, isn't it?
You can easily get Lazarus sources from SVN and build it yourself using the compiler you installed.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 01, 2018, 10:25:57 pm
https://sourceforge.net/projects/lazarus-snapshots/  is a  "semi official" channel.
That is files there are build and provided by members off the Lazarus team (currently just me), but they are snapshots, not part of the official release cycle.

Currently I put some builds with fpc from the 3.2 branch there. It is possible that fpc 3.2 will be released while Lazarus is releasing minor updates to Lazarus 2.0 (e.g. maybe when Lazarus 2.0.6 is due). In this case some Lazarus 2.0.x will likely be switched to use the new fpc 3.2. For that reason it is desirable that fpc from that branch is already tested.
For all I know this fpc will be released the same way, as the provided testbuilds. So whatever Lazarus will come with that fpc will not relay on seh for 32 bit.

Official Lazarus releases will only come with released versions of fpc, so to get any benefits of seh 32bit for production, the fpc team has to include this in their release.

Of course it would be nice to test all features, but there are a large amount of ways fpc can be build (with/without seh, with optimized rtl (different optimization levels), with debug rtl (-Criot and others), .... I cannot pre-build all of those.

Using fpcup-deluxe should provide means to get any fpc, with any build options you like.
Title: Re: Lazarus Release Canditate 2 for 2.0 (Order in lfm file)
Post by: dbannon on November 02, 2018, 12:06:07 pm
I have found a very, very strange behavior in RC2 on the Mac, using 64bit Cocoa.

It started in my project, on one form buttons misbehaved. So I made a simple test bed for just that form and experimented. I reduced the form down to having two items, a KMemo and Button. Before you say KMemo is the problem, please read ....

In the lfm file, in my orig project the kmemo appeared before the button. This works fine in Windows, Linux and 32bit Carbon. However, with Cocoa, sometimes the button would not appear at all, clicking it sometimes would not return its modalresult (ie close the form), some times it would just jumble other components on the form. The behavior changed as I stripped non function code out of the form.

If I reverse the order that the two components are listed in the LMF file, all is good. It all works as expected.  :o  :o

And no, I am not in the habit of manually editing the LMF file ! I discovered this  removing and then replacing the KMemo. That puts the KMemo last in the list. So I did manually edit the much simplifed file and can reliably reproduce.

Is anyone interested ?  As far as I can tell, it requires KMemo and 64bit cocoa. I can attach a demo ...

David


 

 
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Xor-el on November 02, 2018, 12:24:26 pm
@dbannon, the best place to report is at the bug tracker.
https://bugs.freepascal.org
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: jma_sp on November 02, 2018, 04:03:06 pm
Hello everybody :)

Only two question about near future 2.0.

Will be in 2.0 a Lazarus installer for Haiku Operating System?

Recently they promoted to beta and are porting a lot of software, including other compilers and IDEs

Im interested specially in Haiku with 64 bits more than 32 where thereis a working FreePascal  package.

https://discuss.haiku-os.org/t/lazarus-1-9-trunk-qt4-and-qt5-interface-screenshots/5767

https://discuss.haiku-os.org/t/helping-out-with-creating-hpkg-for-lazarus/3630

https://sourceforge.net/projects/befpc/

https://sourceforge.net/p/befpc/wiki/BePascal/


And the other is if there is some optimization of Lazarus for ReactOS. Lazarus is able to install in it but programas created with FreePascal/Lazarus have a cosmetic error with images of diferents fileformat showing inverted (reflected vertically). If thereis some indication about what function could be calling FreePascal/Lazarus to obtain this result....that works ok in original windows systems.

http://wiki.freepascal.org/ReactOS/es

Best Regards and thankyou very much to the team for this great work.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: jma_sp on November 03, 2018, 04:13:15 am
Only RC1 on Sourceforge? I dont see RC2, almost for Linux AMD64  %) (.DEB)
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: antispam88 on November 03, 2018, 09:31:16 am
Hi,

I tried to compile my projects and everything looks good beside the message unit lazutf8sysutils not found.
I need the function NowUTC which is now located in unit LazSysUtils.
Ok, search and replace fixed the error.

I'm just wondering that I couldn't get any information about that unit movement.
Or have I missed something?

thanks,
antispam88

System:
Win10 pro x64
Lazarus 2.0.0RC2
FPC: 3.0.4
SVN: 59373
x86_64-win64-win32/win64

PS: Is there a better function to get UTC time?
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: fred1933 on November 03, 2018, 10:47:54 am
Tests on MAC OS
Hello,
How to test the RC2 version when "lazarus-2.0.0RC2-i686-macosx.dmg" does not exist in the Sourceforge ?
We have to build it from source files ? Is there a procedure to do this  ?
Thank you
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: dbannon on November 03, 2018, 12:51:07 pm
Yes Fred, very easy to build yourself from src. Assuming you already have fpc 3.0.4 there and are familiar with lazarus and have a signed gdb installed.

Code: [Select]
svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0_RC2
cd lazarus_2_0_0_RC2
make CPU_TARGET=i386
open startlazarus.app --args "--pcp=~/.lazarus_2_0_0_RC2"

That builds a 32 IDE which will, of course, make 64bit apps if you so request. You could also choose to build a 64bit Cocoa IDE....

Davo
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 03, 2018, 01:15:45 pm
Tests on MAC OS
How to test the RC2 version when "lazarus-2.0.0RC2-i686-macosx.dmg" does not exist in the Sourceforge ?
We have to build it from source files ? Is there a procedure to do this  ?
Looking into it...
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: JuhaManninen on November 03, 2018, 01:52:00 pm
I tried to compile my projects and everything looks good beside the message unit lazutf8sysutils not found.
I need the function NowUTC which is now located in unit LazSysUtils.
Ok, search and replace fixed the error.

I'm just wondering that I couldn't get any information about that unit movement.
Or have I missed something?
Yes, good point. I had renamed the unit because it had nothing to do with UTF8. Actually I thought it was not used outside Lazarus sources.
Now in r59436 I added lazutf8sysutils back there with "deprecated" warnings. It will be in 2.0 final and in RC3 if that is built.
Now waiting to be merged to fixes branch. See:
 http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch

BTW, I recommend the HEAD of fixes branch for everybody who builds from sources:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/
It is always better than a tagged version because it contains the latest bug fixes merged. This is true also after versions 2.0, 2.0.2 etc. are released.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: baldzhang on November 03, 2018, 02:34:34 pm
BTW, I recommend the HEAD of fixes branch for everybody who builds from sources:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/
It is always better than a tagged version because it contains the latest bug fixes merged. This is true also after versions 2.0, 2.0.2 etc. are released.

I'm always wondering to build from source between /branches/fixes_X_Y or /tags/release_X_Y_rcZ,
But now I got the idea
 :D :D
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: antispam88 on November 03, 2018, 04:28:49 pm
Yes, good point. I had renamed the unit because it had nothing to do with UTF8. Actually I thought it was not used outside Lazarus sources.
Now in r59436 I added lazutf8sysutils back there with "deprecated" warnings. It will be in 2.0 final and in RC3 if that is built.
Now waiting to be merged to fixes branch. See:
 http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch

Thank you

You wrote that it is common to use it:
Is there another or better way to get UTC time?
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: fred on November 03, 2018, 04:40:42 pm
Perhaps LocalTimeToUniversal(Now)

https://www.freepascal.org/docs-html/rtl/dateutils/localtimetouniversal.html
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: jwdietrich on November 03, 2018, 06:15:55 pm
1) RC2 is not available for macOS as a download from http://sourceforge.net/projects/lazarus/files

Is it by intention that a macOS version of RC2 doesn't exist at SourceForge (e.g. because no Mac-specific things were changed between RC1 and RC2)?
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Akira1364 on November 03, 2018, 08:04:45 pm
I build both 64-bit FPC and Lazarus from the trunk sources on Windows so this doesn't affect me personally, but I notice that the 64-bit Windows installer is still shipping with the ancient, buggy GDB 7.3?

Anyone installing on Windows 10 (likely also 8.1 or 8, and maybe 7 in some cases) is highly likely to encounter extremely nasty bugs with that version (such as hard lockups of the machine that require physically powering it down and back on again), which doesn't paint a very good picture of Lazarus to newcomers.

There seems to be an "alternative GDB" section on the SourceForge page which is a step in the right direction, but overall I'd say a build of GDB 8.1 or preferably GDB 8.2 should definitely become what's officially distributed at least with the 64-bit Windows installers specifically as soon as possible, as the current copy of GDB is quite unstable on newer machines and just has many issues that do not exist in newer versions.

One other thing I noticed is that the 64-bit Windows installer is also still including a 32-bit copy of Make 3.80, which is not great both for build performance reasons and also because Make 3.80 was released in 2002, and has a variety of issues that (like I mentioned about GDB above) don't exist in newer builds.

Personally I've been using the Make/GDB/other binutils binaries that are available with the MinGW distribution maintained by Stephan Lavavej from Microsoft for around four or five years now on 64-bit Windows, and can attest to them working seamlessly as replacements for what Lazarus currently distributes. His website is here:

https://nuwen.net/mingw.html (https://nuwen.net/mingw.html)

I've also attached a 7z file specifically containing the 64-bit build of Make 4.2.1 from his most recent overall release to this comment, if anyone wants to swap theirs out.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: 440bx on November 03, 2018, 08:54:05 pm
@Akira1364:

Thank you.  Good things to have around.  :)
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 03, 2018, 09:16:09 pm
but I notice that the 64-bit Windows installer is still shipping with the ancient, buggy GDB 7.3?

They need some more testing, especially with regards to the fact that *all* gdb above 7.6 have a bug that leads to "record" shown as "class" (albeit with correct data). https://sourceware.org/bugzilla/show_bug.cgi?id=16016
Which leads to the IDE potentially trying to do incorrect typecasts...

There is also an unconfirmed report about 8.1 crashing in some cases, when showing the register window.
The basic answer seems to be, that all gdb versions are flawed. But each in a different way.

Can you report any way, that you know how to crash the old gdb?
I have an automatic testcase, that runs a lot of commands against that gdb. I run this under win10 1709 64bit, with no crash or hang.

Using Dwarf3 causes gdb to crash, but that is true for all gdb versions including 8.2.
Using dwarf3 with fpc trunk causes less crashes (but still some) that dwarf3 with 3.0.4 on the same version of gdb.

--------------------
About make: afaik this is taken from the fpc repository.
Though I remember that it had for some time had to be kept on an older version as the newer caused some error. Dont remember the details, there may be a bug report about it.... Not sure if this is still the case.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Akira1364 on November 03, 2018, 10:18:31 pm
Can you report any way, that you know how to crash the old gdb?
I have an automatic testcase, that runs a lot of commands against that gdb. I run this under win10 1709 64bit, with no crash or hang.

Using Dwarf3 causes gdb to crash, but that is true for all gdb versions including 8.2.
Using dwarf3 with fpc trunk causes less crashes (but still some) that dwarf3 with 3.0.4 on the same version of gdb.

I can't list any specific ways off the top of my head, I just know that in the past I found that attempts to use it would regularly lead to hard lock-ups at indeterminate times while debugging a variety of programs. Maybe I'll try to nail down a solid way to reproduce it.

As far as the Dwarf versions, well, yeah, but that's definitely an FPC issue, not a GDB issue. Recent GDBs work fine on Windows for all versions of Dwarf generated by various other languages I use. Honestly by now FPC should really be stably supporting Dwarf 4 or 5 on all platforms anyways, yet we're still at old Dwarf 2 (or 3 in some cases) as the default.

The Dwarf generation specifically on 64-bit Windows is particularly questionable in my opinion, also. For example, all methods still identify themselves to GDB with the "DW_CC_GNU_borland_fastcall_i386" calling convention identifier on Win64, despite the fact that it is obviously literally impossible for that calling convention to ever be used for anything on Win64...
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 03, 2018, 10:37:51 pm
As far as the Dwarf versions, well, yeah, but that's definitely an FPC issue, not a GDB issue
Yes and no. Fpc may well write something incorrect into the dwarf3 info. But gdb should give an error, not crash.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Akira1364 on November 04, 2018, 01:34:07 am
As far as the Dwarf versions, well, yeah, but that's definitely an FPC issue, not a GDB issue
Yes and no. Fpc may well write something incorrect into the dwarf3 info. But gdb should give an error, not crash.

In my experience newer GDBs don't crash with that kind of thing, they just stop (which was sort of my whole point).

It's not really a matter of "may well write something incorrect" as far as the dwarf information itself frankly, also: there's definitely something (likely multiple things) that are incorrect. As I mentioned above, right from the beginning FPC reports a nonsensical calling convention that has never existed at all (and could never exist) on anything other than 32-bit Windows specifically, so it's not exactly a stretch to imagine there's other problems.

Additionally, out of curiosity over time I've examined FPC executables built with dwarf debug info with various software (LLVM-DwarfDump, IDA Pro, e.t.c) and 100% of them report that the debug information is invalid in some way and in many cases that they cannot load it at all.

Lastly, with regards to the Make versioning thing you mentioned before: if there ever was a compatibility issue with FPC makefiles, it's been fixed for 5+ years at this point.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 04, 2018, 01:54:25 am
In my expeience newer GDBs don't crash with that kind of thing, they just stop (which was sort of my whole point).
Code: Pascal  [Select]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. var
  3.   S: String;
  4.   X: PAnsiString;
  5. begin
  6. S := 'abcde';
  7. X :=@s;
  8. // breakpoint
  9. end;
  10.  

Once X is assigned, evaluate it (hover with the mouse).

On my system gdb will just exit => crash
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Akira1364 on November 04, 2018, 02:07:23 am
That just immediately shows the debugger checkmark icon (as it does with no debug info at all) for me if I build it with Dwarf3. With Dwarf2 it works properly and displays the string value.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: BBasile on November 04, 2018, 10:39:24 am
Are you already aware of this bug ?

- Have Sparta designer setup.
- click to go to designer
- click to go back to code editor

At this point the caret is no visible anymore and you have to minimize maximize so that a show event get generated which has for effect to restore the caret.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 04, 2018, 10:45:22 am
That just immediately shows the debugger checkmark icon (as it does with no debug info at all) for me if I build it with Dwarf3. With Dwarf2 it works properly and displays the string value.
"debugger checkmark icon" You mean "breakpoint with green checkmark"?

You mean it does not stop at the breakpoint? Then add some statement, where it can stop.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 04, 2018, 10:47:11 am
Are you already aware of this bug ?

- Have Sparta designer setup.
- clock to go to designer
- click to get back to code editor

At this point the caret is no visible anymore and you have to minimize maximize so that a show event get generated which has for effect to restore the caret.
Don't know, is it in the bug tracker?
btw, it would be the WM_Focus, not the "Show" event. Or maybe also Form.Activate.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Thaddy on November 04, 2018, 10:50:56 am
Once X is assigned, evaluate it (hover with the mouse).
On my system gdb will just exit => crash
No crash here. GDB is 7.12 fpc = 3.3.1, Lazarus is 2.1.0 59416 OS Raspbian platform armhf
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: BBasile on November 04, 2018, 11:06:48 am
Are you already aware of this bug ?

- Have Sparta designer setup.
- clock to go to designer
- click to get back to code editor

At this point the caret is no visible anymore and you have to minimize maximize so that a show event get generated which has for effect to restore the caret.

Don't know, is it in the bug tracker?

I think that it wasn't
https://bugs.freepascal.org/view.php?id=34506
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 04, 2018, 01:04:09 pm
Tests on MAC OS
How to test the RC2 version when "lazarus-2.0.0RC2-i686-macosx.dmg" does not exist in the Sourceforge ?
Fixed
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Akira1364 on November 05, 2018, 12:56:02 am
That just immediately shows the debugger checkmark icon (as it does with no debug info at all) for me if I build it with Dwarf3. With Dwarf2 it works properly and displays the string value.
"debugger checkmark icon" You mean "breakpoint with green checkmark"?

You mean it does not stop at the breakpoint? Then add some statement, where it can stop.

I did, in the first place. It doesn't crash GDB. It just exits the program immediately.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 05, 2018, 10:11:07 am
I did, in the first place. It doesn't crash GDB. It just exits the program immediately.
When gdb exits (without being instructed to do so) then what is that, but a crash?
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: melwinek on November 06, 2018, 08:48:04 am
Unfortunately, not everything works.
The keyboard search in DBLookupComboBox still does not work.

https://bugs.freepascal.org/view.php?id=34298

Please check it out, this is a very important function.
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: ASBzone on November 06, 2018, 07:39:10 pm
Overall, my experience has been good, with a few observations:


Download and install the 2.0 RC2.
- On Windows you can install as a 2ndary install, that will not affect
  your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus


#1 -- I did this successfully with RC2, but when I went to install the cross-compiler for x64, it did it over my primary installation without question.  I just went to one of my other boxes and updated that box to RC2 outright.

#2 -- The Build Mode options indicate that they can be stored in the "environmentoptions.xml" as well as the .lpi files, but after the upgrade on box #2, I did not see the ones from the IDE at all. I had to recreate them.   And they weren't in the actual environmentoptions.xml file either, even on the installation on box #1 (where they show up properly in the GUI).

Everything seems to compile just fine, despite a few errors messages pertaining to deprecated options.  I will review these in more detail and report on them shortly, if necessary.

Overall, very good work thus far.





Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 06, 2018, 07:51:50 pm
Download and install the 2.0 RC2.
- On Windows you can install as a 2ndary install, that will not affect
  your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus


#1 -- I did this successfully with RC2, but when I went to install the cross-compiler for x64, it did it over my primary installation without question.  I just went to one of my other boxes and updated that box to RC2 outright.

#2 -- The Build Mode options indicate that they can be stored in the "environmentoptions.xml" as well as the .lpi files, but after the upgrade on box #2, I did not see the ones from the IDE at all. I had to recreate them.   And they weren't in the actual environmentoptions.xml file either, even on the installation on box #1 (where they show up properly in the GUI).

1) The cross compile installers, now (from RC3 onwards) will allow choosing the directory to install to.

2) A 2ndary install will not see the modes from the primary install, and vice versa. But if you had them on the 2nd box (where I believe you updated the primary install), then they should work. Search for BuildMatrix in the file / make sure they exist before the upgrade)
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: ASBzone on November 06, 2018, 10:56:53 pm
Thanks for the reply, Martin

1) The cross compile installers, now (from RC3 onwards) will allow choosing the directory to install to.

Awesome!

2) A 2ndary install will not see the modes from the primary install, and vice versa. But if you had them on the 2nd box (where I believe you updated the primary install), then they should work. Search for BuildMatrix in the file / make sure they exist before the upgrade)

Understood.  This observation was from the second box.  I will review the BuildMatrix.

The IDE suggests that these items are stored in environmentoptions.xml, but even on the system where they are to be found, it is not stored in that file. 

Thanks
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: Martin_fr on November 06, 2018, 11:15:04 pm
Well I have found them in that file.
Make sure you look in the right place. In the IDE go to the menu "View" > "Ide Internals" > "About IDE"
Search for the "primary config path". In that folder look at the environmentoptions.xml
Title: Re: Lazarus Release Canditate 2 for 2.0
Post by: ASBzone on November 07, 2018, 09:55:39 pm
Well I have found them in that file.
Make sure you look in the right place. In the IDE go to the menu "View" > "Ide Internals" > "About IDE"
Search for the "primary config path". In that folder look at the environmentoptions.xml

Sneaky, sneaky, sneaky!

Excellent.   The primary config was not where I expected at all.   That makes things MUCH easier.

Thanks again, Martin
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: BBasile on November 08, 2018, 08:31:11 am
PLease Martin consider taking this patch https://bugs.freepascal.org/view.php?id=34527, for 2.0 or next RC if any.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 08, 2018, 11:35:58 am
PLease Martin consider taking this patch https://bugs.freepascal.org/view.php?id=34527, for 2.0 or next RC if any.
Applied a different fix, but the patch pointed to the origin of the issue. (see commit msg)

Merge will be pending for a short while, to see if any side effects are reported (unlikely)

--
Edit: there was a reason for the "and IsVisible". Without it under windows the caret did not work, if "caret visible in unfocused editor" (aka persistent caret) was enabled, and more that one source-editor existed.
This problem on longer exists, because the unfocused carets now a painted in a different way (at least in the IDE, not sure if user apps could still be affected, depending on settings)
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Soner on November 10, 2018, 02:31:42 pm
Can someone test this example with upcoming lazarus version?

TDBLookupComboBox got a bug in lazarus 1.8.5/4 version, version 1.6.4 was okay and now svn-version is also okay.

Example project has information about bug, download it test it.

Edit:
It is sqlite3 database but this unimportant for the bug.

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jc99 on November 10, 2018, 03:42:49 pm
First I want to thank the team for the next release-candidate.
I'm really looking forward to this next release.
But (yes there is always a "but") there are some small problems for me:

1st.
I work in a RDP-environment, and under remote desktop Lazarus is getting VERY slow, in the form-designer when having a complex form (with frames ..) even more with anchor-docking & sparta.
When I click on an element then there is lot of flickering, shifting of elements until sometimes nothing happens. It seems there are lot of (IMHO unnecessary) redraws and position-recalculation when clicking on an element of a fully layouted form.
Closing the RDP-Session and working directly everything is much faster. 

2nd: I tried the pas2js,
I created a new project (for browser).
then I saved the project under a new path.
But when compiling there is a message: "(path)\pas2js.exe not found" in the path of the .lpr file. And no I didn't change any path in the environment it's still: $MakeExe(IDE,pas2js)

3rd:
I opend an example,
and saved the project under a new path e.G: (..)\laz-Proj\examples\FPC
then I changed the Unit-Output path to ..\..\$(TargetCPU)-$(TargetOS)\units and the executable path to: ..\..\$(TargetCPU)-$(TargetOS)\$Nameonly($project(Infofile))
when trying to compile the message asks whether to create (..)\bin\... instead of (..)\laz-Proj\bin\...

Could someone confirm the issues, then I make a bug-report in mantis ..
Thanks in advance.   
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 10, 2018, 04:17:09 pm
About the speed of the designer painting, have you tried in the options to set "reduced designer painting"?
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jc99 on November 10, 2018, 07:55:33 pm
About the speed of the designer painting, have you tried in the options to set "reduced designer painting"?
Wow, that helped a lot. Thanks.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jujibo on November 10, 2018, 08:30:40 pm
Lazarus fixes 2.0 compilation is broken. Rev 59507

FreePascal-3.0.5/lazarus-2.0.fixes/lazarus/ide/lazarus.pp(78,5) Fatal: (10022) Can't find unit LazDebuggerFpLldb used by Lazarus
Fatal: (1018) Compilation aborted

Working Copy Root Path: /home/xxxx/FreePascal-3.0.5/lazarus-2.0.fixes/lazarus
URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0
Relative URL: ^/branches/fixes_2_0
Raíz del repositorio: https://svn.freepascal.org/svn/lazarus
UUID del repositorio: 4005530d-fff6-0310-9dd1-cebe43e6787f
Revisión: 59507
Tipo de nodo: directorio
Agendado: normal
Autor del último cambio: mattias
Revisión del último cambio: 59505
Fecha de último cambio: 2018-11-10 13:05:38 +0100 (sáb 10 de nov de 2018)

Rev 59473 was fine.

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 10, 2018, 08:42:35 pm
Hi, what I found is:

- When running for the first time, it looks for 3.1.1 sources on my machine, even if the shipped fpc is 3.0.4
- Debugger is not propperly configured
- By default it targets 32 bit apps, even if the setup I've installed is 64 bit (the IDE is 32 bit, not 64 for some reason...)

Edit: I'm on Windows and I've downloaded the 64 bit version.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jc99 on November 10, 2018, 08:45:47 pm
Now some components suffer from the same problem.
e.G: StringGrid and DBGrid. 
Even when only selecting another cell (without scrolling, or changing), the formerly marked cell is drawn, the now selected cell is drawn but then the full grid is redrawn and in a slow manner.
DB Grid is sometimes redrawn twice without a plausible reason.
Both have DefaultDrawing and DoubleBuffered enabled.
without RDP the redrawing is still there but is much faster. (but still unnecessary)
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 10, 2018, 08:50:32 pm
The problems I reported before:

- I have fpcupdeluxe on path for some reason, maybe for some android related setup I had configured previously.

So the setup uses the fpc in path instead of the shipped one, maybe as well that causes the debugger problems..
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 10, 2018, 09:12:02 pm
The problems I reported before:

- I have fpcupdeluxe on path for some reason, maybe for some android related setup I had configured previously.

So the setup uses the fpc in path instead of the shipped one, maybe as well that causes the debugger problems..
Make sure it does not find your old config, if in doubt create a 2ndary install with a new conf dir.

Make sure you have no pre-installed fpc in your path.

--
I did a fresh install of the rc2 64bit win installer. The supplied lazarus.exe is 64bit (according to the windows task manager)
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 10, 2018, 09:19:48 pm
Lazarus fixes 2.0 compilation is broken. Rev 59507

FreePascal-3.0.5/lazarus-2.0.fixes/lazarus/ide/lazarus.pp(78,5) Fatal: (10022) Can't find unit LazDebuggerFpLldb used by Lazarus
Fatal: (1018) Compilation aborted

1) 59507 that revision is trunk, not fixes.

2) What OS? And how did you start the build? Which command to execute?

It builds fine for me on windows and linux.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 10, 2018, 09:25:04 pm
Both have DefaultDrawing and DoubleBuffered enabled.
without RDP the redrawing is still there but is much faster. (but still unnecessary)

IIRC there where changes to doublebuffering between 1.8 and 2.0.
But I don't know the details.

Best to open a thread of its own for this, or even bring it to the mailinglist.

-------------------
Afaik (but I may be utterly wrong) doublebuffering used to be (in 1.8 and before) kind of enforced, always painting the entire control to a buffer bitmap. Which meant on RDP the bitmap had to be sent always.

I am not sure what exactly the new behaviour is....
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jujibo on November 10, 2018, 09:37:23 pm
Lazarus fixes 2.0 compilation is broken. Rev 59507

FreePascal-3.0.5/lazarus-2.0.fixes/lazarus/ide/lazarus.pp(78,5) Fatal: (10022) Can't find unit LazDebuggerFpLldb used by Lazarus
Fatal: (1018) Compilation aborted

1) 59507 that revision is trunk, not fixes.

2) What OS? And how did you start the build? Which command to execute?

It builds fine for me on windows and linux.

59507 is what svn info reports.

Probably your last change broke it:
Autor del último cambio: mattias
Revisión del último cambio: 59505
Revision: 59505
Log: macos dmg: default debugger TFpLldbDebugger
Modified:
_U  branches/fixes_2_0/
U   branches/fixes_2_0/tools/install/macosx/environmentoptions.xml

It's linux 64 bits (Debian) using lazarus svn: URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0

I use my own scripts to automate building fpc and lazarus (the desired version).  It fails simply executing: make clean bigide
As I said, it was working fine before latest commits.

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 10, 2018, 09:49:28 pm
The problems I reported before:

- I have fpcupdeluxe on path for some reason, maybe for some android related setup I had configured previously.

So the setup uses the fpc in path instead of the shipped one, maybe as well that causes the debugger problems..
Make sure it does not find your old config, if in doubt create a 2ndary install with a new conf dir.

Make sure you have no pre-installed fpc in your path.

--
I did a fresh install of the rc2 64bit win installer. The supplied lazarus.exe is 64bit (according to the windows task manager)

Yes. I rebuilt the ide installing a package then seems that it changed to 32 bit.

I removed fpc from path and now is 64 bit again.

Thanks for helping.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 10, 2018, 10:27:30 pm
Lazarus fixes 2.0 compilation is broken. Rev 59507

FreePascal-3.0.5/lazarus-2.0.fixes/lazarus/ide/lazarus.pp(78,5) Fatal: (10022) Can't find unit LazDebuggerFpLldb used by Lazarus
Fatal: (1018) Compilation aborted

1) 59507 that revision is trunk, not fixes.

2) What OS? And how did you start the build? Which command to execute?

It builds fine for me on windows and linux.

59507 is what svn info reports.

Probably your last change broke it:
Autor del último cambio: mattias
Revisión del último cambio: 59505
Revision: 59505
Log: macos dmg: default debugger TFpLldbDebugger
Modified:
_U  branches/fixes_2_0/
U   branches/fixes_2_0/tools/install/macosx/environmentoptions.xml

It's linux 64 bits (Debian) using lazarus svn: URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0

I use my own scripts to automate building fpc and lazarus (the desired version).  It fails simply executing: make clean bigide
As I said, it was working fine before latest commits.

First of all, sorry I tested with trunk.

I had a look at fixes_2.0.
It indeed has the problem, because some merges are yet missing. The problem is in 59503.
It will work again, when the pending merges from http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch#Submitted_by_developer_.2F_committer.2C_tested.2C_waiting_to_be_merged have been applied.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jujibo on November 11, 2018, 10:02:02 am

First of all, sorry I tested with trunk.

I had a look at fixes_2.0.
It indeed has the problem, because some merges are yet missing. The problem is in 59503.
It will work again, when the pending merges from http://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch#Submitted_by_developer_.2F_committer.2C_tested.2C_waiting_to_be_merged have been applied.

Thank you!
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 11, 2018, 07:03:18 pm
There is no beta cocoa download? with beta debugger?
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 11, 2018, 07:38:52 pm
Afaik you can use the carbon download, and build your app for cocoa. (Or rebuild the IDE)

The new debugger works for carbon and cocoa.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 11, 2018, 09:22:49 pm
Thanks, I can compile cocoa 64, now I need the debugger and nothing more =)
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on November 11, 2018, 09:33:37 pm
What exactly is the problem with the debugger?

Please see the thread: http://forum.lazarus-ide.org/index.php/topic,42869.0.html and ask there.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 11, 2018, 09:52:29 pm
It says 'the debugger ran into a problem' save your work... and the like (sorry I have it in spanish).

Thanks I will check that thread.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: laguna on November 12, 2018, 12:38:37 pm
In this version of Lazarus on Mac OSX 10.14, compiled with ppc386 and LCL cocoa, I encountered a problem in the scrolling-bar.
In particular, in the code editing window, and in the form property.

When you click on it, the screen is not updated.

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: laguna on November 13, 2018, 07:59:00 am
Add image to show error

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: melwinek on November 13, 2018, 08:07:39 pm
Can someone confirm this error ?: https://bugs.freepascal.org/view.php?id=34298 because I wonder if it only bothers me.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: tkamphuis on November 16, 2018, 12:24:15 pm
I Have a problem when I try to define a BeforeOpen or a BeforeRefresh on a  Zeos Query component.
The error = ZAbstractDataset.pas(181,59) Error: Identifier not found: TWideDataSet

The problem is started in Lazarus 2.0 rev 2. Rev 1 was ok, no problems there.

I'm using ZeosLib 7.3 rev 5277
Windows 10 version 1809
Lazarus 2.0 rev 2 64 bits

Greetings,

Theo
Title: RC2: Problems installing 2 TMS FNC packages on MacOS that install fine in Win
Post by: Dr_Bob_MILLER on November 16, 2018, 06:10:32 pm
I have installed Lazarus RC2 on multiple Windows platforms (Win7 & Win10, including 2 Virtual Machines on a MacBook Pro High Sierra).  I have successfully installed TMS Framework Neutral Component (FNC) Studio on all of these, but I am only having problems on the native MacOS installation of Lazarus RC2.

FNC Studio contains 5 package sets: 2 *.lpk files for each set: a design time and a runtime package.

All of these install fine in Windows installations of Lazarus RC2, but 2 of these packages fail to install in the native MacOS version of RC2. 

(I do not have a working version of Lazarus 1.8.4 on MacOS, 'cuz I just couldn't get the gdb debugger to work.  RC2 is a HUGE improvement!)

Here is the error message I get when trying to install the Dashboard package:
Quote
LCLTMSFNCWPReg.pas(44,0) Error: Can't open resource file "/Developer/TMS FNC Dashboard Pack/TMSFNCDashBoardResources.dcr"

I realize that you might tell me that this is a TMS problem, but because of these facts, I think that this is really a Lazarus problem:

I have attached a PDF that shows all the Lazarus messages from the failed TMS FNC Dashboard package install attempt.

Here is the error message I get when trying to install the TMS FNC Blox package:
Quote
Build IDE: Exit code 512, Errors: 1
Fatal: Cannot find LCLTMSFNCBloxShapesFlowChart used by LCLTMSFNCBloxControl, incompatible ppu=/Developer/TMS FNC Blox/lib/i386-darwin/LCLTMSFNCBloxShapesFlowchart.ppu, package LCLTMSFNCBloxPkg

I have installed a PDF of all the messages from the failed TMS FNC Blox package install attempt as well.

I will submit this support request to TMS as well, since they seem to be working with you folks.

How can I work with you and TMS to solve these problems?

Best regards,

Dr. Bob Miller
Trace Systems Inc.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: laguna on November 19, 2018, 08:08:10 am
O.S: MAC 10.14
Lazarus 2.0 rc last version
LCL cocoa

Not correct select object in ide form , show image
The Textbox not show point  mouse for change size or select to move object.

Not select label and mouse point not select multi-object




Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: chrisv5 on November 21, 2018, 02:54:08 pm
I have filed bug https://bugs.freepascal.org/view.php?id=34582

Honestly, this bug has "always" existed, but now would be a good time to fix it, with minimal effort.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: lainz on November 22, 2018, 08:42:34 pm
I can't install packages with OPM, even if running lazarus as administrator. Windows 10 x64.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: mischi on November 22, 2018, 10:38:00 pm
Please note the bug I filed on the bug tracker for macOS (https://bugs.freepascal.org/view.php?id=34588). It is simply a uppercase/lowercase issue with the framework S(s)ecurity in the file components/fpdebug/fpdbgdarwinclasses.pas.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: chrisv5 on November 23, 2018, 10:46:47 pm
I have filed bug https://bugs.freepascal.org/view.php?id=34582

Honestly, this bug has "always" existed, but now would be a good time to fix it, with minimal effort.

The bug has kindly being fixed by Mattias, thank you!
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: melwinek on November 26, 2018, 08:19:37 am
Do not forget about this error:
https://bugs.freepascal.org/view.php?id=34298
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: laguna on November 27, 2018, 11:15:55 am
The errors in the lazarus IDE, 'cocoa' version, relative to the scrolling of the window containing the properties and events, have not yet been determined.
Also in 'DARK' mode this window is illegible.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: mischi on November 27, 2018, 02:38:15 pm
Please note the bug I filed on the bug tracker for macOS (https://bugs.freepascal.org/view.php?id=34588). It is simply a uppercase/lowercase issue with the framework S(s)ecurity in the file components/fpdebug/fpdbgdarwinclasses.pas.
Fixed by Matthias. Thanks.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: ps on November 28, 2018, 11:41:46 pm
On MacOS can't build IDE.

Fresh install on MacOS High Sierra 10.13.2 -> Tools -> "Build Normal IDE" ends with "Error lazarus.pp(57,13) Fatal: Cannot find Interfaces used by Lazarus, incompatible ppu=/ ..... / interfaces.ppu, package LCL". Changing options to clean all or any other  (carbon,cocoa, 32,64bit...) don't help.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: avra on November 29, 2018, 06:47:31 pm
Just checked trunk laz with trunk fpc32 on Win10, and in my docked IDE there seams to be a bug. When I right click on a tab in Source Editor and when I choose Close Page - tab page is not closed and instead I get a menu (with Locked, Undock, Header position...) just like when I right click on top bar of a docked IDE form. Ctrl+F4 works, and File/ClosePage menu also works as it should. Can someone else confirm this?
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: VTwin on December 01, 2018, 09:40:37 pm
Sorry for this ignorant question, but I am relatively new to svn and have only a rudimentary understanding. I wish to use the newest appropriate version of Lazarus to test the macOS cocoa widgets and lldb.

I have been building the latest trunk of Lazarus, which is now at 2.1.0 revision 59708. There are some strange issues with the z order of forms, and I reported some bugs that I could isolate.

It seems, however, that perhaps I should be using the latest fixes for 2.0.0 instead as this may be more stable. Is that the case? If so, I'd appreciate being pointed to some instructions for what I should be doing instead of my current:

Code: Pascal  [Select]
  1. svn update
  2. make clean all LCL_PLATFORM=cocoa CPU_TARGET=x86_64
  3. open lazarus.app --args "--pcp=~/.laz-trunk"

Thanks,
VTwin
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: VTwin on December 02, 2018, 05:22:28 pm
Sorry for this ignorant question...

Nevermind (RTFM)...  :-[

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Fixes_branch_of_latest_Lazarus_release
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dbannon on December 03, 2018, 08:34:46 am
fixes_2_0 as of 3rd December, Cocoa not building.

cocoaprinters.inc(106,36) Error: identifier idents no member "lclCGContext"

106 of cocoaprinters.inc appears in this function -
Code: Pascal  [Select]
  1. procedure TCocoaPrinterView.drawRect(dirtyRect: NSRect);
  2. var
  3.   Context: NSGraphicsContext;
  4. begin
  5.   Context := NSGraphicsContext.currentContext;
  6.  
  7.   CGContextDrawPDFDocument(context.lclCGContext, CGRect(dirtyRect), doc, pageNum);
  8. end;
   

I don't really blame it, I cannot find any mention of lclCGContext under components either ! Is anyone else aware of this issue or can confirm its an issue ?

Davo

     

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: mischi on December 03, 2018, 01:02:03 pm
Maybe my report was not obvious enough, but I reported this bug on the bug tracker.

https://bugs.freepascal.org/view.php?id=34623

Greetings - Michael.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dbannon on December 03, 2018, 01:35:10 pm
and thats an excellent report too Michael, its just I could not find it.

Sigh, I have to admit it, I dont know how to search the bug tracker !

Anyone ?

Davo
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Xor-el on December 04, 2018, 01:17:56 pm
fixes_2_0 as of 3rd December, Cocoa not building.

cocoaprinters.inc(106,36) Error: identifier idents no member "lclCGContext"

106 of cocoaprinters.inc appears in this function -
Code: Pascal  [Select]
  1. procedure TCocoaPrinterView.drawRect(dirtyRect: NSRect);
  2. var
  3.   Context: NSGraphicsContext;
  4. begin
  5.   Context := NSGraphicsContext.currentContext;
  6.  
  7.   CGContextDrawPDFDocument(context.lclCGContext, CGRect(dirtyRect), doc, pageNum);
  8. end;
   

I don't really blame it, I cannot find any mention of lclCGContext under components either ! Is anyone else aware of this issue or can confirm its an issue ?

Davo

   

This should have been fixed in revision 59723
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: mischi on December 04, 2018, 04:42:47 pm
Fix confirmed.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: VTwin on December 04, 2018, 08:05:09 pm
I noted a cocoa bug (listbox) in 2.0.0RC2 r95727:

http://forum.lazarus-ide.org/index.php/topic,43415.msg303900/topicseen.html

It is fixed in 2.1 (although latest svn trunk does not compile on mac). So should I be reporting this as a requested fix for 2.0? Will cocoa fixes be applied before 2.0 is released?
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: daveinhull on December 05, 2018, 02:21:23 am
Hi,

I've just installed 2.0C2 but when I try to build Lazarus I get the following error

apputils.pp(251,36) Error: Identifier not found "SNoMDIForm"

in the following code:

Code: Pascal  [Select]
  1. procedure SaveMDIChildren(MainForm: TForm; IniFile: TCustomIniFile);
  2. {$ifdef nevertrue}
  3. var
  4.   I: Integer;
  5. {$endif}
  6. begin
  7.   if (MainForm = nil) or (MainForm.FormStyle <> fsMDIForm) then
  8.     raise EInvalidOperation.Create(SNoMDIForm);
  9.   IniFile.EraseSection( siMDIChild);
  10. //!! MVC: Needs fixing !
  11. {$ifdef nevertrue}
  12.   if MainForm.MDIChildCount > 0 then begin
  13.     IniWriteInteger(IniFile, siMDIChild, siListCount,
  14.       MainForm.MDIChildCount);
  15.     for I := 0 to MainForm.MDIChildCount - 1 do
  16.       IniWriteString(IniFile, siMDIChild, Format(siItem, [I]),
  17.         MainForm.MDIChildren[I].ClassName);
  18.   end;
  19. {$endif}
  20. end;

But if I build Lazarus on my desktop machine it works ok, any thoughts as to what might be wrong?

Thanks
Dave
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dbannon on December 05, 2018, 12:56:27 pm
....
This should have been fixed in revision 59723
Indeed it is.
Thank you Xor-el.
Davo
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jujibo on December 11, 2018, 10:34:22 am
Hi!

There is a bug introduced in r59700 (svn). Rev 59699 is ok.

Under windows all is fine but under linux all the pages are printed in one page (text over text), also affects to the number of copies (only print one copy).

Tested Linux Mint 19 and Debian 9 Gtk2 and fpc 3.0.5 and Lazreport. Printing to PDF printer and true printer.

Thanks
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: JuhaManninen on December 11, 2018, 12:46:36 pm
There is a bug introduced in r59700 (svn). Rev 59699 is ok.
r59700 merges r59492 from trunk. The commit is by Jesus with message :
 "Printers: Support for Cocoa printing, updated examples."

Please report a regression bug in the bug tracker. It should be fixed before release.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: jujibo on December 11, 2018, 01:01:17 pm
There is a bug introduced in r59700 (svn). Rev 59699 is ok.
r59700 merges r59492 from trunk. The commit is by Jesus with message :
 "Printers: Support for Cocoa printing, updated examples."

Please report a regression bug in the bug tracker. It should be fixed before release.

I emailed Jesús about it before posting here. I guess he knows it but still no response.

Filled a bug report: https://bugs.freepascal.org/view.php?id=34680

Thanks
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: JuhaManninen on December 11, 2018, 01:13:16 pm
I emailed Jesús about it before posting here. I guess he knows it but still no response.
Filled a bug report: https://bugs.freepascal.org/view.php?id=34680
Thanks. A bug report is the way to go.
I added there the trunk revision which is relevant information. All changes happen in trunk, some of them are merged to fixes branch.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: VTwin on December 11, 2018, 06:35:36 pm
I see the new support for the MouseWheel:

http://wiki.freepascal.org/Lazarus_2.0.0_release_notes

namely OnMouseWheelHorz, OnMouseWheelLeft, OnMouseWheelRight added to TControl.

These events show up in the ide (Cocoa trunk) as TForm events, but not, as I can see, for other controls, for example TPaintBox. As TPaintBox is a TControl, shouldn't they?

Also, it would be nice to have an event that reported both x and y. As I use them to pan an image, that would cut the number of redraws by half. Not a complaint, just a suggestion. I am very pleased with the new events, thanks!

EDIT: A work around is not difficult:

http://forum.lazarus-ide.org/index.php/topic,12939.15.html

 

Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: JuhaManninen on December 11, 2018, 07:47:38 pm
These events show up in the ide (Cocoa trunk) as TForm events, but not, as I can see, for other controls, for example TPaintBox. As TPaintBox is a TControl, shouldn't they?
I don't know the details of this issue but I guess it will not be changed before 2.0 release.
Please start a new thread in mailing list or in this forum to discuss the issue.
Patches are also welcome through the bug tracker.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Alextp on December 11, 2018, 08:17:33 pm
I will prepare the patch to make MouseWheelHorz event for most of LCL ctrls.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: VTwin on December 11, 2018, 08:49:02 pm
I will prepare the patch to make MouseWheelHorz event for most of LCL ctrls.

Excellent!
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dubst3pp4 on December 12, 2018, 09:19:14 am
The RC2 packages for AMD64 Debian are still not available:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0RC2/
The package listed here is still the RC1. Beside that, it depends on fpc instead of fpc-laz, so it can't be installed.
Can please someone have a look why the RC1 package is listed here?

Thanks in advance! :-)
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Alextp on December 12, 2018, 09:55:14 am
>Excellent!

https://bugs.freepascal.org/view.php?id=34683

@Juha
Pls consider to apply first [safe one] patch from https://bugs.freepascal.org/view.php?id=34632
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on December 12, 2018, 10:51:33 am
The RC2 packages for AMD64 Debian are still not available:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0RC2/
The package listed here is still the RC1. Beside that, it depends on fpc instead of fpc-laz, so it can't be installed.
Can please someone have a look why the RC1 package is listed here?

Sorry about that. Not sure what happened there.
Anyway we are planning on RC3 in the next week. So probably not going to rebuild RC2.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dubst3pp4 on December 12, 2018, 11:02:35 am
Sorry about that. Not sure what happened there.
Anyway we are planning on RC3 in the next week. So probably not going to rebuild RC2.
Okay, thanks Martin, good to know! So I will be patient!
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: JuhaManninen on December 12, 2018, 12:31:32 pm
https://bugs.freepascal.org/view.php?id=34683
I applied the patch. Thanks.

Quote
@Juha
Pls consider to apply first [safe one] patch from https://bugs.freepascal.org/view.php?id=34632
As wp noted, a square cross looks strange inside the rectangle. IMO things would get worse by the change.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: JuhaManninen on December 12, 2018, 12:42:29 pm
Okay, thanks Martin, good to know! So I will be patient!
No need to be patient. You can easily get the sources of fixes 2.0 branch through SVN.
 http://wiki.lazarus.freepascal.org/Getting_Lazarus#Fixes_branch_of_latest_Lazarus_release
Then first time build it with "make", later you can build from Lazarus itself (Tools menu).
This is extremely easy because Lazarus does not need to be installed. Just start it with "./lazarus".
It is the best way to get the latest most stable version also after official releases. The fixes branch will always have the latest bug fixes.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Martin_fr on December 12, 2018, 12:59:02 pm
Sorry about that. Not sure what happened there.
Anyway we are planning on RC3 in the next week. So probably not going to rebuild RC2.
Okay, thanks Martin, good to know! So I will be patient!
Just got feedback from the person in charge. RC2 is in place now.
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: Alextp on December 12, 2018, 06:58:23 pm
Quote
>As wp noted, a square cross looks strange inside the rectangle. IMO things would get worse by the change.
Juha,
issue has 2 patches from me.
1st is safe: is only adds X for Listbox.
2nd is not safe and wp wrote about it.
Pls apply 1st one
Title: Re: Lazarus Release Candidate 2 for 2.0
Post by: dubst3pp4 on December 13, 2018, 11:07:25 am
Just got feedback from the person in charge. RC2 is in place now.
Oh wow, this was fast! Thanks Martin! :-)