Turiiya
f77bb32044
all: fix typos ( #21089 )
2024-03-25 12:18:27 +02:00
Rodrigo Abt
aa002a4019
toml: return an error from toml.parse_file(), when the passed file path does not exist ( #20912 )
2024-02-27 14:22:48 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform ( #20792 )
2024-02-12 12:38:47 +02:00
Alexander Medvednikov
f09826e928
all: unwrap const() blocks
2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax
2023-11-15 16:16:01 +11:00
Delyan Angelov
2362450340
ci: mark more tests as flaky
2023-11-06 12:23:11 +02:00
Delyan Angelov
0f424b8d54
ci: mark more tests as flaky
2023-11-05 10:21:33 +02:00
Turiiya
e465f7490c
tests: cleanup legacy temp path ( #19716 )
2023-10-31 15:16:19 +02:00
Turiiya
9051ac8921
all: fix typos ( #19634 )
2023-10-23 21:21:15 +03:00
squidink7
12ee3fa86a
toml: add decoding for struct fields of type map[string]T ( #19447 )
2023-09-26 12:53:24 +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
Turiiya
4d8b2e9995
toml: fix custom to_toml
for complex structs ( #19338 )
2023-09-13 12:48:14 +03:00
Turiiya
140b5a3e39
toml: implement decode method for Doc
( #19318 )
2023-09-11 06:26:34 +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
Turiiya
1bed0b5e68
toml: add generic automatic decoding and encoding of simple structs, when they don't implement custom methods ( #17970 )
2023-08-15 12:06:57 +03:00
Alexander Medvednikov
428fd7f57f
all: do not allow uninitialized function pointers
2023-08-03 21:06:36 +03:00
Delyan Angelov
466c80f80a
vlib: remove methods deprecated before 2022-07-22 ( #18944 )
2023-07-22 18:11:12 +03:00
Turiiya
af05cfcbbc
toml, semver: minor optimization of conditions ( #18299 )
2023-05-30 14:24:27 +02:00
Turiiya
27e1c20e3d
toml: fix multiline array bool scanner, add test ( #18068 )
2023-04-28 01:30:47 +03:00
Turiiya
bbfa25a17b
toml: fix scanner floating point detection ( #18062 )
2023-04-27 06:43:00 +03:00
Turiiya
8f767c9189
toml: update returns from option to result type ( #18065 )
2023-04-27 06:41:40 +03:00
Turiiya
a84fddbb91
toml: fix trailing comma in inline toml, add test ( #17977 )
2023-04-18 12:35:55 +03:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe ( #17923 )
2023-04-13 07:38:21 +02:00
yuyi
14148f3e52
toml: clean up autocast in parser.v ( #17662 )
2023-03-18 23:15:00 +03:00
Ahmad Yasser
cad2cd5583
docs: fix typos using codespell ( #17332 )
2023-02-16 11:43:39 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names ( #17210 )
2023-02-08 20:37:04 +02:00
JalonSolov
90941b3b1f
all: change optional to option ( #16914 )
2023-01-09 09:36:45 +03: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
yuyi
fd472d2d41
toml: minor cleanup in toml tests ( #16679 )
2022-12-15 10:16:42 +02:00
yuyi
ef5be22f81
all: replace generic <>
with []
- part 2 ( #16536 )
2022-11-26 18:23:26 +02:00
Subhomoy Haldar
f7a11b8e50
toml: update value_opt syntax and add missing documentation ( #16510 )
2022-11-22 19:45:12 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Ikko Ashimine
56239b4a23
toml: fix typo in parser.v ( #16430 )
2022-11-14 21:08:22 +03:00
Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
...
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.
NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
Delyan Angelov
968435fca6
toml: clearly mark the workaround [manualfree] tags with [autofree_bug; manualfree]
, so they can be found/removed when -autofree is fixed
2022-11-01 18:08:38 +02:00
Delyan Angelov
ffd9b9bae1
ci,toml: add a workaround for buggy -autofree
(skip -autofree compilation for some of the toml functions, that prevent VED to compile cleanly on the CI)
2022-11-01 17:52:41 +02:00
yuyi
612faac0f0
all: change index expr returning optional to result too ( #16097 )
2022-10-19 21:04:16 +03:00
Subhomoy Haldar
43b9a716c5
builtin,strconv: append ".0", to float string representations, to ensure clarity ( #16079 )
2022-10-17 15:41:07 +03:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number)
casts only inside unsafe{}
blocks ( #15932 )
2022-10-02 22:39:11 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function ( #15825 )
2022-09-21 19:45:43 +03:00
Delyan Angelov
f922ed0941
tests: unify all temporary files/folders under $VTMP/v
, that can be cleaned by v wipe-cache
( #15774 )
2022-09-16 04:56:19 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. ( fix : #15741 ) ( #15752 )
2022-09-15 07:59:31 +03:00
yuyi
e51f0be6db
checker: check taking the address of map field outside unsafe block ( #15737 )
2022-09-13 10:04:21 +03:00
Larpon
d40d761e38
toml: support [toml: '...'] attributes ( #15497 )
2022-08-22 20:39:55 +03:00
Larpon
84e375e38a
toml: update readme with value_opt() usage ( #14569 )
2022-05-31 19:02:33 +03:00
Delyan Angelov
4894f61998
toml: add pub fn (d Doc) value_opt(key string) ?Any {
and some tests for toml.parse_dotted_key/1
2022-05-28 09:18:18 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! ( #14366 )
2022-05-13 06:56:21 +03:00
Alexander Medvednikov
fbb9e65c0f
all: ~500 more byte=>u8
2022-04-15 18:25:45 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00