17038 Commits

Author SHA1 Message Date
yuyi
e30182c628
checker: cleanup the generic tests (#20553) 2024-01-16 08:53:50 +03:00
Hitalo Souza
3b19864aa3
vweb: fix routes without results in vweb_app_test.v (#20548) 2024-01-15 22:00:07 +02:00
Delyan Angelov
508117d62f
v.builder: use a more uniq prefix for the generated temporary file names, to further reduce the chances of collision and sporadic CI failures on windows (#20551) 2024-01-15 21:57:52 +02:00
yuyi
46abcd9e60
checker: fix return map index with or_block (#20544) 2024-01-15 21:39:25 +03:00
shove
df8f8ae4d1
checker: fix checking give const map as default or init value to struct fields (fix #20512) (#20546) 2024-01-15 20:08:31 +02:00
yuyi
13a3a89bef
parser: check non-generic interface defining generic method (#20545) 2024-01-15 20:07:49 +02:00
shove
d783cda671
cgen: fix code generation wrong, when '?foo.array or {}' as a 'for-in' condition (fix #20528) (#20542) 2024-01-15 15:04:30 +02:00
Delyan Angelov
f5db8f710b
net: cleanup comments for enum WsaError (#20543) 2024-01-15 11:43:08 +02:00
Delyan Angelov
6cfca66e73
vweb: add an optional Context.before_accept_loop/0 method, to make testing easier and more robust (#20538) 2024-01-15 11:42:41 +02:00
Kim Shrier
9268241f96
net.unix: make the error messages in unix_test.v more specific (#20537) 2024-01-15 03:26:12 +02:00
shove
bfbad031a5
ast, markused, checker: modify comments on generic receiver type storage (#20539) 2024-01-15 03:00:58 +02:00
Delyan Angelov
fc9b743c27
vweb: partial revert of fd19458, so that vweb.run listens again on both ipv4 and ipv6, by default, not just on ipv6 ::1 2024-01-14 23:59:45 +02:00
shove
ca3da8b630
ast, markused, checker: fix mark methods into used-list, when generics as receivers (fix #20509) (#20527) 2024-01-14 20:01:48 +02:00
koplenov
43b8cc8ab7
encoding.csv: add a new utility fn new_reader_from_file/2 (#20530) 2024-01-14 19:42:01 +02:00
Delyan Angelov
2f58ac3866
tools: bump too_long_line_length_link to 250, to avoid warnings for very common long links 2024-01-14 18:24:58 +02:00
Delyan Angelov
70b93935be
tools: bump too_long_line_length_table to 160, to avoid warnings for just v check-md doc/docs.md (most common) 2024-01-14 18:24:57 +02:00
Steven Gay
33598ca005
docs: add field shadowing comment (#20521) 2024-01-14 18:24:50 +02:00
Andreas Evensen
acf75c71da
docs: document the return type restrictions for operator overloading (#20529) 2024-01-14 17:31:47 +02:00
Hitalo Souza
cb224076ec
examples: add examples/wasm/change_color_by_id/ (#20519) 2024-01-14 13:34:23 +02:00
Vinicius Silva
175ede54b6
repl: fix an issue with print and println after the execution of for or if (fix #20524) (#20525) 2024-01-14 11:37:49 +02:00
Carlos Esquerdo Bernat
fd19458ca7
vweb: unify listen addres from tcp and print (#20448) 2024-01-14 11:13:37 +02:00
Delyan Angelov
9560d53516 builder: restore ability to use tcc, without fallback to cc on macos 2024-01-13 15:27:53 +02:00
Felipe Pena
ea6a5d8600
checker: fix missing check for struct initialization with @[noinit] attribute, through using T{} (#20516) 2024-01-13 15:23:36 +02:00
Delyan Angelov
35e91a7e70
checker,cgen: change x.filter(cond).len > 0 to x.any(cond), and x.filter(cond) == 0 to x.all(!cond) (#20513) 2024-01-13 08:52:31 +02:00
awgh
6c016e51b7
builder: replace "-rdynamic" for clang on macos with "-Wl,-export_dynamic" (fix #20510) (#20511) 2024-01-13 03:17:10 +02:00
shove
abc9e06ed1
net.urllib: fix parsing url error, when querypath is '//' (fix #20476) (#20504) 2024-01-12 22:51:48 +02:00
Hitalo Souza
62872c677f
json2: cleanup (#20347) 2024-01-12 22:48:28 +02:00
Felipe Pena
bcd77eddce
cgen: fix generated code for fixed array cast (fix #20454) (#20480) 2024-01-12 16:17:34 +02:00
Delyan Angelov
b120c10f42
os: make os.cache_dir() and os.vtmp_dir() more robust to parallel test executions on windows (#20495) 2024-01-12 16:09:08 +02:00
Vinicius Silva
d986f8252a
repl: support executing shell commands on the REPL with !sh [COMMAND] (#20496) 2024-01-12 16:08:03 +02:00
shove
cfd8915782
checker: cleanup the const variable evaluate for fixed array fields of structs (#20503) 2024-01-12 16:02:52 +02:00
Oli Barnett
fe669f8ce1
examples: fix "call v from ruby" example for Windows and Mac (#20487) 2024-01-12 15:59:09 +02:00
shove
f1fdc9c52f
parser, cgen: a minor cleanup (#20502) 2024-01-12 15:58:00 +02:00
shove
fdd481b2c2
orm: fix checking invalid recursive structs in sql stmts (fix #20278) (#20505) 2024-01-12 15:53:06 +02:00
Felipe Pena
0c4611fa4c
cgen: fix fixed array handling, on generic result return, and on or block (#20492) 2024-01-12 03:31:01 +02:00
Swastik Baranwal
554f21a29c
checker: disallow option or result return type, for infix operator overloading (#20494) 2024-01-11 20:31:44 +02:00
kbkpbot
69b0d1cfe9
log: enhance log time format setting (#20484) 2024-01-11 19:17:23 +02:00
shove
29d662fcd1
checker: fix anon struct init with const fields (fix #20452) (#20463) 2024-01-11 19:13:19 +02:00
shove
cc7144c4d8
orm: fix checking invalid recursive structs (fix #20285) (#20491) 2024-01-11 18:30:25 +02:00
shove
690961b796
parser: fix close_scope() missing, when field.name is sort or sorted (fix#20436) (#20485) 2024-01-11 14:31:31 +02:00
Felipe Pena
781d97dd11
cgen: fix C code, generated for generic option fixed array return type (fix #20465) (#20479) 2024-01-11 12:19:22 +02:00
Kim Shrier
341e79fc63
sync: fix FreeBSD implementation of sync functions (#20483) 2024-01-11 12:03:34 +02:00
Delyan Angelov
9109b23c76
tests: reduce chances of unrelated false positives due to network errors, for running code in vlib/v/tests/skip_unused/ 2024-01-11 11:53:35 +02:00
Bakul Shah
426bcd6972
sync: add mutex.try*lock functions for FreeBSD too (#20482) 2024-01-11 11:09:57 +02:00
Henrik Holst
091040116d
strings: fix levenshtein_distance function correctness after #20435 (#20474) 2024-01-10 23:33:39 +02:00
Juan de Bruin
61cd2ee9cf
doc: add r and R string interpolation switch examples (#20473) 2024-01-10 23:25:35 +02:00
Casper Küthe
464062774f
x.vweb: add error, when static directory does not exist (#20455) 2024-01-10 18:07:55 +02:00
blackshirt
0713e398a6
x.crypto.chacha20: speed up the core functionality of the ChaCha20 stream cipher (#20470) 2024-01-10 17:51:08 +02:00
Felipe Pena
edd07bff01
checker: fix comptime if with comptime smartcast (#20466) 2024-01-10 17:40:28 +02:00
Felipe Pena
86d1cc2c48
cgen: fix fixed array handling with operator overloading call (fix #20467) (#20469) 2024-01-10 17:25:42 +02:00