19314 Commits

Author SHA1 Message Date
Felipe Pena
4c8c892b96
cgen: fix codegen for option sumtype with option variant (fix #23653) (#23656) 2025-02-05 17:43:06 +02:00
Delyan Angelov
424c453610
fix warning when compiling cmd/tools/vast/vast.v, add description of -s to ast.txt too 2025-02-05 15:59:55 +02:00
Delyan Angelov
94a97f6173
tools: implement an -s option for v ast, to skip all nodes with default values like [], {}, 0, false; with it v ast -pts examples/hello_world.v | wc -l is 36 lines 2025-02-05 15:53:56 +02:00
Felipe Pena
eecaa64e9d
cgen: fix codegen for option value on map_set (fix #23650) (#23652) weekly.2025.06 2025-02-04 15:23:15 +02:00
Delyan Angelov
627cb37cca
tools: describe a more direct way to use a v run shebang in cmd/tools/vrun 2025-02-04 15:04:30 +02:00
Delyan Angelov
7ea5b4a020
tools: add a small utility script cmd/tools/vrun, to make it easier to use .vsh scripts on systems, with /usr/bin/env still not supporting -S 2025-02-04 14:54:38 +02:00
blackshirt
d30598bbca
crypto.ecdsa: migrate ecdsa.PrivateKey.new() to use a high level API (#23640) 2025-02-04 11:13:56 +02:00
gechandesu
4f85b35bb9
builtin: add string.split_by_space() (#23651) 2025-02-04 11:12:42 +02:00
Delyan Angelov
99a587af95
tools: let v test . show the running _test.v files each minute (set by VTEST_REPORT_RUNNING_PERIOD_MS); diagnose stuck windows gcc CI jobs (#23649) 2025-02-04 10:33:51 +02:00
Felipe Pena
abcebfed68
cgen: fix codegen for for or-block (fix #23625) (#23644) 2025-02-03 23:53:54 +02:00
Delyan Angelov
319eb83525
log: add log.use_stdout(), use it to silence the transition note for the most commonly used V tools/examples (#23642) 2025-02-03 12:37:57 +02:00
Felipe Pena
23c3af8b4d
cgen: fix unwrap option ptr selector (fix #23631) (#23638) 2025-02-03 12:32:26 +02:00
Eliyaan (Nopana)
7e157caed7
tools: add v reduce program.v, in order to make smaller reproductions (rpdc.v files), before filing cgen bugs (#23636) 2025-02-03 12:28:47 +02:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
Delyan Angelov
d4298cae23
docs: describe the v test options VTEST_HIDE_OK and -progress in TESTS.md (#23635) 2025-02-02 19:30:18 +02:00
Delyan Angelov
0132814512
cgen: fix hash functions for map[Enum]Value, and enum Enum as u64 { (fix #23630) (#23632) 2025-02-02 15:23:51 +02:00
Felipe Pena
f291ed8541
builtin: make public the FnGC_WarnCB alias (#23633) 2025-02-02 13:45:28 +02:00
Swastik Baranwal
535b04f4ed
v.parser: prevent unused warning on import mod { Sym }, when Sym is later used, for more cases (fix #23412) (#23626) 2025-02-02 10:51:17 +02:00
Felipe Pena
8f99e65425
v.parser: fix the error message position, for a struct Abc, that lacks a body (#23627) 2025-02-02 10:48:51 +02:00
Delyan Angelov
e68fab82c4
ci: fix CI=name ./v -d network test cmd/tools/vpm/ ; update the image runners in vpm_ci.yml (#23628) 2025-02-02 10:45:42 +02:00
Delyan Angelov
b8c7892f5e
v.util: show unknown command suggestions, for more misspelled variants, like v sefl; make util.new_suggestion calls parametrizable weekly.2025.05 2025-02-01 13:41:38 +02:00
Felipe Pena
862d6346fd
type_resolver: remove type_resolver.get_expr_type_or_default and type_resolver.is_comptime_expr (#23621) 2025-02-01 12:24:23 +02:00
Laurent Cheylus
b91bbad692
runtime: add note for the availability of the free_memory/0 implementation (#23620) 2025-01-31 19:43:56 +02:00
Felipe Pena
78effd0c09
type_resolver: refactor resolve_comptime_type (#23616) 2025-01-31 08:51:20 +02:00
blackshirt
e4d1011bb1
crypto.ecdsa: fix handling of sign() with custom_hash (#23619) 2025-01-31 08:37:57 +02:00
blackshirt
fc1cae5909
crypto.ecdsa: fix bug in .with_no_hash handling (#23612) 2025-01-30 12:29:00 +02:00
Delyan Angelov
3bc862dbb0
log,sync: fix macos CI failure when log.ThreadSafeLog is used explicitly in v download (#23613) 2025-01-30 11:41:23 +02:00
Delyan Angelov
ceaa5d2315
tools: restore previous behavior of v download (show progress on stdout, when it is connected to an interactive terminal; hide log stdout->stderr notice) 2025-01-30 01:48:36 +02:00
kbkpbot
7549020d1f
runtime: add free_memory/0 implementation for FreeBSD too (fix #23581) (#23594) 2025-01-29 23:38:14 +02:00
JalonSolov
1d700bef99
doc: rework strings section to clarify (#23610) 2025-01-29 19:53:45 +02:00
Delyan Angelov
d0ce8a2210
parser: keep track of the number of all scanned tokens too, and show it with -stats 2025-01-29 15:59:34 +02:00
Felipe Pena
8d51820620
parser: fix anon fn return type option/result followed by comment parsing in vfmt mode (fix #23607) (#23608) 2025-01-29 13:36:45 +02:00
Delyan Angelov
d0329181b5
v.debug: fix expect failures in v test-all, when running locally on Ubuntu (#23605) 2025-01-29 10:21:32 +02:00
Delyan Angelov
6fa3a4ebee
tools: make v check-md . print the actual length of lines too, when reporting errors/warnings about them (#23606) 2025-01-29 10:19:01 +02:00
JalonSolov
1197615b1c
docs: improve string description (#23604) 2025-01-29 01:34:41 +02:00
Laurent Cheylus
85f388958e
builtin: fix tests for map (fix #23601) (#23602) 2025-01-28 23:56:25 +02:00
Felipe Pena
a05ef999ff
builtin: add &u8.free() (fix #23592) (#23598) 2025-01-28 23:54:33 +02:00
Felipe Pena
15e3f6258d
checker: disallow constant modification on unsafe {} (#23588) 2025-01-28 12:55:45 +03:00
Laurent Cheylus
81fd0db8af
encoding.ut8: remove deprecated tests for utf8.is_uchar_punct/1 and utf8.get_uchar/2 (fix #23599) (#23600) 2025-01-27 19:37:27 +02:00
Felipe Pena
4eeae1cd93
cgen: fix codegen for unwrapping option comptime var (fix #23590) (#23591) 2025-01-27 19:23:43 +02:00
Delyan Angelov
aa4c06c5a8
crypto: cleanup the internal constant declarations 2025-01-27 12:08:42 +02:00
Delyan Angelov
71784e2342
ci: update last known good commit hash for herolib to ca8799af39228a5678a7be81128c5b0c342c9efc 2025-01-27 11:47:17 +02:00
Felipe Pena
c2e436518b
checker: fix private symbol visibility checking (fix #23518) (#23543) 2025-01-27 11:42:27 +02:00
blackshirt
1eaa7c81fa
crypto.ecdsa: split out the C wrapper to a new .c.v file (#23595) 2025-01-27 08:03:19 +02:00
Delyan Angelov
3343fb7935
make.bat: add note about antivirus programs on windows and compilation slowdowns (#23586) 2025-01-26 19:28:32 +02:00
Delyan Angelov
801600c0c7
examples,io: add sha256sum_with_io_cp.v, make the size of the buffer used by io.cp parametrisable (#23585) 2025-01-26 15:44:15 +02:00
Mike Ward
1d9aa88ca5
gg: mark create_image_with_size as deprecated (image resizing is done by stbi.resize_uint8/3, with a different fn signature) (#23580) weekly.2025.04 2025-01-26 08:04:17 +02:00
Laurent Cheylus
5bfea9d3e8
tools: fix v doctor output on OpenBSD: get gcc version from egcc; do not run ldd to get the glibc version (fix #23576) (#23578) 2025-01-26 08:01:32 +02:00
Laurent Cheylus
67a8c81803
runtime: add free_memory/0 implementation for OpenBSD (fix #23579) (#23583) 2025-01-26 07:57:28 +02:00
Laurent Cheylus
c225e0415a
encoding.iconv: add flag for OpenBSD to find iconv include and library (fix #23573) (#23575) 2025-01-25 19:41:05 +02:00