18949 Commits

Author SHA1 Message Date
Delyan Angelov
9d97e18eb6
v.help: add download.txt, so that v help download works too, cleanup help.v 2024-11-14 09:12:56 +02:00
Delyan Angelov
ee3a182dfd
tools: allow for v download -RD URL/script.vsh, to download script.vsh, then run it locally, then remove it, in a single command 2024-11-13 20:38:45 +02:00
blackshirt
897ec51480
x.encoding.asn1: cleanup code and comments (#22847) 2024-11-13 19:38:27 +02:00
Felipe Pena
62bdf990d0
checker: fix missing or-block check for callexpr (fix #22835) (#22840) 2024-11-13 12:30:06 +02:00
Delyan Angelov
7c3c5891b0
builder: fix cross compiling from linux to windows, when passing -g/-cg 2024-11-13 11:59:04 +02:00
Delyan Angelov
4aa87796ed
net.http: ensure that http.download_file_with_progress/3 works (in a degraded mode), on windows, even without passing -d no_vschannel 2024-11-13 11:43:37 +02:00
Felipe Pena
ebb3a8eb25
orm: fix crash when working with array field (fix #22822) (#22824) 2024-11-13 09:59:04 +02:00
yuyi
1a9dab29c6
checker: fix generic fn call with empty array argument (fix #22843) (#22846) 2024-11-13 09:56:50 +02:00
yuyi
70112d84a9
checker: minor cleanup of commented code in lambda_expr.v (#22844) 2024-11-13 02:48:46 +02:00
Swastik Baranwal
f4d3c7eb70
parser,checker: improve the position underlining, for last statements in branches of if expressions (#22845) 2024-11-13 02:46:12 +02:00
Hitalo Souza
8ebbacecd6
json: move _test.v files to vlib/json/tests/ (#22731) 2024-11-12 20:33:01 +02:00
Felipe Pena
9de84888b3
parser: optimise mark_var_as_used calls, by moving it to an ast.Scope method (#22842) 2024-11-12 20:23:16 +02:00
Felipe Pena
fe5609d043
cgen: fix generation of a missing return in return if cond { x } else { return missing } (fix #22838) (#22839) 2024-11-12 13:51:01 +02:00
yuyi
55d69203f8
checker: fix if expr with empty array init expression (related #22832) (#22841) 2024-11-12 13:06:26 +02:00
Swastik Baranwal
eee9ee5200
checker: disallow foo[T] as a value (#22820) 2024-11-12 13:03:51 +02:00
Delyan Angelov
4e82b62142
tools: use v retry in more places, that do network operations that can fail temporarily (#22836) 2024-11-12 13:01:37 +02:00
Felipe Pena
34be083e25
v: cleanup calls to Scope.find() methods (#22833) 2024-11-12 12:39:43 +02:00
yuyi
509262646d
checker: fix match expr with empty array init expression (#22832) 2024-11-11 22:13:10 +03:00
Delyan Angelov
ec1f95ac50
v.util: implement tokenize_to_args/1, use it in util.join_env_vflags_and_os_args/0, add tests (#22831) 2024-11-11 19:18:58 +02:00
Delyan Angelov
e433d7c832
tools: improve output of compare_pr_to_master.v weekly.2024.46 2024-11-11 12:50:06 +02:00
Felipe Pena
b76d05dac9
scanner,checker: optimize Scanner.scan_remaining_text and Checker.expr, based on branch prediction analysis (#22823) 2024-11-11 12:45:49 +02:00
yuyi
a132d97926
parser: fix struct field name using keyword (fix #22826) (#22829) 2024-11-11 12:23:15 +02:00
Felipe Pena
2e353d209d
cgen: fix default T{} when T is ref type + dereferencing issue when comparing int alias to int (fix #22795) (#22807) 2024-11-11 12:08:34 +02:00
blackshirt
fdc49dc51a
vlib: initial addition of x.encoding.asn1 (#22783) 2024-11-10 20:21:07 +02:00
Felipe Pena
c9ecc5b0dd
v: add typeof(expr).unaliased_typ (#22806) 2024-11-10 20:15:01 +02:00
Delyan Angelov
e3dfe60e9b
v.util: use temporary workaround for the vinix build problem (when VFLAGS is set, and -ldflags is passed at the same time) 2024-11-10 17:33:17 +02:00
mintsuki
1818e63253
ci: fix vinix_ci.yml for latest Vinix commits (#22818) 2024-11-10 14:25:09 +02:00
Delyan Angelov
5fa643dea1
v.util.diff: un-deprecate diff helper fnss, that are still used by important tests, without a good migration strategy 2024-11-10 14:04:42 +02:00
Delyan Angelov
4f160b00e8
ci: fix spurious failures for printing_struct_with_thread_field.vv on windows 2024-11-10 13:58:54 +02:00
Delyan Angelov
ee957e8fa6 ci: extract ci/common/runner.v, use it to simplify ci/macos_ci.vsh even more 2024-11-10 13:39:08 +02:00
Delyan Angelov
ce1fbaa0bd ci: improve output of macos_ci.vsh 2024-11-10 13:13:38 +02:00
Delyan Angelov
3223da69a1 ci: ensure that all examples can still be compiled, by v compiled with tcc on macos 2024-11-10 12:13:35 +02:00
Delyan Angelov
9fc3a24ca6 v.comptime: fix compilation of examples/veb/veb_example.v with V compiled with tcc on macos 2024-11-10 11:55:53 +02:00
Delyan Angelov
65038a4a2a tools,testing: limit header length used in v test, make CI assertion failures easier to read 2024-11-10 11:10:04 +02:00
Delyan Angelov
1b9a8b996d
checker,pref: fix $if wasm32_emscripten { check, add tests (#22816) 2024-11-10 05:17:12 +02:00
Felipe Pena
c7acf27e06
fmt: fix formatting fixed array size of struct member (#22815) 2024-11-09 18:40:53 +02:00
Alexander Mandrikov
e1a5acc1ef
orm: support plain @[serial] attribute for marking struct fields (#22814) 2024-11-09 17:26:22 +02:00
Felipe Pena
f60d285585
checker: fix missing auto from_string type restriction (related to #22783) (#22803) 2024-11-09 13:46:59 +02:00
Felipe Pena
db525108ae
cgen,comptime: fix wrong type resolution on infix (#22804) 2024-11-09 13:40:39 +02:00
Felipe Pena
ee53a99cdd
v: add typeof(var).indirections and T.indirections (#22805) 2024-11-09 13:34:24 +02:00
Felipe Pena
6ffc9c94b5
cgen: fix codegen for fn fixed array param w/ size defined by const (fix #22811) (#22812) 2024-11-09 13:28:19 +02:00
Felipe Pena
bf8ea4b594
checker: fix callexpr after auto C func identification (fix #22800) (#22809) 2024-11-09 12:57:02 +02:00
yuyi
b7ffa8f94a
builtin: minor optimization in rune.map_to() (#22810) 2024-11-09 09:33:51 +02:00
Delyan Angelov
e6c5b1bc43
ci,v.gen.native: cleanup compile warnings for ./v -b native examples/wasm/hello_world.v, to make CI annotations more useful 2024-11-09 09:27:30 +02:00
Delyan Angelov
d005460f90
ci: silence compilation warning for bench_string_key_in_map_vs_string_value_in_array.v 2024-11-09 09:17:36 +02:00
Delyan Angelov
32462004e6
ci,tests: silence compilation warning for vlib/v/tests/testcase_leak.vv 2024-11-09 09:14:06 +02:00
Delyan Angelov
a40e751ba3
ci: cleanup, run npx prettier --write .github/workflows/macos_ci.yml 2024-11-09 08:53:14 +02:00
Alexander Medvednikov
c0f5bfadb7 ci: use thew new macos_ci.vsh (github) 2024-11-09 09:47:05 +03:00
Alexander Medvednikov
d521f4d6f3 ci: fix Build V 2024-11-09 09:27:17 +03:00
Alexander Medvednikov
5d0f6b8a3d ci: use os.system to redirect output 2024-11-09 09:24:35 +03:00