17004 Commits

Author SHA1 Message Date
Casper Küthe
d88ca11a4c
picoev, x.vweb: small fixes and backport changes from vweb (#20584) 2024-01-23 18:34:22 +02:00
Felipe Pena
2874e7cac0
cgen: fix interface generic smartcast (#20609) 2024-01-23 17:29:32 +02:00
Delyan Angelov
672fe9b8eb tests: make v vlib/os/os_test.c.v pass on windows, for users != admin, skipping the os.symlink checks 2024-01-23 17:03:01 +02:00
Pierre Curto
14c2e4c679
io: ensure BufferedReader.read_line() returns io.Eof, instead of error('none') (#20619) 2024-01-23 16:38:03 +02:00
gym603
51d412a5b6
os: fix an error in Process.win_spawn_process, not using stdout pipe in a cmd environment on 32bit Windows (#20613) 2024-01-23 16:34:01 +02:00
kbkpbot
73493c3a26
vlib: add a compress.zstd module (#20616) 2024-01-23 13:41:01 +02:00
Delyan Angelov
6209055272
parser: fix MyEnum.from(0)!, implement MyFlaggedEnum.zero() (#20623) 2024-01-23 13:00:28 +02:00
Kim Shrier
2b6490060a
examples: add casts to the term.ui callback functions to satisfy stricter type checking with newer versions of clang (or older ones with -cc clang -cstrict) (#20624) 2024-01-23 09:36:10 +02:00
André ldev
5b0f5081fd
debug: add command to clear the terminal in the $dbg prompt (#20625) 2024-01-23 09:15:38 +02:00
Delyan Angelov
9a857c11c6
testing: fix warning for compiling ./v cmd/tools/vtest.v 2024-01-23 04:13:14 +02:00
Delyan Angelov
020515406a
testing: implement a retry loop for *the test compilation* as well controlled with VTEST_MAX_COMPILATION_RETRIES, with a randomized delay between each try 2024-01-22 22:12:20 +02:00
Delyan Angelov
f31cf6add1 builder: allow for ./v -freestanding -cc riscv64-elf-gcc -d no_main -no-builtin -no-preludes -showcc -keepc x.v 2024-01-22 20:06:46 +02:00
Delyan Angelov
8b8239639b
parser, checker: allow #define X and asm riscv64 {} blocks in .v files, with -freestanding (make embedded usecases easier) 2024-01-22 19:53:53 +02:00
Pierre Curto
8f10326b6f
v.gen.c: initialize closures in shared library mode (#20630) 2024-01-22 19:01:53 +02:00
yuyi
9e8a159743
cgen: cleanup in expr_with_tmp_var() (#20626) 2024-01-22 18:58:06 +02:00
Delyan Angelov
1253b06df2
thirdparty: fix v cmd/tools/vcompress.v on FreeBSD 2024-01-22 18:38:48 +02:00
Delyan Angelov
6eeb8d7ca9
ci: bump image_family to freebsd-14-0 in .cirrus.yml (#20632) 2024-01-22 18:37:00 +02:00
Delyan Angelov
fe857f9fe3
v.util: make launch_tool more robust, when multiple v -b js file.v commands are run at the same time (all trying to recompile the JS backend program) (#20631) 2024-01-22 18:03:20 +02:00
Delyan Angelov
b593f6199a preludes: fix v -skip-unused -stats some_test.v 2024-01-22 12:26:18 +02:00
gym603
bc37c85cae
tests: make 'test-self' pass under msys2/MINGW32 (#20614) 2024-01-22 01:20:53 +02:00
Veru
55287b31ee
docs: update range for: 0-based index rationale (#20617) 2024-01-22 01:02:15 +02:00
Delyan Angelov
b42dd8bd06
v.util: make launch_tool failures more detailed (for the Text file busy; code: 26 case), bump tool_recompile_retry_max_count from 3 to 7 2024-01-22 00:50:04 +02:00
gym603
9f95ab7c5e
tests: make v test-self run _test.c.v files too (#20612) 2024-01-21 21:11:23 +02:00
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