Delyan Angelov
43d8bc30f9
checker: fix unset type of a pointer field with default value, when a struct contains an embed ( fix #16882 ) ( #16883 )
2023-01-05 19:53:37 +02:00
Delyan Angelov
c1a9f42b05
ci: add vlib/v/tests/orm_sub_array_struct_test.v to the skip list for the tests-sanitize-undefined-gcc job
2023-01-05 19:51:44 +02:00
Swastik Baranwal
da68b2d369
checker: remove c.pref.is_test
exception for calling private methods in _other_ modules ( #16872 )
2023-01-05 15:41:18 +02:00
Hitalo Souza
3598e7d08e
orm: add tests for fkey:
relationship attribute and retrival of joined rows ( #16877 )
2023-01-05 15:20:15 +02:00
Hitalo Souza
8f217c00e5
x.json2: refactor/fix json2.encode, add more tests ( #16790 )
2023-01-05 15:17:38 +02:00
Felipe Pena
e3aee748ac
cgen: fix code generated for optional comptime var ( #16854 )
2023-01-05 10:54:51 +02:00
Delyan Angelov
19c9633896
builder: show a hint about v .
, on unknown errors, suggesting that the user tried to compile a single .v file from a multi file project ( #16878 )
2023-01-05 07:45:23 +02:00
Delyan Angelov
66438391d0
v.token,v.parser: use p.tok.kind.precedence(), instead of p.tok.precedence(), since token.Token struct values, are much larger, than just the token.Kind enum values
2023-01-04 17:50:51 +02:00
Delyan Angelov
f9e8a91cd0
v: move cmd/v/help/ to vlib/v/help, to simplify the interaction between module lookup & v recompilation ( #16867 )
2023-01-04 14:01:05 +02:00
yuyi
b8571c964d
cgen: fix json encode struct with optional field ( #16866 )
2023-01-04 12:41:07 +02:00
yuyi
0a6fc6d280
checker: fix generic stack of sumtype push() ( #16855 )
2023-01-03 18:29:29 +02:00
yuyi
2378b71f22
cgen: fix comptime if expr with optional or result call ( #16853 )
2023-01-03 14:38:08 +02:00
Swastik Baranwal
09766c44b6
checker: disallow struct{...val.$(field.name)}
( #16852 )
2023-01-03 10:21:32 +02:00
Hitalo Souza
2e54a8cb0e
x.json2: update tests ( #16847 )
2023-01-03 10:16:36 +02:00
Felipe Pena
bd2b216ac7
cgen,checker: fix method call with comptime var ( #16844 )
2023-01-03 10:14:23 +02:00
JalonSolov
395ee2b464
readme: add back align=center
to make github happy ( #16850 )
2023-01-03 10:12:08 +02:00
Ikko Ashimine
24189e02b5
tools: fix typo in vcomplete.v ( #16851 )
2023-01-03 10:11:06 +02:00
Delyan Angelov
3625a74ec5
os: add test for os.open_append ( #16846 )
...
* os: add test for os.open_append
* fix unclosed file in test_eof (it made os.open_append fail only on windows, since it got the previous file content, because the file was locked, and os.rm could not delete it)
2023-01-03 01:11:35 +02:00
Keito Tobichi
d5b9f7d026
io: fix typos ( fix #16839 ) ( #16840 )
2023-01-02 20:20:52 +02:00
Felipe Pena
b0d39814be
cgen, checker: fix conditional evaluation and code generation for $if/$else $if/$else for known true conditions ( #16823 )
2023-01-02 20:14:12 +02:00
Delyan Angelov
9bee702c62
readme: final update for the instructions for NixOS
2023-01-02 19:39:18 +02:00
Delyan Angelov
d91cf511ca
readme: update the instructions for NixOS with the correct ones
2023-01-02 19:35:10 +02:00
Delyan Angelov
c21949456e
readme: add instructions for installing the libraries needed for the graphics examples on NixOS
2023-01-02 19:30:01 +02:00
yuyi
f71572a50f
parser: fix array of functions direct call ( #16838 )
2023-01-02 14:12:07 +02:00
yuyi
9d49b69b69
ast: fix inferring generic struct ( fix #16830 ) ( #16831 )
2023-01-01 17:36:18 +02:00
yuyi
51bb630ea4
checker: fix generic fn with short generic struct init syntax ( #16828 )
2023-01-01 09:14:55 +02:00
JalonSolov
aaf3e25c3f
websocket: simplify and better handle handshake ( #16829 )
2023-01-01 09:04:09 +02:00
Delyan Angelov
d3a196977f
thirdparty: update stb_image.h to its latest version v2.27 ( #16825 )
2022-12-31 21:25:31 +02:00
Delyan Angelov
3364bf8600
cgen: add g.push_existing_comptime_values and g.pop_existing_comptime_values, use them inside Gen.comptime_for ( #16821 )
2022-12-31 18:29:19 +02:00
yuyi
1c151fbec9
cgen: fix struct optional field zero init ( #16814 )
2022-12-31 17:36:14 +02:00
Makhnev Petr
04cb6ae65f
tests: improve Teamcity test runner ( #16817 )
2022-12-31 17:26:18 +02:00
mfont
1e401d1433
bcrypt: fix issue #16769 security problem in compare_hash_and_password ( #16815 )
2022-12-31 17:18:43 +02:00
Felipe Pena
5daf39bc6a
cgen: fix typeof with comptime var ( #16816 )
2022-12-31 15:57:55 +02:00
yuyi
15c9153f1d
cgen: fix fixed array literal range index ( #16812 )
2022-12-30 13:59:54 +02:00
Felipe Pena
c10bc09e83
checker, cgen: allow $for in alias type ( #16810 )
2022-12-30 11:27:01 +02:00
Felipe Pena
f4cd3931fb
cgen: fix dump fn name using generic var ( #16805 )
2022-12-30 11:16:59 +02:00
Swastik Baranwal
828cd4fe79
checker: add check for implicit fixed array decomp in function varargs ( #16806 )
2022-12-30 01:06:41 +02:00
Felipe Pena
c7f1db2b8a
cgen: cleanup uneeded C code, when using selectorexpr on $if ( #16802 )
2022-12-29 20:30:42 +02:00
Delyan Angelov
6229f48830
checker,cgen: implement support for the new FieldData.is_alias field (part 2, follow up to a6bf20f
)
2022-12-29 19:14:13 +02:00
yuyi
6a8b6c010c
repl: minor cleanup in runner.v ( #16804 )
2022-12-29 17:55:57 +02:00
yuyi
36ab78d6da
parser, cgen: fix anon fn optional call in if expr ( #16803 )
2022-12-29 17:53:17 +02:00
Delyan Angelov
cd4ea16609
cgen: add more detailed cgen stage timing info on -show-timings
2022-12-29 17:33:40 +02:00
Delyan Angelov
a6bf20f3be
builtin: add .is_alias to FieldData too (part 1, unimplemented yet)
2022-12-29 12:43:55 +02:00
yuyi
f4b110b1a4
vrepl: fix $tmpl('hello.txt') ( fix #16789 ) ( #16793 )
2022-12-29 11:30:25 +02:00
Felipe Pena
ed06618498
cgen: fix generic func arg type when passing array compile-time field ( #16798 )
2022-12-29 11:23:57 +02:00
Felipe Pena
2ebd3f0cdb
checker,cgen: make boolean field.is_<field> accessible at compile-time as well ( #16796 )
2022-12-29 00:19:47 +02:00
Swastik Baranwal
ad9ca349dc
cgen: fix generics array delete ( #16794 )
2022-12-29 00:15:47 +02:00
Delyan Angelov
4718a818b8
vfmt: fix alignment of value formatting for "x := {.
: 1, ♖
: 2}"
2022-12-28 18:06:32 +02:00
Delyan Angelov
1709d175bb
tools/fast: make the header a link to /, to ease navigation
2022-12-28 13:51:26 +02:00
Delyan Angelov
101aa4aeb0
tools/fast: add navigation links to older stat pages
2022-12-28 13:35:30 +02:00