Delyan Angelov
c075e44ec1
ci,examples: fix v examples/sokol/simple_shader_glsl/simple_shader.v
, ensure it compiles on the misc-tooling
job ( #19404 )
2023-09-21 19:44:58 +03:00
yuyi
baf5d8a102
checker: fix generic comparison for conditional assignment ( #19401 )
2023-09-21 14:34:51 +03:00
yuyi
4f7dbbfa52
cgen: fix fixed array of option type default ( #19397 )
2023-09-21 09:45:23 +03:00
Yamamoto Haruhi
7169df3e57
builder: fix compiling code, importing a local module in src/modules
( #19396 )
2023-09-20 19:22:00 +03:00
Delyan Angelov
f93d257d29
all: support short lambda expressions like a.sorted(|x,y| x > y), in all callsites that accept a fn callback ( #19390 )
2023-09-20 17:22:16 +03:00
yuyi
175a3b2684
parser: fix fixed array of option values (_ := [10]?int{}
) ( #19392 )
2023-09-20 15:34:42 +03:00
asvln
6d56639cc1
orm: quote table and field name in [references]
( #19387 )
2023-09-20 08:56:58 +03:00
Delyan Angelov
cb9584fefe
ci: v fmt -w vlib/v/doc/doc.v and vlib/v/pref/os.v
2023-09-20 08:55:32 +03:00
Slashscreen
33754f43fa
all: support -os plan9
, $if plan9 {
, and _plan9.c.v
(stage 1 for plan9) ( #19389 )
2023-09-20 07:27:30 +03:00
yuyi
fdabd27be8
cgen: fix channel of interface ( fix #19382 ) ( #19383 )
2023-09-19 14:02:26 +03:00
Swastik Baranwal
f9334c8340
checker: disallow assigning pointer values to option struct fields ( #19380 )
2023-09-19 13:59:57 +03:00
Delyan Angelov
350a8d3b35
ci: fix ./v -W examples/eventbus/eventbus.v
after 551a065 (todo: perhaps it should be reverted completely)
2023-09-19 07:24:55 +03:00
Alexander Medvednikov
77219de173
ci: bring back gitly
2023-09-18 23:44:22 +03:00
Alexander Medvednikov
551a065ce6
eventbus: V ui on_key_down fix
2023-09-18 23:42:32 +03:00
yuyi
ff452cc514
cgen: fix interface with multiple embedded fields ( #19377 )
2023-09-18 23:22:19 +03:00
Swastik Baranwal
be53b02511
checker: require else
branch in [flag]
enum match ( #19375 )
2023-09-18 16:07:30 +03:00
Casper Küthe
74d80a5120
orm: add support for V enum struct fields ( #19374 )
2023-09-18 16:06:26 +03:00
yuyi
e1a48d6c2e
fmt: simplify formatting struct field comments ( #19373 )
weekly.2023.38
2023-09-17 19:45:43 +03:00
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