17665 Commits

Author SHA1 Message Date
Hitalo Souza
99d9473643
ci: include msgpack in v_apps_and_modules_compile_ci.yml (#20137) 2023-12-10 17:17:39 +02:00
Felipe Pena
42a8c7e16b
net.http: fix http.delete() checking (#20131) 2023-12-10 14:32:30 +02:00
shove
fe4e1c0672
checker: fix unwrap, when generic structs are used as arguments, in uncalled methods (fix #20132) (#20135) 2023-12-10 13:34:12 +02:00
Felipe Pena
4938b35971
cgen: improve uninitialized option struct field declaration (#20129) 2023-12-10 12:40:10 +02:00
Delyan Angelov
e6bb6df591
tools.vpm: skip slow tests, that do need network access, when -d network is not provided 2023-12-10 12:20:09 +02:00
Casper Küthe
08189d649c
vweb2 (#19997) 2023-12-09 08:07:51 +03:00
penguindark
2768de1fc7
encoding.csv: add a new RandomAccessReader (#20119) 2023-12-08 22:17:27 +02:00
Dmitriy Mihaylenko
75c0c92759
os: fix os.open_file/3 wb mode creation of text files containing crlf on Windows (#20101) 2023-12-08 21:52:52 +02:00
shove
4d1eb5f215
ast, checker, cgen: fix generics interface signature methods call with embeded (fix #20113) (#20124) 2023-12-08 18:54:55 +02:00
Delyan Angelov
4687f8c1f7
examples: add an example of a simple process wrapper, built around an interactive python process, in wrapping_interactive_python.v 2023-12-08 14:39:08 +02:00
Coachonko
0cb5c23861
json: add comment about the role of the @[omitempty] field tag (#20122) 2023-12-08 13:37:38 +02:00
Turiiya
3d0fcfe456
tools.vpm: extract outdated logic into outdated.v, fix outdated hg, extend tests (#20116) 2023-12-08 07:16:55 +02:00
Larpon
64e8139d46
examples, x: fix notice about assigning 0 to a reference field (#20115) 2023-12-07 22:34:53 +02:00
Delyan Angelov
e2b75bde9e
tools: add v repeat 'sleep 1' 'sleep 2' (rename repeat.v to vrepeat.v), improve its output, add its flags to vcomplete.v (#20114) 2023-12-07 19:13:02 +02:00
Felipe Pena
c121f56ffa
cgen, checker: fix comptime map type resolution on generic arg (#20097) 2023-12-07 18:42:57 +02:00
Turiiya
7b44bb973d
tools.vpm: add manifest fetch for hg repositories, add test (#20107) 2023-12-07 18:36:22 +02:00
Turiiya
5b74f3af3e
vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +02:00
Turiiya
9817dfc5ba
net.html: fix doc comments for html.parse functions (#20109) 2023-12-07 18:22:15 +02:00
Turiiya
f0fe3df0a6
tools.vpm: be more specific, when handling .git endings (#20110) 2023-12-07 18:21:09 +02:00
shove
772f11494f
regex: fix '\0' terminator always matched as last character(fix #19802) (#20104) 2023-12-06 18:07:42 +02:00
shove
55e86febf6
checker: fix generics method call with struct short syntax args(fix #20030) (#20100) 2023-12-06 12:24:48 +02:00
Felipe Pena
d564db6ca8
checker: fix comptimecall type resolution on checker phase and method.return_type comptime checking and assignment from option comptimecall (#20092) 2023-12-06 12:21:07 +02:00
yuyi
09d05bb57b
checker: fix generic interface interring error (#20098) 2023-12-06 11:38:13 +02:00
Delyan Angelov
21d44072cd
tests: improve the formatting of the output of coutput_test.v 2023-12-05 21:37:56 +02:00
Delyan Angelov
dbdd96f2ee
checker, cgen: fix @[if xyz?] fn init() {}, add tests (#20096) 2023-12-05 20:34:37 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
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