yuyi
ec0d5dd258
checker, cgen: fix printing smartcast interface variable ( fix #18886 ) ( #19372 )
2023-09-17 19:44:13 +03:00
shove
e6ba68703e
scanner: fix unknown escape sequence in ident_char ( fix #19363 ) ( #19369 )
2023-09-17 14:29:57 +03:00
Kim Shrier
92b452d8f8
freebsd: fix compilation of b/vlib/v/gen/c/testdata/translated_module.vv with tcc ( #19370 )
2023-09-17 08:12:12 +03:00
Casper Küthe
2002db703a
orm: support different foreign key types, not just an integer id ( #19337 )
2023-09-17 07:58:56 +03:00
Delyan Angelov
bfb22c29c9
ci: wait more in the doom-regressions and gg-regressions jobs, to reduce the chance of false positives
2023-09-17 07:11:11 +03:00
Delyan Angelov
9f5f82b2b7
all: do not warn/error for import flag as _
2023-09-16 23:41:20 +03:00
Delyan Angelov
248aec3203
checker: fix ./v -d trace_checker -usecache -o x cmd/v
2023-09-16 22:52:54 +03:00
Delyan Angelov
bb95a27618
parser: do not panic for v -silent -check-syntax bug.v
, where bug.v is mut z_buffer := [][]
2023-09-16 18:41:39 +03:00
Delyan Angelov
6698e2867a
docs: add a code sample showing how to delete rows with the builtin ORM
2023-09-16 17:36:22 +03:00
Delyan Angelov
b88840e376
ci: bump the timeout-minutes for vinix-build to 10, to reduce false positives
2023-09-16 17:17:13 +03:00
Delyan Angelov
cf0856cea9
tools: add -E flag to v test-parser
, that will show the partial source that caused the parser to fail with -no-builtin -check-syntax file.v
2023-09-16 17:17:13 +03:00
Delyan Angelov
f3dbf19cb4
scanner: show error, instead of panic, for a partial file without newline at end, containing: sb.write_rune(`\n
2023-09-16 17:17:12 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
...
* remove []int.reduce in favour of arrays.fold
* remove datatypes.Set.equal in favour of datatypes.Set.==
* remove datatypes.Set.difference in favour of datatypes.Set.-
* remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
* remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
* remove os.is_writable_folder in favour of os.ensure_folder_is_writable
Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
shove
255e72456b
cgen: fix assign the spawn or go expr to the []thread( fix #19365 ) ( #19366 )
2023-09-16 14:49:10 +03:00
Delyan Angelov
0b0499b425
fmt: move donut_card_input.vv to vlib/v/fmt/tests/
2023-09-16 14:05:35 +03:00
yuyi
8fee351c5b
ast, fmt: fix formatting type decl with anon struct 2 (related #19356 ) ( #19364 )
2023-09-16 14:01:02 +03:00
Delyan Angelov
2e0a6ea4d4
parser: fix ;
support for module x;
2023-09-16 13:41:51 +03:00
asvln
2cce907dcb
orm: add references
attribute to allow foreign key declarations on fields ( #19349 )
2023-09-16 12:04:32 +03:00
yuyi
09006fa5ac
ast, fmt: fix formatting type decl with anon struct ( #19356 )
2023-09-16 07:37:57 +03:00
Delyan Angelov
24cb98d5dc
parser: fix regression for v -e "import os; import math;"
, add a test to check it ( #19353 )
2023-09-15 09:59:05 +03:00
Artem Yurchenko
6f61d8ba78
github: add automatically info about voting to all new issues ( #19351 )
2023-09-15 09:50:50 +03:00
Delyan Angelov
d93488b141
vlib: add net.http.file, allowing for v -e "import net.http.file; file.serve()"
( #19348 )
2023-09-15 00:45:02 +03:00
Delyan Angelov
f3aec20000
all: support ;
statements, allowing for oneliners like ./v -e 'import os; println( os.ls(os.args[1])!.sorted(a > b) )' vlib/math
( #19345 )
2023-09-15 00:44:15 +03:00
Delyan Angelov
b746083b44
tools: skip _input.vv files in cmd/tools/git_pre_commit_hook.vsh, just report them without vfmt-ing them
2023-09-14 22:46:10 +03:00
Artem Yurchenko
50ab33180f
doc: add a guide for issues filtering in CONTRIBUTING.md ( #19347 )
2023-09-14 16:11:20 +03:00
Delyan Angelov
5d1f87c5aa
cgen: add support for -d trace_cgen_stmt
, document it in CONTRIBUTING.md
2023-09-13 15:10:26 +03:00
Turiiya
4d8b2e9995
toml: fix custom to_toml
for complex structs ( #19338 )
2023-09-13 12:48:14 +03:00
pancake
0244ae6fe9
net.ssl: implement SSLConn.peer_addr() ( #19333 )
2023-09-13 12:16:46 +03:00
Swastik Baranwal
f8ba4ba1fe
checker: disallow alias ptr cast of a map value ( #19336 )
2023-09-13 11:40:10 +03:00
Delyan Angelov
0e2dc381ab
v.help: use os.executable() instead of @VEXE as an anchor, so v help
will work more robustly.
...
With that change, `v help` will always work, even right after a V archive is downloaded,
and extracted in an arbitrary folder on another machine, without needing `v self` first.
weekly.2023.37
2023-09-12 23:11:33 +03:00
shuankio
a0490f2b67
net.http: fix post error with https on windows ( #19334 )
2023-09-12 15:43:13 +03:00
Casper Küthe
e8d133d548
orm: fix cgen inserting wrong array index ( #19324 )
2023-09-12 14:50:13 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields ( #19331 )
2023-09-12 14:44:38 +03:00
Wertzui123
c98e00c01f
regex: remove duplicate notice in the README ( #19332 )
2023-09-12 14:41:48 +03:00
Kim Shrier
282bb7408c
freebsd: fix compilation with the prebuilt tcc for programs doing import stbi
, by adding newline to last line of header files ( #19329 )
2023-09-12 11:40:41 +03:00
Felipe Pena
1ce4213afb
tests: add a missing shared map test ( #19322 )
2023-09-11 09:06:07 +03:00
Turiiya
140b5a3e39
toml: implement decode method for Doc
( #19318 )
2023-09-11 06:26:34 +03:00
Felipe Pena
81b30caf18
checker: fix typeof of typeof.name ( #19323 )
2023-09-11 02:32:22 +03:00
Felipe Pena
d275af2dbf
cgen, checker: fix opt const ( #19314 )
2023-09-11 02:30:05 +03:00
Alexander Medvednikov
d3e950b3a9
checker: more line-info logic
2023-09-11 01:40:34 +03:00
Alexander Medvednikov
b9a233b1a0
checker: more line-info logic
2023-09-11 01:38:09 +03:00
Turiiya
12dd6e8b39
toml: add comptime check if a supported type (struct) was passed to toml.decode
, when the type has no custom .from_toml
method defined ( #19317 )
2023-09-10 17:32:02 +03:00
yuyi
1218d88cfd
checker: check enum fields with duplicate value ( fix #19309 ) ( #19310 )
2023-09-10 17:28:25 +03:00
Kim Shrier
9145869110
cgen: fix the logic around the definition of VNORETURN and VUNREACHABLE (less warnings on FreeBSD) ( #19316 )
2023-09-10 17:26:29 +03:00
yuyi
7661b5a757
cgen: fix printing struct with thread field ( #19320 )
2023-09-10 17:03:42 +03:00
Subhomoy Haldar
b0fb9fb7ed
crypto.md5: change the Digest.write return type, from ?int
to !int
( #19311 )
...
Co-authored-by: Subhomoy Haldar <shaldar@componentsense.com>
2023-09-09 13:34:47 +03:00
Spydr
7230f252c8
native: make native tests pass on windows; refactor PE file generation ( #19140 )
2023-09-09 10:14:31 +03:00
Delyan Angelov
9f7902babc
ci: update containers_ci.yml to not try to install libexecinfo-static, which is not present on the latest Alpine image
2023-09-09 01:03:22 +03:00
Turiiya
1e38cc0986
checker: disallow module name duplicates in local names ( #18118 )
2023-09-08 23:33:35 +03:00
yuyi
3a2994bc80
cgen: cleanup go_before_stmt(0) ( #19308 )
2023-09-08 22:49:54 +03:00