19473 Commits

Author SHA1 Message Date
Delyan Angelov
1b136e213a
ci: fix vweb_run_at.run.out and vweb_run_at.skip_unused.run.out, ensure stable ordering of stdout/stderr for v run file.v, in case of compiling a program with warnings/notices. 2025-03-02 18:32:23 +02:00
Alexander Medvednikov
8f844ea313 veb: deprecate vweb (part 3) 2025-03-02 18:31:00 +03:00
Alexander Medvednikov
8683e634ee veb: deprecate vweb (part 2); move all vweb examples to veb 2025-03-02 14:37:20 +03:00
Felipe Pena
17fc31b746
cgen: fix nested option fixed array (fix #23708) (#23845) 2025-03-02 10:18:56 +02:00
Felipe Pena
8201b8a45f
vfmt: fix formatting for an option array of anon structs (fix #23841) (#23844) 2025-03-02 10:16:02 +02:00
kbkpbot
57a45bc353
time: add .week_of_year() method for time.Time instances (#23838) 2025-03-02 10:04:59 +02:00
Felipe Pena
05a6e557cf
json: fix json.decode autofree codegen (fix #23834) (#23839) 2025-03-02 09:52:26 +02:00
Casper Küthe
c37309f6b9
veb: fix "error parsing request: io.Eof" when expecting a request body, but the data is not ready yet (fix #22464) (#23842) 2025-03-02 09:50:50 +02:00
Delyan Angelov
4c8f8c6666
net.openssl: use proper library search path for local installations of OpenSSL 3, use SSL_get1_peer_certificate instead of the deprecated SSL_get_peer_certificate . 2025-03-02 09:39:21 +02:00
Delyan Angelov
a0e7da7481
.gitignore: ignore the project settings file for gf2 (a very nice GUI gdb frontend) 2025-03-02 09:33:39 +02:00
Delyan Angelov
dea01ffe03
examples: fix poll_coindesk_bitcoin_vs_usd_rate.v, use the new v2 API endpoint 2025-03-02 09:19:25 +02:00
Felipe Pena
95f00937bb
checker: fix MatchExpr type inferring, when none is used (fix #23831) (#23833) 2025-03-01 23:29:25 +02:00
Xyndra
f7e062c91a
log: remove the notice about the stdout -> stderr migration (#23837) 2025-03-01 23:27:22 +02:00
Delyan Angelov
cb3b980379
tools: make v install avoid using --filter=blob:none --shallow-submodules --also-filter-submodules on windows (#23840) 2025-03-01 19:23:54 +02:00
Felipe Pena
2cd1f6e924
checker: add missing check for IfExpr and MatchExpr with no valid type (#23832) 2025-03-01 14:08:24 +03:00
Alexander Medvednikov
f83af8a1a2 veb: deprecate vweb (part 1); update the blog tutorial 2025-03-01 03:34:16 +03:00
Felipe Pena
8dbde185ef
checker: add option type inference on if expr (implement most of #23827, except the error for v := if c { none } else { none }) (#23829) 2025-02-28 22:36:28 +02:00
Felipe Pena
80477e3acf
cgen: fix array fixed assignment for @[keep_args_alive] (partial fix for #23804) (#23805) 2025-02-28 22:15:06 +02:00
Felipe Pena
1601de1b78
v: fix anon struct option support (fix #23789) (fix #23824) (#23830) 2025-02-28 22:02:42 +02:00
Delyan Angelov
5f5e48ea53
cgen: fix regression, preventing the use of -gc none -d no_main -no-builtin -no-preludes to compile C style V programs 2025-02-28 06:26:52 +02:00
Delyan Angelov
c17c0e16c4
builtin: declare fn C._vinit/2 and fn C._vcleanup/0 (continuation from #23812) (#23820) 2025-02-28 05:23:48 +02:00
kilavvy
8aef3c72b4
all: fix typos in documentation files (#23822) 2025-02-28 02:42:55 +03:00
Delyan Angelov
ff93ccb29d
ci,os: fix bootstrapping with -os cross -o vc/v.c (avoid the generic calls in the new write_u8 and read_u8) 2025-02-27 13:59:28 +02:00
Delyan Angelov
9f5a1b8b4a
os: add File.write_u8/1 and File.read_u8/0 helper methods 2025-02-27 13:40:40 +02:00
kbkpbot
675fe14cbb
strconv: fix strconv.atof64() inconsistency with the other .ato functions; make it return an error by default, when it detects an extra non number character after a number (#23815) 2025-02-27 08:31:59 +02:00
Delyan Angelov
62cbc8befe
ci: move test in pe_test.v to native_test.v (both used -b native, competing the creation of the backend executable => CI failures on the gcc-windows job) 2025-02-27 07:23:44 +02:00
Pasha Radchenko
5c4f7ca871
tests: add missing license info for reserved_keywords_as_struct_field_test.v (#23817) 2025-02-27 02:16:28 +02:00
kbkpbot
370ba448dd
os: fix buffer overflow in os.get_raw_line under Windows (#23816) 2025-02-27 01:09:34 +02:00
Delyan Angelov
a1f7213de0
sokol: allow for v -os wasm32_emscripten -o examples/tetris/tetris.html examples/tetris/ (avoid using -sMODULARIZE) (#23814) 2025-02-26 11:51:33 +02:00
Delyan Angelov
94f0f6d93b
cgen,checker: allow for pub type C.HINSTANCE = voidptr, being used in @[export: "wWinMain"] fn mymain(x C.HINSTANCE, xprev C.HINSTANCE, lpcmdline &C.WCHAR, cmdshow int) int { in module no_main programs (#23812) 2025-02-26 11:05:11 +02:00
Kim Shrier
c826923b16
cli: fix minor typo (#23811) 2025-02-26 09:04:39 +02:00
Delyan Angelov
9b8a1607ed
math.big: add vlib/math/big/big_division_test.v (follow-up to 270941a) 2025-02-26 05:25:51 +02:00
Delyan Angelov
270941a6bd
math.big: bump newton_division_limit to 1_000_000 (workaround issue #23806) 2025-02-26 04:54:01 +02:00
Eliyaan (Nopana)
c9bec82033
native: fix unsigned and signed int comparison (#23808) 2025-02-26 03:52:37 +02:00
Hitalo Souza
c349381aa5
x.json2.decoder2: improve string tests (#23809) 2025-02-26 03:49:04 +02:00
larpon
4f98fe982c
math.vec: add rotate_around_* (cw/ccw) functions to vec.Vec2[T] (#23807) 2025-02-26 03:46:18 +02:00
Felipe Pena
537605a058
checker: fix map when casting to interface (fix #23790) (#23799) 2025-02-25 16:42:23 +02:00
Anonymous User
ab2eb0016c
veb.request_id: new middleware that implements request ID tracking (#23727) 2025-02-25 00:54:43 +03:00
Delyan Angelov
f3d2eb1c24
log: fix valgrind_test.v failure weekly.2025.09 2025-02-24 19:21:47 +02:00
Delyan Angelov
b9d057118c
log: fix panic on mutex destroy, when exiting a program, while a thread is still logging 2025-02-24 18:28:27 +02:00
Delyan Angelov
1cb76c92f4
ci: remove the VJOBS=1 restriction for test-cleancode on linux (#23801) 2025-02-24 16:30:36 +02:00
Delyan Angelov
fa8c5e369a
examples: show how to use a v file server for the wasm version of 2048, instead of emrun 2025-02-24 15:25:16 +02:00
Delyan Angelov
8241f22116
ci: use -silent in more jobs that produce a lot of OK lines normally (for test-cleancode, test-self, build-examples, build-tools) 2025-02-24 11:23:59 +02:00
Delyan Angelov
f83c8bf478
v.pref: allow for -os wasm32_emscripten and filtering _d_wasm32_emscripten.c.v and _notd_wasm32_emscripten.c.v files. (#23797) 2025-02-24 11:23:37 +02:00
Delyan Angelov
252df04ceb
ci: use -silent for the longer test runs (suppress most OK lines, to reduce scrolling on failure) 2025-02-24 09:35:16 +02:00
Felipe Pena
0f58a02c14
cgen: fix gowrapper codegen for receiver ptrptr (fix #23798) (#23800) 2025-02-24 03:54:25 +02:00
Felipe Pena
99216929d6
checker: fix missing struct cast validation (fix #23748) (#23788) 2025-02-23 21:06:12 +02:00
Bruno-Vdr
e5e9b5dc08
v.pref: fix panic in parse_args_and_show_errors, called with no args (fix #23713) (#23794) 2025-02-23 21:02:47 +02:00
Delyan Angelov
3c88926fdb
term: make the second example in the README.md compilable as well 2025-02-23 14:26:16 +02:00
Delyan Angelov
be3a5362c2
term: add more comments in vlib/term/README.md 2025-02-23 13:40:33 +02:00