crystallabs/crysterm

Error while building example

Closed this issue · 2 comments

I'm on:

$ crystal -v
Crystal 1.4.0 [ef05e26d6] (2022-04-06)

LLVM: 10.0.0
Default target: x86_64-unknown-linux-gnu

$ uname -a
Linux ThinkPad 4.4.0-22000-Microsoft #1-Microsoft Fri Jun 04 16:28:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux

That's Windows 11 WSL 1

I did:

$ git clone https://github.com/crystallabs/crysterm
$ cd crysterm
$ shards --ignore-crystal-version
$ crystal examples/hello.cr

I got:

$ crystal examples/hello.cr
Showing last frame. Use --error-trace for full trace.

In lib/tput/src/tput/coordinates.cr:9:27

 9 | Term::Screen.size_from_ioctl ||
                  ^--------------
Error: wrong number of arguments for 'Term::Screen.size_from_ioctl' (given 0, expected 1)

Overloads are:
 - Term::Screen#size_from_ioctl(file)

Heya,

This must be caused by this commit in Term::Screen from 2 weeks ago:
crystal-term/screen@b3a5793

I will update shortly.

Thank you for the report.

Tput has been updated to account for the change in Term::Screen API.
Please run shards update and then re-run the example.
Feel free to reopen the ticket if the issue persists. Thanks!