Commit graph

2229 commits

Author SHA1 Message Date
Delyan Angelov
15f0f8a481
vdoc: support v doc -check-examples -f none vlib/builtin 2025-08-13 16:49:33 +03:00
Delyan Angelov
5058fd7b79
vdoc: improve failed example report 2025-08-13 16:37:24 +03:00
Delyan Angelov
2e3f0b27f0
builtin,vdoc: make v doc -unsafe-run-examples -time -f ansi vlib/builtin/ pass too 2025-08-13 16:28:37 +03:00
Delyan Angelov
82cd81e963
builtin,vdoc: fix the examples for the builtin methods, so that v doc -check-examples -time -f ansi vlib/builtin/ pass 2025-08-13 16:22:47 +03:00
Delyan Angelov
89c470bbba
ci: run VAUTOFIX=1 v test cmd/tools/vdoc to update cmd/tools/vdoc/testdata/run_examples_bad/main.comments.out 2025-08-13 15:25:08 +03:00
Delyan Angelov
6538b624e1
vdoc: implement -unsafe-run-examples and -check-examples support, add tests and document them 2025-08-13 14:26:04 +03:00
Delyan Angelov
ab80c767bd
vdoc: extract vdoc_run_examples_test.v from vdoc_file_test.v
Some checks are pending
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
2025-08-13 13:03:01 +03:00
Delyan Angelov
e33dcabcc1
vdoc: make -run-examples compatible with all output modes, not just the plaintext one 2025-08-13 12:57:25 +03:00
Felipe Pena
21d9a5ded5
parser,checker,cgen: remove unused err declaration or or { } blocks (#25034)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
json decoder benchmark CI / json-encode-benchmark (push) Has been cancelled
json encoder benchmark CI / json-encode-benchmark (push) Has been cancelled
2025-08-05 10:48:17 +03:00
Felipe Pena
b74e60b5a2
cgen,markused: remove unused enum declarations too (#25033) 2025-08-04 08:44:21 +03:00
Delyan Angelov
f38ca9b825
tools: fix vdoc tests after the vlang/markdown -> html <h2 id="title-topic">Title Topic</h2> change 2025-08-01 20:48:26 +03:00
Delyan Angelov
d1696104c9
tools: use Copying instead of Generating for the static resources in ./v doc -m -f html vlib/
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Has been cancelled
2025-08-01 18:47:49 +03:00
Delyan Angelov
2a9d1b204b
tools: improve the output of ./v doc -m -f html vlib/ 2025-08-01 18:44:40 +03:00
Delyan Angelov
35e925a2f1
vdoc: fix overlapping fn titles on mobile browsers in portrait mode
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
json decoder benchmark CI / json-encode-benchmark (push) Has been cancelled
Code CI vlib modules / lint-module-docs (push) Has been cancelled
2025-08-01 11:11:06 +03:00
Delyan Angelov
5ec3cc17e1
markused: improve the tracking of used closures (#25009)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Waiting to run
2025-07-31 20:41:43 +03:00
Delyan Angelov
6da1923884
ci,tools: implement support for VREPEAT_SILENT=1 and v repeat -S, to only show the summary of the runs, without the progress lines
Some checks are pending
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Waiting to run
2025-07-31 12:29:06 +03:00
Delyan Angelov
5a4dbf19d0
tools: fix return"" in vdoc html output (fix #24979)
Some checks are pending
vlib modules CI / build-module-docs (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
Workflow Lint / lint-yml-workflows (push) Waiting to run
2025-07-31 10:33:35 +03:00
Delyan Angelov
b876644e82
parser,ast,checker,cgen: use enum comparisons instead of string ones on ast.ComptimeCall.method_name (#25003)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Has been cancelled
native backend CI / native-backend-windows (push) Has been cancelled
Sanitized CI / sanitize-undefined-clang (push) Has been cancelled
Sanitized CI / sanitize-undefined-gcc (push) Has been cancelled
Sanitized CI / tests-sanitize-address-clang (push) Has been cancelled
Sanitized CI / sanitize-address-msvc (push) Has been cancelled
Sanitized CI / sanitize-address-gcc (push) Has been cancelled
Sanitized CI / sanitize-memory-clang (push) Has been cancelled
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Has been cancelled
wasm backend CI / wasm-backend (windows-2022) (push) Has been cancelled
2025-07-30 13:59:36 +03:00
Felipe Pena
396dc77a20
markused: reduce hello world csize by 49%, do more cleanups and improvements (#24971) 2025-07-29 09:00:57 +03:00
Delyan Angelov
34cfe19ae3
tests: bump timeouts in cmd/tools/vtimeout_test.v to reduce false positives when the CI runners are slow 2025-07-25 19:07:50 +03:00
Delyan Angelov
05479f3bd9
tools: improve alignment for v repeat "program" "program_that_is_over_10x_faster" 2025-07-24 15:46:54 +03:00
Felipe Pena
ae1fa8aced
markused: skip unused symbols, dump fns and generic specialization (fix #24921) (fix #24927) (#24924) 2025-07-23 08:50:31 +03:00
Delyan Angelov
35af6a8d12 docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
Delyan Angelov
a011888612 tools: skip _test.v and _test.c.v files in find_doc_comments_with_no_dots.v 2025-07-02 16:20:51 +03:00
Delyan Angelov
e6bbcbd168 tools: improve summary output of find_doc_comments_with_no_dots.v 2025-07-02 15:44:44 +03:00
Delyan Angelov
7f53acfec8 tools: add find_doc_comments_with_no_dots.v 2025-07-02 15:38:08 +03:00
Felipe Pena
b909e2eb37
parser, cgen: fix static and volatile var deref (fix #24778) (fix #24779) (#24807) 2025-06-29 07:29:29 +03:00
Delyan Angelov
5cd799e5ac
tools: add cmd/tools/gg_split_memdump_to_frames.vsh to ease working with memdump.bin files generated by gg programs (split by frames) 2025-06-26 15:01:00 +03:00
Delyan Angelov
91a3844ad5
tools: add support for // vtest vflags: -w in _test.v files, to allow v -W test . later, for files, that have known warnings 2025-06-22 12:43:04 +03:00
Laurent Cheylus
e6a1983325
crypto.ecdsa: add support for OpenSSL on OpenBSD (#24772) 2025-06-22 12:35:30 +03:00
Delyan Angelov
da97e0a2e4
tools: fix for v build-tools and v build-examples running on a i686 (the problem was discovered by @tankf33der) 2025-06-21 17:50:31 +03:00
Delyan Angelov
b00f68cb2b
tools: make the output of v should-compile-all more immediately useful in CI jobs (turn off stdout buffering) 2025-06-21 16:33:22 +03:00
Delyan Angelov
e50698aaa4
v.vmod,tools: support a repo_branch property in v.mod files, in addition to the existing repo_url property, to allow for backlinks to repos that use main instead of master as their core branch 2025-06-19 19:46:29 +03:00
Alexander Medvednikov
b9e5757236 V 0.4.11 2025-06-19 03:13:15 +03:00
gechandesu
e7905ea841
tools: make v doc -f md module output useful by default (#24737) 2025-06-17 07:00:08 +03:00
Laurent Cheylus
b77887ee22
tools: remove specific case for FreeBSD in cmd/tools/vtest_test.v (#24707) 2025-06-12 22:27:27 +03:00
Delyan Angelov
b6ccca23a0
ast: reduce memory usage of ast.ScopeObject and ast.Ident instances (#24704) 2025-06-12 17:14:05 +03:00
Delyan Angelov
a13821a951
tools: ignore .db and .sqlite files by default in v watch (such DB files are very likely to change during prototyping) 2025-06-05 18:47:00 +03:00
kbkpbot
8c573cf355
runtime: make free_memory() and total_memory() return Result types to allow for reporting errors (#24651) 2025-06-04 22:35:49 +03:00
Felipe Pena
bfc6d5469f
comptime: fix T.indirections comparison (fix #24630) (#24636) 2025-06-02 10:17:24 +03:00
Louis Schmieder
73ebf42015
orm: add IN and NOT IN (#24634) 2025-06-02 03:49:10 +03:00
Delyan Angelov
e90c0a8eb0
tools: ease diagnosing CI failures of vtimeout_test.v 2025-05-31 14:55:17 +03:00
Delyan Angelov
ff85408722
ci: fix unused var warning in cmd/tools/vpm/common.v 2025-05-21 13:42:50 +03:00
kbkpbot
11ee29c3cf
tools: make v search ui work again through the vpm site (fix #23966) (#24535) 2025-05-21 06:02:39 +03:00
Delyan Angelov
9e10b2392d tools: make v doctor show CFLAGS and LDFLAGS too (if set) 2025-05-20 15:24:36 +03:00
yuyi
b1fefc5e0c
repl: fix typeof(a) with warning (fix #24499) (#24515) 2025-05-19 14:02:32 +03:00
Delyan Angelov
0b547598f5
ci: use a different starting port for the hg server web server processes in the different tests, to minimise the chances of conflicts 2025-05-15 12:14:49 +03:00
Delyan Angelov
226e1d6442
tools: let cmd/tools/vpm/install_test.v use a .hg/hgrc file too 2025-05-15 12:10:39 +03:00
Delyan Angelov
e3218ff73e
tools: use a .hg/hgrc file for install_version_test.v (workaround windows failure) 2025-05-15 11:59:37 +03:00
Delyan Angelov
73b5423b6f
ci: show hg version too, to ease the diagnosing of install_version_test.v failures 2025-05-15 11:32:24 +03:00