Commit graph

16981 commits

Author SHA1 Message Date
ScriptMaster
ea2d92d661
os: document os.ls (using readdir), add example (#20622) 2024-01-21 20:45:19 +02:00
Wertzui123
300b139966
help: fix a typo (#20621) 2024-01-21 20:31:31 +02:00
Delyan Angelov
a59d641bec
ci: update actions/setup-java@v2 to actions/setup-java@v4 in vab_ci.yml 2024-01-21 20:29:56 +02:00
Delyan Angelov
4991fc7491
testing: make the FAIL tests more verbose, to ease remote CI failure diagnostics 2024-01-21 17:46:24 +02:00
Delyan Angelov
65a1d2fdbd
ci: cleanup, macOS-latest -> macos-latest 2024-01-21 15:33:43 +02:00
GGRei
d413dece45
jsgen: fix javascript backend treating u32 as i32 (fix #20499) (#20618) 2024-01-21 14:40:53 +02:00
Muhammad Saleh Solahudin
7b6349f0a4
vweb,x.vweb: fix typos in README files (#20604) 2024-01-21 11:48:04 +02:00
Pierre Curto
d585e50281
x.json2: fix panic on calling json2.decode of an optional enum (fix #20593) (#20603) 2024-01-21 09:01:25 +02:00
Delyan Angelov
3e8c53568d
tools: support setting another SCANNER_MODE=parse_comments in parser_speed.v and scanner_speed.v 2024-01-21 08:16:51 +02:00
Felipe Pena
135e2f1cc6
debug: fix variable dereferencing (#20594) 2024-01-21 07:53:30 +02:00
Felipe Pena
9d048792fe
docs: add documentation for the new $dbg statement (#20598) 2024-01-21 07:50:56 +02:00
Muhammad Saleh Solahudin
a1eb94bbee
examples: fix link for image flappy.png in examples/flappylearning/README.md (#20605) 2024-01-21 07:48:32 +02:00
Felipe Pena
df3591ccc2
json: fix struct with option enum field (fix #20597) #20597 2024-01-20 19:54:12 +02:00
Muhammad Saleh Solahudin
bf8b7f08ef
examples: fix typo (exteranl -> external) and tidy up list in examples/regex/readme.md (#20601) 2024-01-20 19:53:16 +02:00
Swastik Baranwal
0d9e5e5747
checker: disallow static maps: mut static x := map[string]int{} (#20596) 2024-01-20 19:16:44 +02:00
Felipe Pena
9092d7fd64
checker: fix .variant smartcast on non-comptime variables (#20575) 2024-01-20 17:43:30 +02:00
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 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