Skip to content

Delete bug_report.md #32

Delete bug_report.md

Delete bug_report.md #32

Triggered via push May 28, 2025 19:44
Status Failure
Total duration 29s
Artifacts

ci.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 3 warnings
build (ubuntu-latest)
Command failed: make vlib/os/file.c.v:190:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stdin) }) 188 | return File{ 189 | fd: 0 190 | cfile: C.stdin | ~~~~~ 191 | is_opened: true 192 | } vlib/os/file.c.v:199:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stdout) }) 197 | return File{ 198 | fd: 1 199 | cfile: C.stdout | ~~~~~~ 200 | is_opened: true 201 | } vlib/os/file.c.v:208:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stderr) }) 206 | return File{ 207 | fd: 2 208 | cfile: C.stderr | ~~~~~~ 209 | is_opened: true 210 | } vlib/builtin/builtin.c.v:630:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 628 | _memory_panic(@fn, n) 629 | } else if n == 0 { 630 | return &u8(0) | ~~~~~~ 631 | } 632 | $if prealloc { vlib/builtin/builtin.c.v:639:9: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 637 | return unsafe { C.calloc(1, n) } 638 | } 639 | return &u8(0) // not reached, TODO: remove when V's checker is improved | ~~~~~~ 640 | } 641 | vlib/builtin/builtin.c.v:667:9: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 665 | return unsafe { vcalloc(n) } 666 | } 667 | return &u8(0) // not reached, TODO: remove when V's checker is improved | ~~~~~~ 668 | } 669 | vlib/os/os.c.v:538:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 536 | } $else { 537 | max := usize(0) 538 | buf := &char(0) | ~~~~~~~~ 539 | nr_chars := unsafe { C.getline(&buf, &max, C.stdin) } 540 | str := unsafe { tos(&u8(buf), if nr_chars < 0 { 0 } else { nr_chars }) } vlib/os/os.c.v:583:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 581 | } $else { 582 | max := usize(0) 583 | buf := &char(0) | ~~~~~~~~ 584 | nr_chars := unsafe { C.getline(&buf, &max, C.stdin) } 585 | return array{ vlib/os/os.c.v:954:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 952 | cargs << &char(cmdargs[i].str) 953 | } 954 | cargs << &char(0) | ~~~~~~~~ 955 | mut res := int(0) 956 | $if windows { vlib/os/os.c.v:985:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 983 | cenvs << &char(envs[i].str) 984 | } 985 | cargv << &char(0) | ~~~~~~~~ 986 | cenvs << &char(0) 987 | mut res := int(0) vlib/os/os.c.v:986:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 984 | } 985 | cargv << &char(0) 986 | cenvs << &char(0) | ~~~~~~~~ 987 | mut res := int(0) 988 | $if windows { vlib/sync/channels.c.v:72:61: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 70 | wsem := if n > 0 { n } else { 1 } 71 | rsem := if n > 0 { u32(0) } else { 1 } 72 | rbuf := if n > 0 { unsafe { malloc(int(n * st)) } } else { &u8(0) } | ~~~~~~ 73 | sbuf := if n > 0 { vcalloc_noscan(int(n * 2)) } else { &u8(0) } 74 | mut ch := Channel{ vlib/sync/channels.c.v:73:57: warning: cannot cast a number
build (macos-latest)
Command failed: make vlib/os/file.c.v:190:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stdin) }) 188 | return File{ 189 | fd: 0 190 | cfile: C.stdin | ~~~~~ 191 | is_opened: true 192 | } vlib/os/file.c.v:199:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stdout) }) 197 | return File{ 198 | fd: 1 199 | cfile: C.stdout | ~~~~~~ 200 | is_opened: true 201 | } vlib/os/file.c.v:208:16: notice: voidptr variables may only be assigned voidptr values (e.g. unsafe { voidptr(C.stderr) }) 206 | return File{ 207 | fd: 2 208 | cfile: C.stderr | ~~~~~~ 209 | is_opened: true 210 | } vlib/builtin/builtin.c.v:630:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 628 | _memory_panic(@fn, n) 629 | } else if n == 0 { 630 | return &u8(0) | ~~~~~~ 631 | } 632 | $if prealloc { vlib/builtin/builtin.c.v:639:9: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 637 | return unsafe { C.calloc(1, n) } 638 | } 639 | return &u8(0) // not reached, TODO: remove when V's checker is improved | ~~~~~~ 640 | } 641 | vlib/builtin/builtin.c.v:667:9: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 665 | return unsafe { vcalloc(n) } 666 | } 667 | return &u8(0) // not reached, TODO: remove when V's checker is improved | ~~~~~~ 668 | } 669 | vlib/os/os.c.v:538:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 536 | } $else { 537 | max := usize(0) 538 | buf := &char(0) | ~~~~~~~~ 539 | nr_chars := unsafe { C.getline(&buf, &max, C.stdin) } 540 | str := unsafe { tos(&u8(buf), if nr_chars < 0 { 0 } else { nr_chars }) } vlib/os/os.c.v:583:10: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 581 | } $else { 582 | max := usize(0) 583 | buf := &char(0) | ~~~~~~~~ 584 | nr_chars := unsafe { C.getline(&buf, &max, C.stdin) } 585 | return array{ vlib/os/os.c.v:954:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 952 | cargs << &char(cmdargs[i].str) 953 | } 954 | cargs << &char(0) | ~~~~~~~~ 955 | mut res := int(0) 956 | $if windows { vlib/os/os.c.v:985:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 983 | cenvs << &char(envs[i].str) 984 | } 985 | cargv << &char(0) | ~~~~~~~~ 986 | cenvs << &char(0) 987 | mut res := int(0) vlib/os/os.c.v:986:11: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 984 | } 985 | cargv << &char(0) 986 | cenvs << &char(0) | ~~~~~~~~ 987 | mut res := int(0) 988 | $if windows { vlib/sync/channels.c.v:72:61: warning: cannot cast a number to a type reference, use `nil` or a voidptr cast first: `&Type(voidptr(123))` 70 | wsem := if n > 0 { n } else { 1 } 71 | rsem := if n > 0 { u32(0) } else { 1 } 72 | rbuf := if n > 0 { unsafe { malloc(int(n * st)) } } else { &u8(0) } | ~~~~~~ 73 | sbuf := if n > 0 { vcalloc_noscan(int(n * 2)) } else { &u8(0) } 74 | mut ch := Channel{ vlib/sync/channels.c.v:73:57: warning: cannot cast a number
build (macos-latest)
The strategy configuration was canceled because "build.ubuntu-latest" failed
build (windows-latest)
The operation was canceled.
build (windows-latest)
The strategy configuration was canceled because "build.ubuntu-latest" failed
build (ubuntu-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (macos-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build (windows-latest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/