Skip to content

fixes (#14 and more) & compile-time literal casting & improved error reporting, robustness & test coverage #49

fixes (#14 and more) & compile-time literal casting & improved error reporting, robustness & test coverage

fixes (#14 and more) & compile-time literal casting & improved error reporting, robustness & test coverage #49

Triggered via pull request November 25, 2025 17:43
Status Failure
Total duration 1m 29s
Artifacts

ci.yml

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

Annotations

5 errors
build (ubuntu-latest)
Command failed: make vlib/os/filepath.v:221:28: notice: condition is always true 219 | // to_slash returns the result of replacing each separator character in path with a slash (`/`). 220 | pub fn to_slash(path string) string { 221 | if path_separator == '/' { | ^ 222 | return path 223 | } vlib/os/filepath.v:229:28: notice: condition is always true 227 | // from_slash returns the result of replacing each slash (`/`) character is path with a separator character. 228 | pub fn from_slash(path string) string { 229 | if path_separator == '/' { | ^ 230 | return path 231 | } vlib/os/os.v:58:28: notice: condition is always true 56 | } 57 | if !is_abs_path(exepath) { 58 | other_separator := if path_separator == '/' { '\\' } else { '/' } | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 59 | rexepath := exepath.replace(other_separator, path_separator) 60 | if rexepath.contains(path_separator) { vlib/os/os.v:852:28: notice: condition is always true 850 | return error('path `${opath}` already exists, and is not a folder') 851 | } 852 | other_separator := if path_separator == '/' { '\\' } else { '/' } | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 853 | path := opath.replace(other_separator, path_separator) 854 | mut p := if path.starts_with(path_separator) { path_separator } else { '' } vlib/builtin/string.v:496:20: error: undefined variable `b` (used before declaration) 494 | return s.clone() 495 | } 496 | idxs.sort(a.idx < b.idx) | ^ 497 | mut b := unsafe { malloc_noscan(new_len + 1) } // add space for 0 terminator 498 | // Fill the new string vlib/builtin/string.v:496:22: error: `u8` has no property `idx` 494 | return s.clone() 495 | } 496 | idxs.sort(a.idx < b.idx) | ~~~ 497 | mut b := unsafe { malloc_noscan(new_len + 1) } // add space for 0 terminator 498 | // Fill the new string vlib/v/token/token.v:686:18: error: not an enum 684 | pub fn assign_op_to_infix_op(op Kind) Kind { 685 | return match op { 686 | .plus_assign { .plus } | ~~~~~ 687 | .minus_assign { .minus } 688 | .mult_assign { .mul } vlib/v/pref/pref.v:1234:9: error: not an enum 1232 | // + a separate option, to choose the wanted JS output. 1233 | return match s { 1234 | 'c' { .c } | ~~ 1235 | 'interpret' { .interpret } 1236 | 'js', 'js_node' { .js_node } vlib/v/pref/pref.v:1235:17: error: not an enum 1233 | return match s { 1234 | 'c' { .c } 1235 | 'interpret' { .interpret } | ~~~~~~~~~~ 1236 | 'js', 'js_node' { .js_node } 1237 | 'js_browser' { .js_browser } vlib/v/pref/pref.v:1236:21: error: not an enum 1234 | 'c' { .c } 1235 | 'interpret' { .interpret } 1236 | 'js', 'js_node' { .js_node } | ~~~~~~~~ 1237 | 'js_browser' { .js_browser } 1238 | 'js_freestanding' { .js_freestanding } vlib/v/pref/pref.v:1237:18: error: not an enum 1235 | 'interpret' { .interpret } 1236 | 'js', 'js_node' { .js_node } 1237 | 'js_browser' { .js_browser } | ~~~~~~~~~~~ 1238 | 'js_freestanding' { .js_freestanding } 1239 | 'wasm' { .wasm } vlib/v/pref/pref.v:1238:23: error: not an enum 1236 | 'js', 'js_node' { .js_node } 1237 | 'js_browser' { .js_browser } 1238 | 'js_freestanding' { .js_freestanding } | ~~~~~~~~~~~~~~~~ 1239 | 'wasm' { .wasm } 1240 | 'native' { .native } vlib/v/pref/pref.v:1239:12: error: not an enum 1237 | 'js_browser' { .js_browser } 1238 | 'js_freestand
build (macos-latest)
The strategy configuration was canceled because "build.ubuntu-latest" failed
build (macos-latest)
The operation was canceled.
build (windows-latest)
The strategy configuration was canceled because "build.ubuntu-latest" failed
build (windows-latest)
The operation was canceled.