#1 2022-07-09 10:31:31

mdoyle
Member
Registered: 2020-11-29
Posts: 25

Variant Error running mORMot tests on Debian 11

Just updated from Debian 10 Buster to Debian11 Bullseye. Some variant tests fail using the underscore syntax.

Example TTestCoreProcess._TDocVariant => CheckDoc line 4229 Check(variant(Doc)._(0) = 'John');
Error message TDocVariant.DispInvoke: invalid (1) call
mormot.core.variants.pas lines 3430 and 3533

Last edited by mdoyle (2022-07-09 10:33:44)

Offline

#2 2022-07-09 21:13:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,296
Website

Re: Variant Error running mORMot tests on Debian 11

I use Debian 11 as my main system since months so I doubt this is the reason of your problem.

It is more likely a FPC version issue.

Offline

#3 2022-07-10 09:58:33

mdoyle
Member
Registered: 2020-11-29
Posts: 25

Re: Variant Error running mORMot tests on Debian 11

Interesting that it happened right after the os upgrade. I reinstalled FPC and everything works fine. Just in case somebody else runs into the same issue.
Thanks a lot and sorry for the confusion.

Offline

#4 2022-07-10 20:14:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,296
Website

Re: Variant Error running mORMot tests on Debian 11

Perhaps during the upgrade, your FPC was backgraded to an older version...

I always use fpcupdeluxe, so I don't have this issue.

Offline

Board footer

Powered by FluxBB