FCO / Red

A WiP ORM for Raku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Totally broken on HEAD

jonathanstowe opened this issue · comments

This is by way of a headsup as it's unlikely a problem caused by Red, but the tests totally fail with:

[jonathan@menenius hesabu]$ raku -v
Welcome to Rakudo™ v2021.12-187-ge4a4a92f1.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2021.12-113-gef270d7f5.
===> Testing: Red:ver<0.1.54>:auth<Fernando Correa de Oliveira>:api<2>
P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method pull-one at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq/Iterator.pm6 (Red::ResultSeq::Iterator) line 33
  in method head at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 280
  in method find at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 681
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 563
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block <unit> at t/05-ticket.t line 18

P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 565
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block <unit> at t/13-roles.t line 75

    # Failed test at t/20-in-sql.t line 134
    #     Unknown Error!!!
    #     Please, copy this backtrace and open an issue on https://github.com/FCO/Red/issues/new
    #     Driver: Red::Driver::SQLite
    #     Original error: X::DBDish::DBError.new(driver-name => "DBDish::SQLite", native-message => "no such column: b_c.d", code => 1, why => "Error")
    # 
    # Original error:
    # DBDish::SQLite: Error: no such column: b_c.d (1)
    # Failed test at t/20-in-sql.t line 138
    # expected: 'a b c d'
    #      got: 'd'
    # You failed 2 tests of 5
# Failed test ' \#521'
# at t/20-in-sql.t line 90
# You failed 1 test of 26
P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method pull-one at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq/Iterator.pm6 (Red::ResultSeq::Iterator) line 33
  in method head at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 280
  in method find at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 681
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 563
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block  at t/22-red-do.t line 142
  in sub run-red-do at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 84
  in sub red-do at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 115
  in sub red-do at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 91
  in code  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 101
  in sub red-do at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 99
  in sub red-do at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Do.pm6 (Red::Do) line 91
  in block <unit> at t/22-red-do.t line 142

P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method new-with-id at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 635
  in block <unit> at t/24-metamodel-model.t line 110

P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method pull-one at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq/Iterator.pm6 (Red::ResultSeq::Iterator) line 33
  in method head at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 280
  in method find at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 681
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 563
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block <unit> at t/27-classify.t line 17

P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method pull-one at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq/Iterator.pm6 (Red::ResultSeq::Iterator) line 33
  in method head at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 280
  in method find at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 681
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 563
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block <unit> at t/28-LPW-2019.t line 41

P6opaque: get_boxed_ref could not unbox for the representation 'P6bigint' of type Scalar
  in method new at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Model.pm6 (Red::Model) line 25
  in method pull-one at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq/Iterator.pm6 (Red::ResultSeq::Iterator) line 33
  in method head at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 280
  in method find at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 681
  in block  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 563
  in method create at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/MetamodelX/Red/Model.pm6 (MetamodelX::Red::Model) line 554
  in block <unit> at t/29-events.t line 85

# You planned 21 tests, but ran 20
    Unknown Error!!!
    Please, copy this backtrace and open an issue on https://github.com/FCO/Red/issues/new
    Driver: Red::Driver::SQLite
    Original error: X::DBDish::DBError.new(driver-name => "DBDish::SQLite", native-message => "no such column: ble_bla.num1", code => 1, why => "Error")

Original error:
DBDish::SQLite: Error: no such column: ble_bla.num1 (1)
  in method handle-error at /home/jonathan/.raku/sources/9649AE51DBA2ED07FF0A6B99F0A2C5DDBAD5E7E0 (DBDish::SQLite::Connection) line 17
  in method prepare at /home/jonathan/.raku/sources/9649AE51DBA2ED07FF0A6B99F0A2C5DDBAD5E7E0 (DBDish::SQLite::Connection) line 26
  in method prepare at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Driver/SQLite.pm6 (Red::Driver::SQLite) line 59
  in code  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Driver.pm6 (Red::Driver) line 86
  in code  at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Driver.pm6 (Red::Driver) line 85
  in method prepare at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Driver.pm6 (Red::Driver) line 82
  in method execute at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/Driver.pm6 (Red::Driver) line 116
  in method save at /home/jonathan/.zef/tmp/Red-0.1.54.tar.gz/Red-0.1.54/lib/Red/ResultSeq.pm6 (Red::ResultSeq) line 344
  in block <unit> at t/31-update.t line 46

...

It's basically all the tests.

Posted on rakudo/rakudo#4748

Okay that was just a passing commit on rakudo , seems fine with the absolute latest.