1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Commit Graph

  • bee355eb65 all: cleanup sqlite.connect statements (do not leave strange test.db or vweb.sql artefacts around, after running common tests) Delyan Angelov 2023-01-19 09:45:07 +02:00
  • 36834be2ad all: fix the remaining deprecated import sqlite statements (#17021) Minsoo 2023-01-19 16:37:55 +09:00
  • b69f9419f0 term: add missing documentation for all public functions in colors.v (#17033) Nahua 2023-01-19 08:09:09 +01:00
  • d850d3caba net.html: add get_tags_by_class_name (#17024) Minsoo 2023-01-19 02:00:46 +09:00
  • 6688c0f3d7 checker: fix generic fn infering error with alias argument (#17026) yuyi 2023-01-19 00:59:02 +08:00
  • 525c5e237a x.json2: add json2.map_from(t T) (#16797) Hitalo Souza 2023-01-18 13:55:04 -03:00
  • 2c78078814 cleanup: fix old usages of os.write_file/2? to os.write_file/2! Delyan Angelov 2023-01-18 03:18:05 +02:00
  • 6a9688ce9d checker, cgen: fix for mut i in arr { i = i * i } (#17020) yuyi 2023-01-18 15:22:38 +08:00
  • 1cad788779 checker: add error for type Alias = map[string]Alias (fix #17008) (#17015) Delyan Angelov 2023-01-18 01:34:43 +02:00
  • 88dab8fc2d all: clean up multiple 'is' infix expr (#17005) yuyi 2023-01-18 02:27:09 +08:00
  • 2fb9bdce9a cgen, checker: add panic in ORM for invalid queries, when there are no or {} blocks, add type checking for the fkey attribute, add tests (#16977) walking devel 2023-01-17 18:21:10 +00:00
  • 93ee6d107a encoding.base32: add missing documentation for all public functions (#16998) Nahua 2023-01-17 18:46:43 +01:00
  • 5dbdb211dc cgen: fix assignment from comptime var (#16999) Felipe Pena 2023-01-17 14:39:19 -03:00
  • a22dfe0ddf cgen: minor cleanup in dump_expr() (#17006) yuyi 2023-01-17 23:11:04 +08:00
  • 75d6cb9c3a checker: protect against unlimited recursion in Checker.ensure_generic_type_specify_type_names Delyan Angelov 2023-01-17 13:07:27 +02:00
  • 2034dcb4ed ast: fix const values defined in the wrong order (#17002) yuyi 2023-01-17 18:12:54 +08:00
  • 930e629d2e cgen: fix struct init with chan field (#17001) yuyi 2023-01-17 12:50:11 +08:00
  • 1302dbf02f checker: fix for..in statement with ComptimeSelector (#16997) Felipe Pena 2023-01-17 01:49:45 -03:00
  • f57b16a843 all: clean up multiple !is infix expr (#16993) yuyi 2023-01-17 12:48:44 +08:00
  • f634c6e0a4 checker: fix postfix var checking break (#16984) Felipe Pena 2023-01-17 01:47:51 -03:00
  • 21807f94a2 checker: check unsafe map index operation (#17000) yuyi 2023-01-17 12:47:16 +08:00
  • 6bf6a40e0c crypto: add .free() and .reset() methods to reduce memory leaks with -autofree (#16992) weekly.2023.03 MatejMagat305 2023-01-16 16:30:40 +01:00
  • 92fd12c18a crypto.sha256: add .free() and .reset() methods to reduce memory leaks with -autofree (#16991) MatejMagat305 2023-01-16 12:23:46 +01:00
  • e5fb457b19 checker: fix map with reference value (#16990) yuyi 2023-01-16 17:45:22 +08:00
  • 55787ff78f json2: refactor, doc, perf, test, errors (#16986) Hitalo Souza 2023-01-15 18:52:48 -03:00
  • 7a9a82879b checker: use a notice for now Alexander Medvednikov 2023-01-15 22:38:31 +01:00
  • aba7bcde85 checker: turn the pointer map notice into a warning and fix all code using it Alexander Medvednikov 2023-01-15 22:19:16 +01:00
  • e8108f21e0 checker: check option and result handling in type-casted aliases (#16988) Swastik Baranwal 2023-01-16 02:39:30 +05:30
  • 5f30110e2c hash: document all public functions (#16987) Nahua 2023-01-15 21:37:09 +01:00
  • 7db7951bd0 x.json2: fix: #16975 (#16983) Hitalo Souza 2023-01-15 17:09:02 -03:00
  • bfb47005c8 net.openssl, net.mbedtls: add support for -d trace_ssl, for easier tracing of binary protocol problems to https servers Delyan Angelov 2023-01-15 15:49:31 +02:00
  • 7f3531077d examples: improve the output of the websocket examples Delyan Angelov 2023-01-15 14:48:52 +02:00
  • 634f596d27 git: remove cruft Delyan Angelov 2023-01-15 13:54:26 +02:00
  • d4320863fe net: fix compilation with -d trace_tcp_data_write and -d trace_tcp_data_read; add .hex() dumping too for easier diagnosing of binary protocol level problems Delyan Angelov 2023-01-15 13:25:20 +02:00
  • 28cbaf66b8 json2: refactoring and fixes (#16893) Hitalo Souza 2023-01-15 07:30:33 -03:00
  • 4d2c767dcb checker: fix for $if field.unaliased_typ is $Int { (#16982) Felipe Pena 2023-01-15 07:27:08 -03:00
  • e8e1df6df9 tests: make VTEST_ONLY=panic ./v vlib/v/slow_tests/inout/compiler_test.v more useful as a filter Delyan Angelov 2023-01-15 11:37:48 +02:00
  • 2b4c60d07f tests: sort the .vv files in vlib/v/slow_tests/inout/compiler_test.v, before testing them, to have more predictable output Delyan Angelov 2023-01-15 11:34:10 +02:00
  • 877a1e511a checker: require unsafe for accessing a pointer map value Alexander Medvednikov 2023-01-15 02:33:51 +01:00
  • b25c9e8bbf examples: minor change after #16948 (#16965) Hitalo Souza 2023-01-14 22:39:51 -03:00
  • 7fd9b62b34 parser: fix type alias of fn with mut argument (#16974) yuyi 2023-01-15 03:38:46 +08:00
  • 199db81b23 json2: refactor after #16951 (#16976) Hitalo Souza 2023-01-14 16:30:29 -03:00
  • dbfb9c3a90 cgen, checker: var type checking at compile-time (#16951) Felipe Pena 2023-01-14 11:20:12 -03:00
  • b19db3a207 ci,term: add a term.set_tab_title/1 shim for windows too (for now just calling term.set_terminal_title/1) Delyan Angelov 2023-01-14 15:10:07 +02:00
  • 71e8fc8b38 checker: fix comptime if branch checking (#16938) Felipe Pena 2023-01-14 10:06:38 -03:00
  • 80cd9f820a checker,cgen: allow ?.str() on compile-time fields var (#16969) Felipe Pena 2023-01-14 10:04:13 -03:00
  • 6adafbb6ea term: add a separate term.set_tab_title/1 API for controling the current tab title in emulators like Konsole, that support many tabs Delyan Angelov 2023-01-14 12:00:39 +02:00
  • ca000292f1 cgen,js: support [autostr: allowrecurse] attribute, for allowing deep printing of data structures with pointer fields (trees, instead of graphs with cycles) (#16973) l-m 2023-01-14 20:30:39 +11:00
  • 7e05545a62 ci: v install pcre too, since it is now needed for gitly Delyan Angelov 2023-01-14 11:22:25 +02:00
  • 7c571c0945 term: fix set_terminal_title on nix Delyan Angelov 2023-01-14 11:08:49 +02:00
  • fd07f7df69 cgen: fix printing struct having fields of arrays of anonymous structs (#16953) yuyi 2023-01-14 06:41:31 +08:00
  • 41b9e513ca parser: add a better error message, for multiple attributes, used on the same struct field (#16954) Felipe Pena 2023-01-13 18:27:46 -03:00
  • 3832f076c5 docs: fix all db.pg docs being italic in html format (#16971) Ahmad Yasser 2023-01-14 06:25:24 +09:00
  • 89aa695fba checker: disallow non ptr struct values to voidptr fields (#16958) Swastik Baranwal 2023-01-13 20:35:18 +05:30
  • 64558df764 vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) yuyi 2023-01-13 23:02:32 +08:00
  • 2d8f160ef1 checker: replace the go keyword in error messages with spawn (#16960) walking devel 2023-01-13 11:23:51 +00:00
  • c766ce4fe5 fmt: fix removal of selective imported types, used as array elements (#16963) zakuro 2023-01-13 16:30:28 +09:00
  • ba091a36dd checker: fix unreachable code checking for sql ORM blocks (#16948) Felipe Pena 2023-01-12 10:36:44 -03:00
  • 33191e4538 ci,pg,net.openssl: fix pkgconfig paths for macos-12 Delyan Angelov 2023-01-12 15:21:59 +02:00
  • 148d57827c parser, fmt: fix fmt in struct declarations with a fields, declared to be arrays of anonymous structs (fix #16947) (#16952) yuyi 2023-01-12 19:21:29 +08:00
  • 9e78724a41 ci: use brew install libpq for installing the postgresql development libraries on macos Delyan Angelov 2023-01-12 11:54:55 +02:00
  • 22666f4f73 ci: build vpm on macos Alexander Medvednikov 2023-01-12 09:54:46 +03:00
  • 329b9f1a6a parser, fmt: fix fmt error in $tmpl(path) (#16949) yuyi 2023-01-12 13:03:38 +08:00
  • 49a434e11f pg: fix compilation on macs with clang (libpq installed through brew) Delyan Angelov 2023-01-12 02:21:00 +02:00
  • 131086b647 ci: workaround for $if prod { not working properly with msvc Delyan Angelov 2023-01-12 00:02:27 +02:00
  • 00cef70220 ci: fix -prod compilation of sokol apps Delyan Angelov 2023-01-11 22:37:41 +02:00
  • 60f4654bbe tools: make fast.v log all executed commands Delyan Angelov 2023-01-11 20:34:31 +02:00
  • d9339b09d6 sokol.memory: fix message logs on Android Delyan Angelov 2023-01-11 16:37:20 +02:00
  • 3f8aa77990 parser: fix tmpl using variable or const path argument (fix #16941) (#16943) yuyi 2023-01-11 19:31:48 +08:00
  • 3e9b06031c doc: fix v wrapper command mention (#16944) walking devel 2023-01-11 11:31:00 +00:00
  • b872487d82 cgen: allow ORM to work with DB aliases (#16939) Swastik Baranwal 2023-01-11 15:28:55 +05:30
  • e854051c1f thirdparty: update all sokol and fontstash headers with their upstream versions (#16940) Delyan Angelov 2023-01-11 11:29:38 +02:00
  • d1306ffcf5 checker,json2: relax checking of x.enum = integer at comptime; refactor json2 to clean it up (#16926) Hitalo Souza 2023-01-11 05:18:45 -03:00
  • 09f48455c5 checker,cgen: allow method.name checking in comptime (#16931) weekly.2023.02 Felipe Pena 2023-01-10 14:45:06 -03:00
  • cf95d77584 json2: small refactor after #16896 (#16911) Hitalo Souza 2023-01-10 06:08:11 -03:00
  • 8a986b994e tools: fix v new abc (#16933) Hitalo Souza 2023-01-10 04:36:21 -03:00
  • 1582db1a0a comptime: add support for T is $Alias and T is $Function (#16929) Delyan Angelov 2023-01-10 08:49:04 +02:00
  • 6a32c81070 tests: extract slow tests (prod, valgrind, inout, repl etc), from vlib/v/tests/ to vlib/v/slow_tests/ (#16892) Delyan Angelov 2023-01-09 23:47:03 +02:00
  • 33a99fe833 json2: fix encoding of struct fields that are aliases (#16925) Hitalo Souza 2023-01-09 17:43:01 -03:00
  • 0109fe66a6 os: make os.FileMode public (#16923) Yochem van Rosmalen 2023-01-09 21:34:36 +01:00
  • 51907618c3 cgen: fix code generated for a match expression, which returns function (#16922) Felipe Pena 2023-01-09 17:30:35 -03:00
  • 413a8b5f87 comptime: implement field.is_enum (#16920) Swastik Baranwal 2023-01-09 23:42:07 +05:30
  • c2eb4d7065 cgen: fix result or option of multi return (fix #16873) (#16915) yuyi 2023-01-09 22:20:15 +08:00
  • 286350aa9b cgen: fix json encoding of structs with option fields (skip the fields with a value of none) (#16916) yuyi 2023-01-09 21:33:08 +08:00
  • 2ec6e2b209 tools: fix v new <name> web (#16738) Hitalo Souza 2023-01-09 03:37:46 -03:00
  • 956b9f650c doc: improve the "Getting started" section (#16910) Wertzui123 2023-01-09 07:37:17 +01:00
  • 90941b3b1f all: change optional to option (#16914) JalonSolov 2023-01-09 01:36:45 -05:00
  • 241109516f checker, cgen: fix aliased optional or result fn call (#16908) yuyi 2023-01-09 02:04:17 +08:00
  • ed0500dcfd docs: add a section about the 3 forms of v init commands at the start (#16905) Hitalo Souza 2023-01-08 13:34:58 -03:00
  • fed8b49e46 vweb: add the v new <name> web command for starting new projects to the README.md (#16904) Hitalo Souza 2023-01-08 13:33:17 -03:00
  • 1b78f430ab checker, cgen: support $if T in [$Array, $Struct[operator for comptime type checking (#16896) Felipe Pena 2023-01-08 13:22:10 -03:00
  • 942130ff6e ci: make the v gret steps more robust to slow CI runners Delyan Angelov 2023-01-08 14:56:15 +02:00
  • a99149334c sync.pool: fix pointer cast warning (#16902) MatejMagat305 2023-01-08 11:34:46 +01:00
  • a60f34e6dd cgen: fix array_init generated code for reference var (#16894) Felipe Pena 2023-01-07 07:04:04 -03:00
  • 2aced13942 checker: disallow all operations beside assignment, on multi return values (#16890) Swastik Baranwal 2023-01-07 15:23:20 +05:30
  • 7fa7fec304 cgen: minor refactor - reduce repeated code (#16886) Felipe Pena 2023-01-07 06:49:57 -03:00
  • de2ed7497a ci: update struct_init_with_interface_pointer_and_embed_test.v to match 2119a24 Delyan Angelov 2023-01-06 15:01:33 +02:00
  • 725456cde0 ci: fix warnings in v -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v Delyan Angelov 2023-01-06 14:55:01 +02:00
  • 2119a240e8 checker: follow up to 43d8bc3, separate setting the default type for fields with default expressions into its own independent loop Delyan Angelov 2023-01-06 14:47:57 +02:00
  • 3b594d6cd8 checker, cgen: allow iterating over optional array fields (#16858) Felipe Pena 2023-01-06 03:33:11 -03:00