Andy Davidoff
a693ce7765
surgical fix for #13319 ( #13604 )
2020-03-08 10:55:19 +01:00
Clyybber
eae31a7f8d
Only print the link command when listCmd is active; fix docs ( #13603 )
2020-03-07 23:53:43 +01:00
Andreas Rumpf
83e715c5b6
fixes #5170 ( #13589 )
...
* fixes #5170
* make tests green
2020-03-05 16:02:34 +01:00
Andreas Rumpf
62c113ebc7
fix #13579 joinPath("/foo/", "../a") is now /a ( #13586 )
2020-03-05 15:31:22 +01:00
Andreas Rumpf
a0eca75182
sink parameter inference for types that have destructors ( #13544 )
...
* ensure capitalize doesn't take an inferred sink parameter
* sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec.
* sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required
* fixes yet another critical DFA bug
* better implementation that also understands if expressions etc
* document sink parameter inference and allow for global disabling
2020-03-04 14:28:53 +01:00
Andreas Rumpf
614fb7567c
std/compilesettings implementation ( #13584 )
...
* Implement compileSetting() and compileSettingSeq()
* Change from magic to vmop
* better design for querySetting
Co-authored-by: genotrance <dev@genotrance.com >
2020-03-04 13:46:42 +01:00
Timothee Cour
9fa070b1dc
fix hintSuccess: out was wrong for nim doc without -o flag ( #13569 )
2020-03-04 10:26:56 +01:00
Araq
8705ee7015
ARC hotfix; proper destruction of seqs and strings after a move
2020-03-03 23:03:33 +01:00
genotrance
f8175688a3
Fix docgen snippet numbering ( #13507 )
2020-03-03 20:52:16 +01:00
Arne Döring
eb42f38088
Remove dead magics ( #13551 )
2020-03-03 12:42:43 +01:00
PMunch
05e9473f80
Add signatures object to jsondoc for routine types ( #13530 )
...
jsondoc is meant to be read by computers, but yet the signatures of
procedures where simply a string of the whole thing. This adds a
signature object that unpacks this information into an object so it's
easier to analyse the documented signatures.
2020-03-02 17:52:42 +01:00
cooldome
0f1a4ac96c
make it possible to pass linker options for vcc ( #13535 ) [backport]
2020-02-29 18:57:00 +01:00
cooldome
c79df2fb6a
EndsInNoReturn in expressions extension, fixes #13490 ( #13520 )
...
* fix #13490
2020-02-28 09:55:06 +00:00
cooldome
25dc5f76e0
fixes #12627 ( #13521 )
...
* fixes #12627
2020-02-28 09:54:17 +00:00
Timothee Cour
1056f9ecff
properly handle note override logic/verbosity/config/cmdline using modifiedyNotes, cmdlineNotes
2020-02-27 13:22:18 +01:00
Timothee Cour
c1cbf94e2d
remove isCmdLine; use passCmd1
2020-02-27 13:22:18 +01:00
Timothee Cour
ce36fdc897
correctly honor cmdline --hint:conf:on/off ; correctly show Conf hints in order
2020-02-27 13:22:18 +01:00
Ganesh Viswanathan
96bffadf60
Fix #9405 - cfg and nims run in sync
2020-02-27 13:22:18 +01:00
Timothee Cour
6a0e87eb38
cleanup Ordinal ( #13501 )
2020-02-27 10:43:13 +01:00
Timothee Cour
bd90199a2f
fix #8312 --hints:off and --warnings:off now honored everywhere ( #13489 )
2020-02-26 10:26:47 +01:00
Arne Döring
5d2483fb64
fix #13479 ( #13503 )
2020-02-26 09:51:07 +01:00
Timothee Cour
1cf5c280e3
only enable linenoise for -d:nimUseLinenoise ( #13478 )
...
* only enable linenoise for -d:nimUseLinenoise
* fixup
2020-02-24 11:06:39 +01:00
hlaaftana
13d292786e
Remove genToArray in jsgen, a PHP remnant ( #13466 )
2020-02-22 20:04:46 +01:00
Timothee Cour
a43583f9c8
relativePath("foo", "foo") is now ".", not "" ( #13452 )
2020-02-22 09:07:53 +01:00
genotrance
7a2b623d2a
Fix #8648 - use parent streams to avoid hang ( #13445 )
2020-02-20 23:04:48 +01:00
Timothee Cour
273a93581f
fix incorrect lenTuple implementation ( #13423 )
2020-02-19 11:07:17 +01:00
Arne Döring
ccd2e044cb
fix bug in int128 ( #13403 )
2020-02-14 12:33:36 +01:00
cooldome
7dd787b8a3
fixes #13368 ( #13397 )
2020-02-14 10:13:55 +01:00
Andreas Rumpf
c446c0f57a
fixes #13378 [backport] ( #13392 )
2020-02-11 23:48:41 +01:00
Timothee Cour
eec07b4e84
fix several bugs with repr ( #13386 )
2020-02-11 21:33:06 +01:00
Timothee Cour
1f7c907e7d
fix #13374 nim c -r - now generates $nimcache/stdinfile ( #13380 ) [backport]
2020-02-11 00:37:40 +01:00
Arne Döring
2fee89f7db
fix #13255 ( #13275 ) [backport]
2020-02-09 13:51:36 +01:00
Timothee Cour
7939319379
fix is with generic types; fix genericHead(Foo[T]) ( #13303 )
...
* fix #9855 , fix #9855 , fix genericHead
* render TTypeKind via toHumanStr
2020-02-09 13:48:55 +01:00
Andreas Rumpf
240174dd81
fixes #13314 ( #13372 )
2020-02-09 00:22:34 +01:00
Timothee Cour
1f725f1d7e
miscellaneous bug fixes (part 3) ( #13304 )
...
* fix deprecation; fix indentation
* git clone: use -q
* fix Warning: pragma before generic parameter list is deprecated; fix typo
* bugfix: sysTypeFromName("float64") was never cached
2020-02-07 16:37:40 +01:00
Timothee Cour
79ec8c2571
fix #13182 : proc fun(a: varargs[Foo, conv]) now can be overloaded ( #13345 ) [backport]
2020-02-07 13:29:18 +01:00
Timothee Cour
c0a2e2ed92
replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple in dollars.nim ( #13347 )
...
* replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple
* fix for bootstrap
2020-02-07 13:27:28 +01:00
Andreas Rumpf
c87796180e
fixes #13269 ( #13344 )
2020-02-07 06:58:57 +01:00
Timothee Cour
7481f43753
fix #13349 regression: isNamedTuple now works with generic tuples ( #13350 )
2020-02-07 06:58:04 +01:00
Timothee Cour
7ec7731f82
fix #13150 nim doc --project now works reliably ( #13223 )
...
* fix #13150 `nim doc --project` works with duplicate names and with imports below main project file
* add to help; fixup after #13212 isRelativeTo got merged
* fix test tests/compilerapi/tcompilerapi.nim
* remove nimblePkg field; compute on the fly instead
* kochdocs: compiler docs now under compiler/
* --docRoot now has smart default: best among @pkg, @path
2020-02-06 11:17:00 +01:00
Timothee Cour
574f61315d
nim secret: support linenoise when available ( #13328 )
2020-02-05 16:44:19 +01:00
Ico Doornekamp
bfe96e069b
Fixed codegen for constant cstring with --gc:arc ( #13326 )
...
* Fixed codegen for constant cstring with --gc:arc, fixes #13321
* Added test for #13321
2020-02-04 17:39:27 +01:00
Timothee Cour
e70294dff2
enable testing -d:nimHasLibFFI mode ( #13091 )
2020-02-04 14:08:56 +01:00
Timothee Cour
4a747f0250
CT FFI: fix for windows; fix case transition; error msg shows more useful context ( #13292 )
...
* evalffi: fix case transition
* evalffi: fix for windows
* evallffi: `cannot import` errmsg now also shows which library it tried to import symbol from
2020-01-30 11:04:06 +01:00
Timothee Cour
81a43791f9
fix critical bug discovered by #11591 ( #13290 ) [backport]
2020-01-29 17:40:03 +01:00
Timothee Cour
9657a83698
removed unused import
2020-01-28 23:36:24 +00:00
Timothee Cour
5676912209
refactor htmldocs; gitignore it
2020-01-28 23:36:24 +00:00
cooldome
46bfb590c8
fixes #13281 ( #13282 )
...
* fixes ##13281
* add comment to test
2020-01-28 14:55:54 +01:00
hlaaftana
a71654323d
Clearer final objects error; fixes #13256 ( #13257 )
2020-01-26 18:56:04 +01:00
Araq
a10cc18247
ARC: optimize complete object constructors to use nimNewObjUninit
2020-01-26 13:43:02 +01:00