17665 Commits

Author SHA1 Message Date
Delyan Angelov
6107e0d154
tests: show compile time and runtime for each _test.v file in separate columns (#20520) 2024-01-20 17:38:46 +02:00
Delyan Angelov
629bae469b
parser: implement MyEnum.from(1)! generic static method (#20411) 2024-01-20 12:15:58 +02:00
Pierre Curto
d912268e5d
checker: fix non dereferenced enum in match statements (fixes #10045) (#20591) 2024-01-20 07:25:22 +02:00
Delyan Angelov
856984aa14
cleanup: turn .microseconds() ... us to .microseconds() ... µs (#20588) 2024-01-20 07:16:24 +02:00
Swastik Baranwal
d744314ba1
checker: disallow non_opt_array << optvalue (#20573) 2024-01-19 19:36:06 +02:00
Muhammad Saleh Solahudin
a2443cc378
docs: fix typo (statemnts -> statements) (#20585) 2024-01-19 19:30:15 +02:00
Muhammad Saleh Solahudin
a6f2f6ab65
docs: fix link for an example of a module that calls C code from V (#20586) 2024-01-19 17:38:45 +02:00
Delyan Angelov
5310c102a6
v.debug: cleanup interactive_test.v (#20583) 2024-01-19 12:58:06 +02:00
Jose Mendoza
3600093f07
docs: fix typo (stuct -> struct) (#20581) 2024-01-19 10:59:15 +02:00
Kim Shrier
1207c29044
db.pg: add include and lib paths for PostgreSQL on FreeBSD (#20582) 2024-01-19 10:14:08 +02:00
Felipe Pena
9f6448e30e
v: $dbg statement - native V debugger REPL (#20533) 2024-01-19 07:10:17 +02:00
Pierre Curto
45e13ea02a
datatypes,examples: fix typos, and silence notice in the quadtree example (#20577) 2024-01-18 15:31:42 +02:00
Delyan Angelov
9c7e3707b6
builtin: use #pkgconfig bdw-gc-threaded where available, instead of #pkgconfig bdw-gc (on FreeBSD) 2024-01-18 07:31:40 +02:00
Tim Marston
bb9acf4261
vast,ast: output map init update expression (#20574) 2024-01-18 05:19:14 +02:00
penguindark
ef3b0ec775
encoding.csv: fix bug in RandomAccessReader, spotted on windows with mingw32 (#20571) 2024-01-17 22:10:28 +02:00
shove
4c47bb5288
cgen: fix wrong cgen, when auto_heap var, is used as a closed over arg in a closure (fix #20208) (#20566) 2024-01-17 18:05:39 +02:00
Tim Marston
c4b8036970
v: add map update-init syntax: new_map := {...old_map, 'k1': 1, 'k2': 5} (#20561) 2024-01-17 17:55:57 +02:00
Delyan Angelov
a79a9cb57b
trace_calls: fix v -m32 -trace-calls run vlib/v/tests/testdata/trace_calls/simple.vv (#20556) 2024-01-17 12:02:27 +02:00
shove
f5434409ed
tests: optimize a test case about closure parameters cloning with -autofree (#20562) 2024-01-17 12:01:21 +02:00
Vinicius Silva
3569635eff
builtin: add empty string verification for the new string .is_oct() etc methods, suggested on PR #20540 (#20564) 2024-01-17 11:00:07 +02:00
Vinicius Silva
afd74ad6e6
builtin: add is_hex(), is_int(), is_bin(), and is_oct() methods to the string type (#20540) 2024-01-16 23:58:28 +02:00
Felipe Pena
8d5f95d604
readline: add completion support (#20559) 2024-01-16 23:32:47 +02:00
yuyi
4b0a2cb7c9
checker: cleanup in method_call() (#20554) 2024-01-16 23:28:55 +02:00
shove
d46274a29e
cgen: add a necessary clone, when the closure param is string/array with -autofree (fix #20498) (#20557) 2024-01-16 23:25:20 +02:00
Delyan Angelov
3a66355d5d
vweb: make vweb_test.v more robust and faster, by embedding its server as a module weekly.2024.03 2024-01-16 10:27:50 +02:00
Delyan Angelov
34e435313f
ci: simplify time_ci.yml, use more descriptive CI job names, for easier judging of CI failures 2024-01-16 08:43:26 +02:00
shove
072d65b28a
checker: fix @[deprecated] attribute for consts (fix #20523) (#20550) 2024-01-16 08:00:47 +02:00
yuyi
e30182c628
checker: cleanup the generic tests (#20553) 2024-01-16 08:53:50 +03:00
Hitalo Souza
3b19864aa3
vweb: fix routes without results in vweb_app_test.v (#20548) 2024-01-15 22:00:07 +02:00
Delyan Angelov
508117d62f
v.builder: use a more uniq prefix for the generated temporary file names, to further reduce the chances of collision and sporadic CI failures on windows (#20551) 2024-01-15 21:57:52 +02:00
yuyi
46abcd9e60
checker: fix return map index with or_block (#20544) 2024-01-15 21:39:25 +03:00
shove
df8f8ae4d1
checker: fix checking give const map as default or init value to struct fields (fix #20512) (#20546) 2024-01-15 20:08:31 +02:00
yuyi
13a3a89bef
parser: check non-generic interface defining generic method (#20545) 2024-01-15 20:07:49 +02:00
shove
d783cda671
cgen: fix code generation wrong, when '?foo.array or {}' as a 'for-in' condition (fix #20528) (#20542) 2024-01-15 15:04:30 +02:00
Delyan Angelov
f5db8f710b
net: cleanup comments for enum WsaError (#20543) 2024-01-15 11:43:08 +02:00
Delyan Angelov
6cfca66e73
vweb: add an optional Context.before_accept_loop/0 method, to make testing easier and more robust (#20538) 2024-01-15 11:42:41 +02:00
Kim Shrier
9268241f96
net.unix: make the error messages in unix_test.v more specific (#20537) 2024-01-15 03:26:12 +02:00
shove
bfbad031a5
ast, markused, checker: modify comments on generic receiver type storage (#20539) 2024-01-15 03:00:58 +02:00
Delyan Angelov
fc9b743c27
vweb: partial revert of fd19458, so that vweb.run listens again on both ipv4 and ipv6, by default, not just on ipv6 ::1 2024-01-14 23:59:45 +02:00
shove
ca3da8b630
ast, markused, checker: fix mark methods into used-list, when generics as receivers (fix #20509) (#20527) 2024-01-14 20:01:48 +02:00
koplenov
43b8cc8ab7
encoding.csv: add a new utility fn new_reader_from_file/2 (#20530) 2024-01-14 19:42:01 +02:00
Delyan Angelov
2f58ac3866
tools: bump too_long_line_length_link to 250, to avoid warnings for very common long links 2024-01-14 18:24:58 +02:00
Delyan Angelov
70b93935be
tools: bump too_long_line_length_table to 160, to avoid warnings for just v check-md doc/docs.md (most common) 2024-01-14 18:24:57 +02:00
Steven Gay
33598ca005
docs: add field shadowing comment (#20521) 2024-01-14 18:24:50 +02:00
Andreas Evensen
acf75c71da
docs: document the return type restrictions for operator overloading (#20529) 2024-01-14 17:31:47 +02:00
Hitalo Souza
cb224076ec
examples: add examples/wasm/change_color_by_id/ (#20519) 2024-01-14 13:34:23 +02:00
Vinicius Silva
175ede54b6
repl: fix an issue with print and println after the execution of for or if (fix #20524) (#20525) 2024-01-14 11:37:49 +02:00
Carlos Esquerdo Bernat
fd19458ca7
vweb: unify listen addres from tcp and print (#20448) 2024-01-14 11:13:37 +02:00
Delyan Angelov
9560d53516 builder: restore ability to use tcc, without fallback to cc on macos 2024-01-13 15:27:53 +02:00
Felipe Pena
ea6a5d8600
checker: fix missing check for struct initialization with @[noinit] attribute, through using T{} (#20516) 2024-01-13 15:23:36 +02:00