ui icon indicating copy to clipboard operation
ui copied to clipboard

UI is Using a Newly Deprecated API (error, not warning)

Open BruceLawton opened this issue 1 year ago • 0 comments

V version: 0.4.8 2ab1523 UI version: Latest as of Nov 24 OS: macOS

What did you do?

v run sample.v

What did you expect to see? A basic window with a couple of text boxes.

What did you see instead? /Users/bruce/.vmodules/ui/libvg/raster_tool.v:419:21: error: unknown function: encoding.utf8.get_rune . Did you mean encoding.utf8.get_uchar? 417 | c_len := ((0xe5000000 >> ((chr >> 3) & 0x1e)) & 3) + 1 418 | if c_len > 1 { 419 | tmp_char := utf8.get_rune(in_string, i) | ~~~~~~~~~~~~~~~~~~~~~~ Docs say: fn get_uchar # deprecated: use .get_rune(s string, index int) instead deprecated_after: 2024-11-17 fn get_uchar(s string, index int) int

BruceLawton avatar Nov 25 '24 02:11 BruceLawton