jnthn / p6-ssh-libssh

Asynchronous binding for libssh; client-only and limited functionality so far.
8 stars 8 forks source link

"Cannot unbox" error #19

Open sdondley opened 2 years ago

sdondley commented 2 years ago

I copied the example at https://github.com/jnthn/p6-ssh-libssh/blob/master/examples/scp-upload.p6

When calling the script with arguments like 1.1.1.1, some_user, some_file, remoted_dir, I get the following error on both debian and macos:

An operation first awaited: in sub MAIN at libssh.raku line 7 in block at libssh.raku line 4

Died with the exception: Cannot unbox a type object (Int) to an int. in method ASSIGN-POS at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/core/sources/55B2CD87CEFA916594753E7DDFEF9FACCA7F803E (NativeCall::Types) line 115 in method new at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/core/sources/55B2CD87CEFA916594753E7DDFEF9FACCA7F803E (NativeCall::Types) line 258 in method new at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/core/sources/55B2CD87CEFA916594753E7DDFEF9FACCA7F803E (NativeCall::Types) line 253 in block at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/site/sources/EED32749D7C06518A0A296D35851B0E5E6ECDDC0 (SSH::LibSSH) line 242 in block at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/site/sources/EED32749D7C06518A0A296D35851B0E5E6ECDDC0 (SSH::LibSSH) line 90 in block at /root/.rakubrew/versions/moar-2022.06/install/share/perl6/site/sources/EED32749D7C06518A0A296D35851B0E5E6ECDDC0 (SSH::LibSSH) line 72