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

1368 Commits

Author SHA1 Message Date
Delyan Angelov
c6947fde57
os: implement Process.set_work_folder/0 to set the initial working folder of the new child process (#17946) 2023-04-13 14:48:32 +03:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
Delyan Angelov
48d42287a9
v.markused: enable v -skip-unused -live run examples/hot_reload/bounce.v 2023-04-08 14:36:01 +03:00
Delyan Angelov
dce65c7f46
tools: make v watch webserver.v monitor files used through $tmpl as well 2023-04-06 00:45:25 +03:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
walking devel
8452644ec3
orm: enforce that queries always return a Result, a query-resulting array can be used as a V array in place. (#17871) 2023-04-04 08:23:06 +03:00
Delyan Angelov
e56e4b3e90
tools: use os.symlink(vexe, vsymlink) on Windows too (#17838) 2023-04-01 08:18:24 +03:00
yuyi
e1b8617c94
ast, cgen: fix generic closures with different generic types (fix #17829) (#17834) 2023-03-31 18:08:42 +03:00
Delyan Angelov
822acd78cb
tools: add test for VDOC_SORT=false ./v doc file.v 2023-03-30 16:53:12 +03:00
Delyan Angelov
214f72ba03 tools: support VDOC_SORT=false ./v doc time 2023-03-30 14:35:54 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Artem Yurchenko
713c95fcc8
Fix: vet false warning on brackets in documentation (#17767) 2023-03-25 21:51:45 +02:00
DJ-Dav
e7996a0792
tools: fix vls error unexpected token U in JSON (#17709) 2023-03-20 14:40:52 +02:00
Felipe Pena
9e7aeec215
sql: fix wrong field name on generated code (#17684) 2023-03-17 21:45:52 +01:00
Delyan Angelov
6e1e406288
vweb: implement live page reload in development, based on polling (useful with watch) (#17683) 2023-03-16 21:00:47 +01:00
Felipe Pena
b71c131678
cgen: fix map with comp-time reflection, improve comptime var handling (#17603) 2023-03-14 13:49:29 +02:00
Delyan Angelov
4ba7ad9446 tools: make v doctor more informative 2023-03-13 11:44:03 +02:00
Delyan Angelov
b2a71ecab2
pref: support v -e "println(2+5)" (#17605) 2023-03-12 00:42:36 +01:00
ChAoS_UnItY
ae6a48c0e3
all: rename it to index in array inits (#17543) 2023-03-08 20:51:45 +01:00
Petr Makhnev
c1f249af6c
test: handle compilation errors when running tests specially in the teamcity runner (#17511) 2023-03-05 10:14:23 +02:00
yuyi
17000ef7b6
checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
Delyan Angelov
e2daa84a33
ci: add windows and macos jobs for checking the wasm backend too (#17451) 2023-03-01 21:53:03 +02:00
walking devel
3682a9cf88
orm: allow use of mut db orm.Connection (#17439) 2023-03-01 00:49:30 +02:00
l-m
0625caad56
wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
walking devel
b7b6c2368e
orm: allow using connections, that were explicitly casted to orm.Connection too (#17427) 2023-02-27 23:54:03 +02:00
Delyan Angelov
91e0f7a3af
tools/fast: add 2023.html link to the header, used by fast.v 2023-02-27 11:40:22 +02:00
Delyan Angelov
9c511e03f6
tools: remove import v.pref, just for pref.vexe_path(), to compile tools faster (#17411) 2023-02-26 07:56:14 +02:00
Delyan Angelov
00aecf92e7
tools: make v self compile with tcc on Apple M1, since it is faster, and tcc now can handle it (#17409) 2023-02-26 01:26:33 +02:00
Sanath Kumar U
269462425a
tools: prevent v init from overwriting an already existing src/main.v file (fix #17362) (#17363) 2023-02-20 12:54:38 +02:00
Petr Makhnev
d971d93066
vccheck-md: add play and play-test command (#17350) 2023-02-18 20:55:10 +02:00
Felipe Pena
2879c5110c
cgen, check, parser: implement first-class option type (#17017) 2023-02-18 11:45:01 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
yuyi
b5b1efbb7b
cgen: fix sumtype as cast with calling twice (#17196) 2023-02-02 13:57:37 +02:00
Delyan Angelov
6572d597f9
Revert "cgen: fix sumtype as cast with calling twice (fix #17156) (#17183)"
This reverts commit 90ae3c82c9.
2023-02-02 10:49:15 +02:00
yuyi
90ae3c82c9
cgen: fix sumtype as cast with calling twice (fix #17156) (#17183) 2023-02-02 09:31:11 +02:00
Christopher Fore
2029d1830f
tools: remove cmd/tools/modules/vhelp/ & add print to v share (#17178) 2023-02-01 11:18:23 +02:00
Christopher Fore
10261c427f
tools: add v share file.v (#17172) 2023-01-31 20:36:17 +02:00
Christopher Fore
b3d742d13a
v.help: reorganise the folder layout of the v help topic text files (#17155) 2023-01-31 12:04:01 +02:00
Delyan Angelov
9c78e3c289
tools: fix v check-md . on windows too (skip thirdparty/ and the CHANGELOG) 2023-01-30 18:56:03 +02:00
l-m
bb512f782e
checker, ast: add field promoted_type for InfixExpr, filled in by the checker, to save duplicate work in the backends (#17158) 2023-01-29 21:06:05 +02:00
walking devel
4747e70d9d
orm: make last_id() return int, instead of orm.Primitive (fix #12110) (#17151) 2023-01-29 16:00:23 +02:00
walking devel
9a86456365
cgen: support string interpolation in ORM queries (#17141) 2023-01-29 01:27:34 +02:00
walking devel
a9a04bba55
orm: support fn calls in where (#17127) 2023-01-26 22:36:30 +02:00
Delyan Angelov
269833b72c
tools: move cmd/tools/vcreate.v and its test, to its own folder cmd/tools/vcreate/ (part 1) 2023-01-19 09:54:08 +02:00
Delyan Angelov
bee355eb65
all: cleanup sqlite.connect statements (do not leave strange test.db or vweb.sql artefacts around, after running common tests) 2023-01-19 09:45:07 +02:00
Minsoo
36834be2ad
all: fix the remaining deprecated import sqlite statements (#17021) 2023-01-19 09:37:55 +02:00
Delyan Angelov
1cad788779
checker: add error for type Alias = map[string]Alias (fix #17008) (#17015) 2023-01-18 01:34:43 +02:00
walking devel
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) 2023-01-17 20:21:10 +02:00
yuyi
64558df764
vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
Felipe Pena
ba091a36dd
checker: fix unreachable code checking for sql ORM blocks (#16948) 2023-01-12 15:36:44 +02:00