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

78 Commits

Author SHA1 Message Date
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
yuyi
17000ef7b6
checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +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
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
yuyi
0ff74dae63
vrepl: simplify and cleanup vrepl (#15807) 2022-09-18 18:07:16 +03:00
yuyi
c78344ef04
vrepl: fix output errors (fix #15801) (#15804) 2022-09-18 14:09:31 +03:00
yuyi
085a09ebdb
vrepl: fix output error of print and fn call (#15796) 2022-09-17 15:58:53 +03:00
yuyi
26443cf9fa
vrepl: fix array method call errors (fix #15769) (#15786) 2022-09-17 10:12:01 +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
yuyi
c662431cfd
checker: check unsafe array assign (fix #9651) (#15515) 2022-08-25 08:52:13 +03:00
l-m
8c33a40c5a
vrepl: implement the 'pin' command from crepl (#15371) 2022-08-07 14:06:50 +03:00
yuyi
251716fa0e
vrepl: fix error for exitasdfasdf in repl (fix #14593) (#14598) 2022-06-02 19:59:57 +03:00
pancake
5369379738
repl: handle exit(n) (#13930) 2022-04-04 16:22:34 +03:00
Delyan Angelov
aaf87e04a2
tools: make the mini greeting text in the REPL more informative 2022-03-20 23:22:46 +02:00
Delyan Angelov
7216b5df11
tools: force showing V errors in color in interactive REPLs 2022-03-20 23:04:20 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
igor
efdbe9d92c
repl: fix list command deleting '/'; adapt the logo to the terminal size (#13462) 2022-02-14 16:18:20 +02:00
Vincenzo Palazzo
bf11df40e2
readline: give the possibility to ignore the empty line in the history (#13452) 2022-02-14 00:12:25 +02:00
igor
9ff0c51e61
repl: reduce the vertical size used by V's logo, put it on the left of the info texts (#13451) 2022-02-13 11:41:36 +02:00
Vincenzo Palazzo
61024d4b75
repl: support aliased module imports too (#13423) 2022-02-11 15:03:14 +02:00
Vincenzo Palazzo
4e13ee22e9
repl: reproduce the void print function error (#13372) 2022-02-06 08:05:25 +02:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
zakuro
490dec222f
fmt: keep char literal, ' (#11060) 2021-08-06 06:21:28 +03:00
Delyan Angelov
6134c4870b
v.util: extract v.util.version, use it to speed up building v repl, v up and v doctor 2021-07-27 12:59:56 +03:00
William Gooch
51dd8304bb
tools: make the v REPL help screen look nicer (#10833) 2021-07-17 11:23:29 +03:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
Lukas Neubert
7664964c56
vfmt: format all of cmd/ and add it to v test-cleancode (#9418) 2021-03-24 23:37:10 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
yuyi
2870a5a63a
vrepl: fix array_filter (#9104) 2021-03-04 12:24:14 +02:00
Swastik Baranwal
b65ec6e867
cmd/repl: add functionality to use custom programs on the startup (#9055) 2021-03-03 07:53:05 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Delyan Angelov
03d5bfbc95
repl: use os.temp_dir() for the temporary .noprefix.vrepl.v files 2021-02-08 09:44:04 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
yuyi
01e098aa77
vrepl: fix v repl on Windows (#7798) 2021-01-02 12:17:39 +01:00
cbracketdash
0210d1bf24
vrepl, term: return cursor to the top-left corner in vrepl after clear (#7600) 2020-12-27 13:43:36 +02:00
zakuro
9d71a54a61
repl: fix readline history (#7596) 2020-12-27 12:41:48 +02:00
Andréas Livet
a2ec52b8c4
builtin: rewrite string.split_nth and fix some bugs (#7189) 2020-12-08 10:51:47 +02:00
Delyan Angelov
d67e177733 ci: run v vet over cmd/tools and cmd/v too 2020-10-21 15:26:29 +03:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Delyan Angelov
62f6e65509 repl: fix reset; make echo "print(2.0 * 3.14159)" | ./v print only the result 2020-10-11 10:50:24 +03:00
Maciej Michalec
1152bbd243
repl: fix recognizing anonymous functions defs as function calls (fix #5006) (#6070) 2020-08-05 16:18:28 +02:00
Alexander Medvednikov
e9e437ce05 repl: show short version 2020-07-03 22:30:34 +02:00
yuyi
9e949622d3
vrepl: pre-imported common modules (#5643) 2020-07-03 18:06:36 +02:00
yuyi
31104d73b9
vrepl: minor optimization (#5633) 2020-07-03 11:22:34 +02:00
Maddi Kopfermann
f5fca00d37
repl: add some array functions 2020-06-28 11:24:38 +02:00
yuyi
5f36874c9b
vrepl: fix optional call 2020-06-24 12:45:48 +02:00