Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BruceLawton opened this issue Nov 25, 2024 · 0 comments
Open

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

BruceLawton opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BruceLawton
Copy link

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 BruceLawton added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant