17732 Commits

Author SHA1 Message Date
Turiiya
48800d4b0c
v.util: add diff tool color support detection (tested on linux and freebsd) (#21244) 2024-04-10 14:54:00 +03:00
Turiiya
b832b96da8
v.util: improve detection for opendiff when automatically searching difftools (#21241) 2024-04-10 10:57:08 +03:00
Delyan Angelov
056a44378c
Revert "v.util: improve color_compare_files (#21243)"
This reverts commit bfd53a9b3855e9675058e9fd59576079c38ebfe3.
It restores the ability to use diff.find_working_diff_command() and
customise the result with VDIFF_TOOL and VDIFF_OPTIONS.
2024-04-10 09:21:02 +03:00
Turiiya
bfd53a9b38
v.util: improve color_compare_files (#21243) 2024-04-09 20:38:41 +03:00
Delyan Angelov
4dcc9265e1
examples: add pidigits.v; optimise math.big's Integer divide a bit (#21239) 2024-04-09 17:01:05 +03:00
Delyan Angelov
d25e349020
checker: fix -parallel-cc regression (part 1, workaround .filter(fn[c]) used in checker/orm.v) (#21238) 2024-04-09 17:00:14 +03:00
Turiiya
95426d53f0
time: cleanup module (#21217) 2024-04-09 14:05:14 +03:00
Swastik Baranwal
cca426f69e
checker, cgen: allow for mut v in [12, 13, 14] { v+= 2 } (#21237) 2024-04-09 14:04:49 +03:00
Sudoer
294f7e4169
ast: add missing docstrings for vlib/v/ast/comptime_const_values.v functions (#21219) 2024-04-09 07:37:35 +03:00
Turiiya
82f283fdcb
ci: limit workflows to relevant paths, fix typo in workflow comment (#21228) 2024-04-09 07:33:16 +03:00
Turiiya
4afeac316a
vdoc: fix character escape in code blocks in readme contents (#21230) 2024-04-09 07:31:54 +03:00
Turiiya
ba74ab0ccf
vdoc: fix indention of readme when generating docs with -readme in project root (#21232) 2024-04-09 06:53:54 +03:00
Turiiya
efc395eb64
vdoc: don't add _docs directory when an out path is specified (#21233) 2024-04-09 06:50:50 +03:00
Felipe Pena
23532d4dec
cgen, checker: allow passing none to fn f(arg ?&Type) { (fix #21213) (#21231) 2024-04-09 06:48:36 +03:00
Turiiya
ca839b6e43
time: extract Duration related code into duration.v (#21229) 2024-04-09 06:40:46 +03:00
Turiiya
4ff3c85606
ci: remove redundant tests runs (#21235) 2024-04-09 06:39:44 +03:00
Felipe Pena
3db7b44894
os: fix double free in os.get_raw_line() (used by os.input), with -autofree (#21204) 2024-04-08 18:48:05 +03:00
Turiiya
427b6dbcbb
vdoc: improve line merging for readme contents (#21224) 2024-04-08 18:45:51 +03:00
Turiiya
4e8d00d368
vdoc: minor cleanup (#21225) 2024-04-08 18:39:50 +03:00
Ikko Eltociear Ashimine
0fd67b225c
math: fix occuring -> occurring typo in stats.v (#21227) 2024-04-08 18:39:01 +03:00
Turiiya
6a3d8d28b5
vdoc: fix indentation in module readmes (#21220) 2024-04-08 12:48:01 +03:00
Felipe Pena
19ef7689a6
cgen: fix comptime $if !autofree { (#21218) 2024-04-08 10:17:08 +03:00
Turiiya
38353088e0
vpm: optimize performance by adding filter when cloning (#21216) 2024-04-07 17:11:58 +03:00
Turiiya
4056353381
parser, checker: improve the error message for an unknown type (#21207) 2024-04-07 17:05:13 +03:00
Felipe Pena
d692d884e3
cgen: add autofree comptime check (#21197) 2024-04-07 09:43:23 +03:00
Turiiya
01a94483bc
fmt: extend import import alias reference map for submodules (#21200) 2024-04-07 09:36:51 +03:00
Turiiya
f7d178d8de
parser: update file path fields; use more expressive name for file path, remove obsolete file_name_dir field (#21202) 2024-04-07 09:34:24 +03:00
Turiiya
ef3a224ea1
os: clarify some doc comments (#21209) 2024-04-07 09:30:12 +03:00
Casper Küthe
d0cbfc1461
x.vweb: accept query params as method arguments (#21201) 2024-04-07 09:20:55 +03:00
Turiiya
c2c83f78f3
ci: remove -stats flag from tests (#21203) 2024-04-07 09:08:53 +03:00
Turiiya
ad17be5dfa
parser: remove redundant comments_mode field (#21198) 2024-04-06 21:10:12 +03:00
Felipe Pena
9d889842aa
x.json2: add a way to decode an array (#21186) 2024-04-06 12:33:50 +03:00
Turiiya
3d5dbcaaf5
vdoc: select first result when entering search term, use more explict query for header.doc-nav (#21193) 2024-04-06 12:32:46 +03:00
Turiiya
3a6cf5adfc
tools.vpm: debug-log to $VMODULES/cache/vpm.log if not running in debug mode (#21192) 2024-04-06 12:29:43 +03:00
Turiiya
31fdf580a4
ci: move build step for VPM site, into apps and modules ci, add concurrency config (#21191) 2024-04-05 21:00:36 +03:00
Alexander Medvednikov
5cbed731dc gg: draw_text with custom fonts 2024-04-05 18:09:47 +03:00
Turiiya
a7d68cbc2d
xml: update entity parse test (#21190) 2024-04-05 17:31:32 +03:00
Turiiya
254250d375
v: add @VMODHASH comptime variable to store the commit sha of a V module (#21091) 2024-04-05 11:27:50 +03:00
Kim Shrier
67db38ac4e
bitfield: correct a few typos (#21187) 2024-04-05 11:24:31 +03:00
4zv4l
38b3115a9c
breaking,net.ftp: allow to choose a different port than port 21 (change FTP.connect to accept host:port, not just a host address) (#21185) 2024-04-05 11:23:01 +03:00
Delyan Angelov
2c646bfadd
examples: allow for v run examples/sokol/06_obj_viewer /full/path/to/model.obj 2024-04-04 19:52:35 +03:00
Delyan Angelov
cd0e0b18ea
ci: mark both vweb and x.vweb versions of vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v as flaky
Both started failing randomly near a1d4712b from 2024-04-02 (mainly on the macos runner).
2024-04-04 16:15:47 +03:00
Felipe Pena
625048c5b4
x.json2,checker,toml: allow field.typ compile-time checking with MatchExpr and add array of option checking (#21171) 2024-04-04 12:43:59 +03:00
Turiiya
ba577e4e5f
parser, checker: move more match validation from the parser into the checker, add error for match without branches (#21181) 2024-04-04 12:43:22 +03:00
Delyan Angelov
d133f64c86
examples: add vtail.v, deprecate File.read_bytes_into_newline/1 in favor of File.read_bytes_with_newline/1 (#21182) 2024-04-04 11:09:06 +03:00
Turiiya
a458adefb7
v.utils: update githash to be able to get the githash of every passed project (#21178) 2024-04-04 05:26:11 +03:00
Turiiya
bb42e1ce73
checker: remove resolved vfmt workaround and TODO (#21175) 2024-04-03 20:58:59 +03:00
Turiiya
f9fa8d8e66
fmt: fix duplicates remove import comments (#21177) 2024-04-03 20:58:22 +03:00
Turiiya
55cafa9ba2
fmt: improve import processing, add test (#21172) 2024-04-03 17:52:28 +03:00
Delyan Angelov
4d24f8c3fc
ci: change listen ports in vweb_should_listen_on_both_ipv4_and_ipv6_by_default_test.v for both vweb and x.vweb, to reduce probability of network errors 2024-04-03 17:51:02 +03:00