19292 Commits

Author SHA1 Message Date
Felipe Pena
fe6658d374
checker: allow fixed array where voidptr is expected (fix #23090) (#23100) 2024-12-09 16:22:47 +02:00
yuyi
6f75872fab
checker: fix veb route method param with non ctx name (fix #23105) (#23107) 2024-12-09 10:32:26 +02:00
Delyan Angelov
d257a1f06a
examples: reduce completion friction, when doing the very common v run examples/hello_world.v in a shell 2024-12-08 23:50:47 +02:00
Felipe Pena
550fa68036
checker: fix selector generic or block (fix #23088) (#23102) 2024-12-08 14:40:47 +02:00
Felipe Pena
a388b3be84
cgen: fixed for in loop with generic fixed array (fix #23075) (#23101) 2024-12-08 14:38:49 +02:00
Felipe Pena
2911f29058
checker: fix empty array append multi dims (fix #23092) (#23096) 2024-12-08 04:09:17 +02:00
Felipe Pena
f9bb425f6c
markused: fix -skip-unused for array.insert() (fix #23092) (#23097) 2024-12-08 04:06:59 +02:00
Felipe Pena
cebd999db8
parser: allow type as field type on params struct construction (fix #23091) (#23098) 2024-12-08 04:05:06 +02:00
Felipe Pena
6df25afe06
cgen: fix option codegen for accept IError value (fix #23076) (#23085) 2024-12-08 04:03:38 +02:00
Felipe Pena
9dd466c4d1
cgen: fix smartcast codegen for msvc (#23084) 2024-12-08 04:01:10 +02:00
Delyan Angelov
11dc600561
tools: let oldv fail early, when git fails to do network operations or checkouts 2024-12-07 16:54:11 +02:00
Hitalo Souza
e32e9f70ce
x.json2.decode2: minor improvements and bugfixes (#23083) 2024-12-07 10:22:46 +02:00
Hitalo Souza
de3b184b01
json2.decoder2: prepare decoder in json2 to be replaced by json2.decode2 (#23078) 2024-12-06 19:47:17 +02:00
Hitalo Souza
210239fb01
x.json2.decoder2: support fully struct attributes (#22741) 2024-12-06 13:53:07 +02:00
Delyan Angelov
a1df134716
cgen: prevent too long lines in array initialisations (#23074) 2024-12-06 13:44:29 +02:00
Hitalo Souza
a3bd5c64da
x.json2.decoder2: fix typos (#23018) 2024-12-05 23:02:33 +02:00
Delyan Angelov
3254987bb2
rand: add missing i32 APIs, corresponding to the int ones 2024-12-05 15:54:59 +02:00
yuyi
b6b96543e5
cgen: fix cast interface value in match expr (#23068) 2024-12-05 14:54:14 +03:00
Felipe Pena
af4ae51b8a
markused: remove 2 loops across all_fns (#23070) 2024-12-05 14:53:57 +03:00
Felipe Pena
feade247bc
markused: minor cleanup (#23066) 2024-12-05 13:10:46 +03:00
Delyan Angelov
e8e6c7608a
ci: extract .github/workflows/compile_discordv.sh, enable its CI step again 2024-12-05 10:52:48 +02:00
yuyi
ed639da0d6
cgen: cleanup cast_expr() (#23067) 2024-12-05 07:39:03 +02:00
SyoBoN
b471887df2
crypto.sha3: add support for Keccak-256 and Keccak-512 (#23058) 2024-12-05 01:14:15 +02:00
Jakub Jabłoński
8cc4a81aa6
v.preludes: fix teamcity reporter message formatting, to be compatible with IntelliJ Idea 2024.3 (#23065) 2024-12-05 01:08:16 +02:00
Felipe Pena
b103ce354f
ci: update compile_v_with_vtcc.sh, enable its CI task again (#23063) 2024-12-04 14:11:21 +02:00
yuyi
17f3c8f813
checker: check fn call argument mismatch (fix #23016) (#23061) 2024-12-04 11:52:07 +02:00
Delyan Angelov
a40df55bf5 vrepl: shrink .repl inputs, so repl_test.v runs faster 2024-12-04 02:47:18 +02:00
Delyan Angelov
1941c0b22d
tests: add @[markused] to const turn_off_vcolors = os.setenv(VCOLORS, never, true), that just use the side effect of os.setenv, to fix v test-self run locally (on the CI, it is the default, so not setting it does not matter). 2024-12-04 02:12:49 +02:00
Felipe Pena
20294fab5d
checker: fix missing checker for cast from mut var to non-ptr type (fix #23017) (#23056) 2024-12-04 01:00:17 +02:00
Alexander Medvednikov
13e445b8b5
ci: fix ROADMAP.md checks (#23059) 2024-12-04 00:37:41 +02:00
Alexander Medvednikov
9f9005cf52
roadmap: veb 2024-12-04 01:10:40 +03:00
Alexander Medvednikov
c8982e715a
roadmap: mark -skip-unused and other minor changes 2024-12-04 01:05:23 +03:00
Felipe Pena
ebeef84be9
orm: fix update stmt with enum value (fix #23031) (#23037) 2024-12-03 23:17:51 +02:00
Felipe Pena
31ce668c7a
orm: fix mark as used var on insert statement (fix #23032) (#23038) 2024-12-03 23:07:42 +02:00
Felipe Pena
1eb3867f4e
v: add array.count as a method that accepts a predicate, similar to filter, but returning just the number of matches (#23054) 2024-12-03 20:22:14 +02:00
Alexander Medvednikov
0c8a032a93 all: enable skip_unused by default 2024-12-03 18:31:19 +03:00
Delyan Angelov
55c25b398c
os: add os.get_trimmed_lines() too 2024-12-03 17:01:39 +02:00
Delyan Angelov
25ed6361e0
os: add os.get_raw_lines(), cleanup code of os.get_lines_joined() and os.get_raw_lines_joined() 2024-12-03 13:42:07 +02:00
Felipe Pena
d3b5dbd58c
cgen: fix update expr with embed fixed array with multiple dimensions (fix #23048) (#23049) 2024-12-03 11:22:31 +02:00
Felipe Pena
8960765879
markused: make some attrs on @[translated] be implicit @[markused] + fix FnDecl visitor (when no_body is present) (fixes V DOOM build with -skip-unused) (#23052) 2024-12-03 11:15:45 +02:00
Felipe Pena
c05684e298
v.reflection: fix codegen to work with quoted strings on attr value (fix #23046) (#23050) 2024-12-03 10:21:03 +02:00
yuyi
1da7965794
parser, checker: fix generic fn returning generic closure (related #23047) (#23055) 2024-12-03 10:10:11 +02:00
Hitalo Souza
b2c5eca745
x.json2.decoder2: include missing test for #22730 (#23051) 2024-12-03 10:06:19 +02:00
yuyi
6ac1d08c75
checker: fix generec fn returning generic closure (#23047) 2024-12-02 20:55:39 +03:00
Delyan Angelov
b383cce382
tools: describe more precisely what commands are used by oldv, so it can fail early, with a meaningful error message, if they are not present. weekly.2024.49 2024-12-02 10:59:52 +02:00
yuyi
b79b4bfc81
cgen: cleanup gen_jsons() a bit (#23044) 2024-12-02 07:29:31 +02:00
Swastik Baranwal
c45b8d492a
cgen: fix struct update embed expr for fixed arrays (fix #22999) (#23040) 2024-12-02 07:27:32 +02:00
Hitalo Souza
f29fb5a9f5
x.json2.decoder2: fix wrong sumtype and struct decoder in array (#23041) 2024-12-02 07:21:37 +02:00
Felipe Pena
3036a5afc6
cgen: fix callexpr or-expr codegen on const decl (fix #23029) (#23043) 2024-12-02 07:17:59 +02:00
Elsie
f3d0c53671
orm: fix list generation and escape loose backtick (#23039) 2024-12-02 00:26:16 +02:00