17665 Commits

Author SHA1 Message Date
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 be51143ac507023bba66454aad35a75aa88f1233.
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
Delyan Angelov
6bafc28855
fix long line in README.md 2023-11-28 14:55:06 +02:00
Delyan Angelov
39fe077941
vdoc: add a cmd/tools/vdoc/tests/testdata/output_formats/README.md, update the expected outputs 2023-11-28 14:39:49 +02:00
Delyan Angelov
20c9ef21e5
tests: fix quoted path bug in cmd/tools/vdoc/tests/vdoc_file_test.v, that effectively disabled most of the tests there 2023-11-28 14:38:21 +02:00
Turiiya
50f3ac4968
tools.vpm: extend recursive dependency fix for module installation (#20015) 2023-11-28 10:10:51 +02:00
Turiiya
920be09c7e
tools.vpm: remove obsolete array clone (#20016) 2023-11-28 09:44:07 +02:00
Felipe Pena
b5ba12256d
cgen: add missing sync auto import, when using SelectExpr (#19998) weekly.2023.48 2023-11-27 20:14:23 +02:00
Jose Mendoza
2964855d15
vfmt: fix the formatting of comments after const declarations (#20005) 2023-11-27 16:00:05 +02:00
Kim Shrier
5283f19443
tests: remove vlib/crypto/aes/const.v from the skip list in vtest-fmt.v, since it now uses vfmt off/vfmt on markers 2023-11-27 13:14:10 +02:00
Jose Mendoza
f0e4438e08
vfmt: remove empty __global() (#20004) 2023-11-27 12:59:27 +02:00
yuyi
52e41f8879
ast, checker: fix generics with embed generic method call (#20011) 2023-11-27 13:27:59 +03:00
Delyan Angelov
19b055c22f
ci: use git -C vc push || true in .github/workflows/gen_vc_ci.yml, to prevent false positives in forked repos 2023-11-27 08:05:17 +02:00
Kim Shrier
ef598087e6
tests: use real path of a test folder for repl tests (#20007) 2023-11-27 07:43:17 +02:00
shove
b9a7de5b3a
checker: disallow indexing mut struct, passed as a fn parameter (#19992) 2023-11-27 07:39:49 +02:00
Felipe Pena
8ba04d37a3
cgen: fix lambda initialization on option struct field (fix #19474) (#19995) 2023-11-27 07:36:54 +02:00
shove
fc99781de2
checker, cgen: fix generics call with interface arg (fix #19976) (#20002) 2023-11-27 07:36:04 +02:00
Bakul Shah
63ba05b5ca
builtin: pass USE_MMAP when compiling the GC library on freebsd, when tcc is not used (#20006) 2023-11-27 07:35:17 +02:00
Jose Mendoza
6084dcdc44
vlib: add a compress.szip module, deprecate the szip one after 2023-12-31 (#20003) 2023-11-27 07:33:09 +02:00
Felipe Pena
90c3ca38c2
cgen, checker: fix loop on aggregates of arrays (in match branches) of sumtypes (fix #18548) (#19988) 2023-11-26 18:08:04 +02:00
Turiiya
69ce060737
tools.vpm: evaluate dependencies earlier to fix potential recursive install loop (#19987) 2023-11-26 17:41:32 +02:00
Kim Shrier
eaacf8314e
v.help: run help init with the current compiler under test (#19990) 2023-11-26 17:12:09 +02:00
Turiiya
70b33105d9
tools.vpm: remove flaky flag from tests to better spot issues on different platforms (#19986) 2023-11-26 15:59:13 +02:00
Turiiya
e1cf85fc98
tools.vpm: fix install paths, only normalize relevant, restore assign install_path_fmted, add input tests (#19984) 2023-11-26 15:50:56 +02:00
Felipe Pena
bc62c5cfd7
cgen: fix code generation for generic channels (#19993) 2023-11-26 13:58:23 +02:00
Felipe Pena
e2aa9b358d
tools.vast: add missing LambdaExpr in v ast file.v (#19994) 2023-11-26 13:54:49 +02:00