Re: [Lazarus] IDE trunk cannot build on fpc 3.0.2

2020-02-25 Thread Juha Manninen via lazarus
On Tue, Feb 25, 2020 at 8:05 PM AlexeyT via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2
>

The line is:
  TPackagePackageArray = specialize TObjectArray;

I turned TObjectArray into a generics container to reduce typecasts.
It uses a very basic syntax, similar to what unit fgl has used for ages.
  generic TObjectArray = class

Does "TObjectArray$2" mean the compiler does not find the second parameter?
Why wouldn't it? Both parameters are the same "TLazPackageID".

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE trunk cannot build on fpc 3.0.2

2020-02-25 Thread AlexeyT via lazarus

macOS 10.8, FPC 3.0.2 2017/02/12 for i386

pkgmanager.pas(77,78) Error (5000) Id not found TObjectArray$2

PS-- I use fpc 3.0.2 because I had problems to compile CudaText with 
3.0.4 on macOS in 2019


--
Regards,
Alexey

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread Juha Manninen via lazarus
On Tue, Feb 25, 2020 at 1:35 PM John Landmesser via lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> Use yay as user instead of pamac and most trouble with pamac are gone :-)
I have used yay _once_ when installing drivers for a Brother printer by
following written instructions.
Anyway, good to know.

> But i have to test this, or do i stay with 3.1.1?
FPC 3.1.1 (trunk) seems to work well. It may have experimental code for a
new language feature or something but if you don't use that feature it
should be OK.
Sometimes there are hiccups, broken revisions, but usually they are fixed
quickly. If you bump into a bug, you can either wait for a fix or revert to
an earlier revision.
It seems FPC trunk is used a lot (because there are no recent releases) and
thus tested a lot, too.

Actually the same applies to development branches of many FOSS projects,
including Lazarus.
Its developers use it for obvious reasons and spot broken revisions quickly.
Many other people seem to use it as well.
It is not recommended for production use but if you can afford few hiccups
occationally, it is very usable.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread Andrea Mauri via lazarus
Thanks, I can compile Lazarus now.

On Tue, 25 Feb 2020 at 11:07, Juha Manninen via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus
>  wrote:
> > I get the same error on MacOS
>
> There is a fix/workaround in r62671, commit by Ondrej this morning.
>
> Juha
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread John Landmesser via lazarus

Am 25.02.20 um 10:23 schrieb Juha Manninen via lazarus:

I also run Manjaro Linux but I didn't know that AUR has FPC trunk.
I would download it if I didn't build it already myself.


My experience:

pamac couldn't  build the svn versions from AUR, but

yay -S fpc-svn  fpc-src-svn

did it after "heavy working"

Use yay as user instead of pamac and most trouble with pamac are gone :-)

... and this issue is fixed right now!!

But i have to test this, or do i stay with 3.1.1?

Lots of fun for a pensioner!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread John Landmesser via lazarus

Issue is fixed just now, didn't test ist but do a svn update again!

2020-02-25 07:37Ondrej Pokorny
  Resolution
open => fixed


Am 25.02.20 um 10:53 schrieb Andrea Mauri via lazarus:

I get the same error on MacOS

On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus
mailto:lazarus@lists.lazarus-ide.org>>
wrote:

Hi,

Info:

Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2

error compiling the IDE:


Lazarus-Quelltext aufräumen: Erfolg
Kompiliere Package FCL 1.0.1: Erfolg
Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2
laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated:
"Use NodeFilter instead."
laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated:
"Use NodeFilter instead."
Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1
screen.inc(438,26) Error: Call by var for arg no. 1 has to match
exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected
"UnicodeString"
Kompiliere Package CodeTools 1.0.1: Abgebrochen


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus




-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread Juha Manninen via lazarus
On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus
 wrote:
> I get the same error on MacOS

There is a fix/workaround in r62671, commit by Ondrej this morning.

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread Andrea Mauri via lazarus
I get the same error on MacOS

On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus <
lazarus@lists.lazarus-ide.org> wrote:

> Hi,
>
> Info:
>
> Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2
>
> error compiling the IDE:
>
> Lazarus-Quelltext aufräumen: Erfolg
> Kompiliere Package FCL 1.0.1: Erfolg
> Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2
> laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use
> NodeFilter instead."
> laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use
> NodeFilter instead."
> Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1
> screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly:
> Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString"
> Kompiliere Package CodeTools 1.0.1: Abgebrochen
>
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] svn update can't be compiled

2020-02-25 Thread Juha Manninen via lazarus
On Mon, Feb 24, 2020 at 10:22 PM John Landmesser via lazarus
 wrote:
> For Manjaro (ArchLinux) i installed fpc-svn and fpc-src-svn from AUR
> with yay and now i have a running:
>
> Lazarus 2.1.0 r62669 FPC 3.3.1 x86_64-linux-gtk2

I also run Manjaro Linux but I didn't know that AUR has FPC trunk.
I would download it if I didn't build it already myself.
Manjaro's official repo always has the latest versions of everything.
It is super nice compared to repos of Debian + its derivatives for
example.
However it doesn't help with FPC because they release so seldom.
Ancient FPC 3.0.4 is still the latest.

This is almost unbearable. Issue #30306 was an important compatibility
feature/fix. It got fixed some 3 and half years ago. When FPC 3.2
finally comes out, it may well be 4 years. Insanity! More and more
people must build FPC from sources.
It hogs resources also from FPC devels. They have an endless merge
exercise. Bug fixes from past years must be dug up and merged to 3.2
branch. Still the release will be outdated already when it finally
comes out, because trunk has collected so much new stuff during the
years.

Other FOSS projects have faced the same problem in past. They
typically fixed it by adjusting their release policy. Release early,
release
often. A principle of "release when it is ready" is doomed. No
substantial SW is "ready" ever. There will always be things to fix and
improve.

I hope there will be more forks of FPC project which concentrate on
release schedule.
Maybe one of them could replace FPC in distro repos. Maybe Lazarus can
switch to use it. Don't know ...

Juha
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus