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

28 Commits

Author SHA1 Message Date
Delyan Angelov
4cabf709e1
tools: add support for a |``v shared| markdown code tag, for illustrating code examples starting with module not_main` 2022-11-04 15:35:25 +02: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
41c85661ef
fix quadratic execution of VAUTOFIX=1 v check-md . when a long .md file has many examples, that have to be corrected. 2022-10-26 22:47:58 +03:00
Delyan Angelov
007430ef2b
tools: support VAUTOFIX=1 v check-md vlib/term/README.md for fixing unformatted examples without manual edits 2022-10-26 21:51:10 +03:00
Subhomoy Haldar
7f23abbf8c
docs: document the [noinit] attribute with an example (#15876) 2022-09-25 19:36: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
Markus F.X.J. Oberhumer
74bb5ae17a
os: add an optional "mode" parameter to os.mkdir and os.mkdir_all (#14887) 2022-06-30 13:49:47 +03:00
Delyan Angelov
a07d066e8f
tools: cleanup all temporary files on successfull v check-md . 2022-03-27 10:24:10 +03:00
Delyan Angelov
db50e79d26
tools: implement cgen tag for Markdown examples in v check-md (#13332) 2022-01-31 22:51:04 +02:00
Delyan Angelov
62c3ad4953
use os.quoted_path more 2022-01-22 22:22:22 +02:00
jeffmikels
7882915409
tools: better error messages for v check-md (#13149) 2022-01-13 01:15:43 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
yuyi
8be2be8311
all: change 'if !(a in b)' to 'if a !in b' (#11330) 2021-08-29 11:55:18 +03:00
Delyan Angelov
46ede3fb98
v check-md: reduce false positives for too long lines in various cases (real problems are easier to spot now) 2021-08-16 10:12:29 +03:00
Daniel Däschle
ed234188b7
scanner: fix single backslash in raw string (#10890) 2021-07-22 17:02:11 +03:00
Uwe Krüger
dc045806f9
docs: describe usage of atomic C functions (#10861) 2021-07-20 08:31:20 +03:00
Andreas Heissenberger
0918c130ee
tools: fix more strange edge cases for markdown links in v check-md (#10486)
* fix support for numbers in urls

* fix valid github link id creation
2021-06-17 12:53:25 +03:00
Andreas Heissenberger
7b52dbfdf8
tools: fix support for numbers in urls in v check-md (#10483) 2021-06-16 19:58:32 +03:00
Andreas Heissenberger
7983495c57
tools: improve v check-md by checking for broken TOC headline links (#10417) 2021-06-14 13:12:02 +03:00
Delyan Angelov
19e4f5ec73
tools: implement progres bar for v check-md . 2021-04-12 15:51:28 +03:00
Delyan Angelov
ee42dd914c
tools: make v check-md more strict about unformatted code samples in failcompile sections. 2021-04-12 15:11:57 +03:00
zakuro
0abb38472b
vcheck-md: minor cleanup (#9229) 2021-03-10 17:46:07 +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
Delyan Angelov
849cde245c
v: support dump(expr) (#9160) 2021-03-06 18:09:28 +01: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
Lukas Neubert
59c1c77bfe
check-md: fix missing default_command when nofmt was set (#8591) 2021-02-05 20:25:27 +02:00
Lukas Neubert
76ea3e7b41
tools/check-md: allow directories as args and deprecate -all flag (#8582) 2021-02-05 16:46:20 +01:00