Skip to content

Instantly share code, notes, and snippets.

@Xliff
Created October 24, 2022 12:33
Show Gist options
  • Save Xliff/73dcd7a9966b6878757db9051ffb0ff1 to your computer and use it in GitHub Desktop.
Save Xliff/73dcd7a9966b6878757db9051ffb0ff1 to your computer and use it in GitHub Desktop.
will select is leaving me without any choices

Getting this:

Use of uninitialized value $!sub of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
  in block  at /home/cbwood/Projects/cro-webapp/lib/Cro/WebApp/Template/Repository.rakumod (Cro::WebApp::Template::Repository) line 38
              
Exception:
    'Too many positionals passed; expected 0 or 1 arguments but got 2'
...occurred in the following compiled template:
@Xliff
Copy link
Author

Xliff commented Oct 24, 2022

Also failing in the test suite:

not ok 1 - Basic form produces correct HTML description
# Failed test 'Basic form produces correct HTML description'
# at t/form-render.rakutest line 28
# expected: ${:controls($[{:label("Email"), :name("email"), :required(Bool::True), :type("text")}, {:label("Password"), :name("password"), :required(Bool::True), :type("password")}, {:label("Remember me"), :name("remember-me"), :required(Bool::False), :type("checkbox")}]), :was-validated(Bool::False)}
#      got: ${:controls($[{:label("Email"), :name("email"), :read-only(Any), :required(Bool::True), :type("text")}, {:label("Password"), :name("password"), :read-only(Bool), :required(Bool::True), :type("password")}, {:label("Remember me"), :name("remember-me"), :read-only(Any), :required(Bool::False), :type("checkbox")}]), :was-validated(Bool::False)}
Too many positionals passed; expected 0 or 1 arguments but got 2
  in block  at t/form-render.rakutest line 42
  in block <unit> at t/form-render.rakutest line 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment