encyclopaedia
04d28f2a74
arrays: add a partition function, that splits a given array, based on a criteria, passed as a callback fn ( #19417 )
2023-09-23 15:52:54 +03:00
yuyi
5905f63e95
parser: fix assigning with in another module sumtypes 2 ( #19415 )
2023-09-23 08:59:48 +03:00
Delyan Angelov
3fab3213b8
docs: update the $embed_file()
section ( #19416 )
2023-09-22 21:37:16 +03:00
yuyi
9929e956f0
parser: fix assigning with in another module sumtypes ( #19414 )
2023-09-22 18:00:26 +03:00
Delyan Angelov
ed42341642
pref,builder: support -use-os-system-to-run to workaround segfaults using not fully updated xcode command line tools
2023-09-22 14:10:01 +03:00
Tobias Neitzel
3fb1230cc3
toml: fix toml encoding of complex types ( #19408 )
...
* Improve default toml encoder for complex types
The default toml encoder failed for more complex structs, as certain
edge cases were not covered. This commit attempts to fix this by adding
additional handling for these edge cases.
* Improve map encoding
Since maps currently only support keys that have a string
representation, we can utilize this during map encoding.
* Add test cases for toml encoding
Added test cases for toml encoding of complex nested structs and structs
that contain maps.
* Add additional test cases
2023-09-22 13:00:10 +03:00
Delyan Angelov
edc9ff4f12
examples: add more .obj files for 06_obj_viewer ( #19406 )
2023-09-22 09:59:52 +03:00
yuyi
b440f693aa
cgen: fix fixed array with index variable ( #19405 )
2023-09-22 02:31:30 +03:00
Swastik Baranwal
5ddbbfcfd8
checker: allow using ! and ~ on aliased bool and integral types ( #19403 )
2023-09-21 19:46:26 +03:00
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