Commit graph

16639 commits

Author SHA1 Message Date
Felipe Pena
d409d8d66c
cgen: fix map comptime var type resolution on generic arg (fix #20037) (#20085) 2023-12-05 11:33:11 +02:00
Turiiya
77e65ac82b
tools.vpm: update vcs handling (#20090) 2023-12-05 11:30:15 +02:00
shove
700fbd7849
cgen: fix call_expr in branches and left_expr of call_expr with or_block(fix #20044) (#20094) 2023-12-05 07:47:19 +02:00
Swastik Baranwal
cce21a4f07
checker: unwrap generics for map and array methods (fix compiler panic, described in #20058) (#20059) 2023-12-04 21:52:24 +02:00
Felipe Pena
1c10d2f6ab
cgen: fix array auto cloning (#20078) 2023-12-04 21:07:25 +02:00
yuyi
4b7476b49d
checker: minor simplification in resolve_generic_interface() (#20087) 2023-12-04 21:06:16 +02:00
yuyi
47a8051b13
fmt: cleanup comments.v with multiline comment (#20086) 2023-12-04 20:59:11 +02:00
Delyan Angelov
c7b7d5f50f
arrays: fix off by one error in arrays.uniq_only_repeated/1 and arrays.uniq_all_repeated/1 2023-12-04 15:30:59 +02:00
balloondude2
d9e9c71b29
vweb: add an optional parameter to the .redirect/2 method, to be able to set the http code for the redirects (#20082) 2023-12-04 13:33:31 +02:00
Felipe Pena
d72264ccb0
checker: fix comptime type resolution on generic method arg (#20079) 2023-12-04 13:31:54 +02:00
Felipe Pena
f941bb4af0
checker, cgen: fix comptimecall type resolution on function args (#20070) 2023-12-04 12:19:52 +02:00
yuyi
54c03080ed
fmt: fix formatting multiline comments (fix #20080) (#20084) 2023-12-04 12:05:20 +02:00
shove
5ee963837a
cgen: fix .sort(), and .sorted() method calls, when array aliases are used as receivers (fix #20075) (#20081) 2023-12-04 12:04:43 +02:00
shove
4a37403a30
checker: fix .clone()/.move() with shared maps (#20083) 2023-12-04 11:54:28 +02:00
Felipe Pena
c047a49511
cgen: remove lefover println calls from vlib/v/gen/c/array.v (#20076) 2023-12-03 21:04:04 +02:00
Swastik Baranwal
f9f6ee756d
checker: enhance err msg for unknown types for comptime $for (#20057) 2023-12-03 12:21:17 +02:00
shove
582ec6e03c
checker, cgen: fix the static from_string method of Enum across mods(fix #20050) (#20068) 2023-12-03 12:19:29 +02:00
Delyan Angelov
d1dcffa928
os: fix File.tell for files > 2GB on windows, by using C._telli64(f.fd) (#20072) 2023-12-03 03:58:01 +02:00
Delyan Angelov
855b5c2c09
ci, builder: retry building of thirdparty object files with msvc, in case of linker errors too 2023-12-02 18:53:40 +02:00
Felipe Pena
c6ea403716
cgen: fix code generated for option type on concat expr (fix #20043) (#20062) 2023-12-02 18:31:04 +02:00
shove
e013d2905f
ast, parser: add comments to several representations of complete qualified names for generics (#20063) 2023-12-02 18:25:51 +02:00
Delyan Angelov
6571963574
ci: fix a retry bug in vlib/v/compiler_errors_test.v, that made it report errors, even after a second retry succeeded 2023-12-02 16:30:08 +02:00
Felipe Pena
ab04a589fe
parser: add a more precise and helpful error message for int! and int? result type syntax (#20061) 2023-12-02 16:05:38 +02:00
Delyan Angelov
64733edc0f
ci, builder: retry building of thirdparty object files with msvc, in case of permission errors (reduce CI false positives) 2023-12-02 15:58:31 +02:00
Ikko Eltociear Ashimine
c943d9a815
v2: fix typo in checker.v (#20064) 2023-12-02 10:40:53 +02:00
shove
a017b53450
ast: fix duplicated code gen for embedded generic fields (#20054) 2023-12-01 22:38:43 +02:00
Delyan Angelov
0b8a612406
Revert "strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1)"
This reverts commit be51143ac5.
2023-12-01 21:45:35 +02:00
Delyan Angelov
be51143ac5
strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1) 2023-12-01 18:26:57 +02:00
Dmitriy Mihaylenko
eec9c7f242
db.pg: fix using postgresql on windows, improve instructions for installing it (#20053) 2023-12-01 18:03:28 +02:00
Dmitriy Mihaylenko
e30af865f5
cgen: fix live mode on windows (#20041) 2023-12-01 09:01:00 +02:00
Delyan Angelov
150f2259e4
scanner: add new_silent_scanner/0, Scanner.prepare_for_new_text/1, make .ident_char/0, .ident_string/0 and .text_scan/0 public (#20045) 2023-11-30 23:37:54 +02:00
Felipe Pena
dfab24b936
orm: fix code generated for fields of ?[]Type (#20032) 2023-11-30 23:36:50 +02:00
shove
c19b13e165
ast: fix generic structs with multiple levels of generic embedding (#20042) 2023-11-30 23:26:21 +02:00
Delyan Angelov
0c4abf0c19
ci: skip the cmd/tools/vpm/ tests on the fsanitize_memory jobs, because of the handshake code in net.mbedtls, which uses assembly, that is known to sporadically fail the sanitizer 2023-11-30 23:16:49 +02:00
gym603
afaeb74238
os: create the folder described by XDG_CACHE_HOME, *if it is non empty, and it does not exist yet*, when calling os.cache_dir() (#20046) 2023-11-30 23:04:42 +02:00
Delyan Angelov
300158dd08
ci: make the output of compiler_errors_test.v more informative, when there is a difference found, but no diff tool (on alpine/musl) 2023-11-30 17:50:25 +02:00
Kim Shrier
7357ef3686
db.mysql: add support for the FreeBSD name of the mariadb client library (#20039) 2023-11-30 15:32:44 +02:00
Kim Shrier
60cdc6a728
net.websocket: fix the notice messages about the initialization of references outside unsafe mode (#20038) 2023-11-30 15:30:35 +02:00
Delyan Angelov
bb4c80211b
time: fix off by 1 error in must_be_valid_three_letter_month 2023-11-30 14:22:55 +02:00
Delyan Angelov
c88f0d382c
examples: show how to turn on CORS in a vweb server app 2023-11-30 13:50:07 +02:00
Felipe Pena
00b1ce5760
orm: fix code generation for an option time.Time field (#20031) 2023-11-29 19:30:34 +02:00
gym603
dc3ea0f87f
os: flush stdout and stderr before calling _wsystem (on windows), as the MSDN doc advices (#20034) 2023-11-29 19:25:41 +02:00
Turiiya
74c59abf4e
tools.vpm: update tests, add get_installed test (#20028) 2023-11-29 19:11:50 +02:00
gym603
f4937aef9e
repl: make sure the prompt is output before user input (on windows) (#20035) 2023-11-29 18:12:21 +02:00
Ned
0b2feefd87
vdoc: use markdown.default_html_transformer underneath, remove html_tag_escape (#19785) 2023-11-29 18:03:58 +02:00
Felipe Pena
883eaa6e1f
cgen: fix cross method call + method_call cleanup (#20025) 2023-11-29 18:02:26 +02:00
Swastik Baranwal
fed3552671
tests: add checker and passing test for generic receiver indexing (#20036) 2023-11-29 17:54:54 +02:00
Ned
782bf86555
vdoc: refactor html_highlight and handle strings with string interpolations (eg. ${a}.${b}.${c}) (#19784) 2023-11-28 15:37:10 +02:00
shove
52f40aa6e1
ast: fix generics with embed generics structs(fix #20021) (#20022) 2023-11-28 15:28:07 +02:00
gym603
46086c046f
tests: make 'v test-self' pass under msys2/MINGW64 (#20010) 2023-11-28 15:03:30 +02:00