Andreas Rumpf
6085ad95ff
fixes #14279 ( #14618 )
2020-06-09 20:39:26 +02:00
Andreas Rumpf
b3029ba213
fixes #14578 ( #14615 )
2020-06-09 17:05:01 +02:00
lbartoletti
30c09e4607
[OpenBSD] Add arm support ( #14608 )
...
* add arm support to openbsd
* use clang on openbsd
2020-06-08 20:06:04 +02:00
Andreas Rumpf
e3f80e434a
fixes #14557 ( #14607 )
2020-06-08 14:32:45 +02:00
Clyybber
52841dba09
Fix #14568 ( #14583 )
...
* Fix #14568
* Add testcase
* Fix bogus test
* Adapt other failing tests
* Declarations are always first writes
2020-06-07 23:32:41 +02:00
Andreas Rumpf
754a196d47
fixes #14315 ( #14594 )
2020-06-07 23:29:26 +02:00
Andreas Rumpf
419dbd573d
fixes #14118 ( #14595 )
2020-06-07 20:11:42 +02:00
Andreas Rumpf
66c50c2ffc
implement the 'bind' statement for generics, it was an oversight that this was never implemented ( #14584 )
2020-06-07 09:55:56 +02:00
Andreas Rumpf
32083c7ff8
more precise analysis about 'observable stores' [backport:1.2] ( #14582 )
2020-06-06 21:28:46 +02:00
Timothee Cour
61f2f1f5c5
fix #14576 addr of param (including for lent) now works with nim js ( #14577 )
...
* fix #14576 addr(param) now works in nim js
* workaround https://github.com/nim-lang/Nim/issues/14578
2020-06-06 20:15:24 +02:00
Araq
336f1e63d0
reorder.nim: fixes the indentation
2020-06-06 20:08:57 +02:00
Danil Yarantsev
b19ad22b90
Fix #14570 ( #14571 )
...
* Fix #14570
2020-06-06 09:31:19 +02:00
Timothee Cour
7cdf470269
refs #14545 fix snippet errors: avoid showing confusing errors when they are expected ( #14569 )
2020-06-05 19:04:39 -07:00
Araq
0824fdd061
fixes #14562
2020-06-05 16:15:13 +02:00
Timothee Cour
01f6e505c8
bug fixes with sfMainModule, hints, mainPackageNotes, mainPackageId, hintSuccessX ( #14555 )
...
* SuccessX `out` now works with --compileOnly and jsonscript; fix bugs in jsonscript
* several bug fixes; eg: `nim doc lib/system/io` now is sane
* dummy edit to force docs CI
2020-06-04 10:40:17 +02:00
Timothee Cour
4ba34522f6
[cleanup] docgen: remove docOutdir now that outDir is always set ( #14554 )
2020-06-03 19:20:41 -07:00
Timothee Cour
4301a3da9d
* honor --errorMax even for tools (eg drnim, nim doc) ( #14546 )
...
* fix a bug that prevented nim doc compiler/nim on windows
2020-06-02 18:54:33 +02:00
cooldome
e5b64af831
Implement rendering of []=, {}, {}= braces ( #14539 )
...
* render curly braces
* fix typo
* fix test
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-06-01 19:56:17 +02:00
Timothee Cour
3cf88c2b49
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + various other fixes ( #14501 )
...
* update doc CI filter to include the files mostly likely to require doc rebuild
* remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes
* walkDirRecFilter, factor nativeToUnixPath workaround
* glob for getRst2html
* docslocal: 40s to build all docs
* revert code dedup in github actions which did not work alas...
* fixups
2020-06-01 19:21:41 +02:00
Andreas Rumpf
75e579ff8e
parser.nim: minor refactorings ( #14540 )
2020-06-01 19:04:28 +02:00
Danil Yarantsev
3698f197f1
Change severity of template instantiation message [backport] ( #14526 )
...
* Change severity of template instatiation msg
* Add a test
* Trailing newline argh
2020-06-01 17:07:01 +02:00
Timothee Cour
0a27cca4b5
runnableExamples: correctly handle multiline string litterals ( #14492 )
...
* runnableExamples: correctly handle multiline string litterals
* address comments: improve doc comments + variable namings
2020-06-01 15:56:29 +02:00
Andreas Rumpf
0db148163b
fixes --warningAsError implementation ( #14538 )
2020-06-01 15:41:14 +02:00
Danil Yarantsev
00ec43305e
Fix compiles for nimsuggest [backport] ( #14527 )
...
* Handle nimsuggest in tryExpr
* Added test
2020-06-01 15:06:45 +02:00
Khronos
5900d8442c
Fix a problem with extra build commands. ( #14528 )
...
When --compileOnly is on, extraCmds are not added to JsonBuildInstructions.
```
$ echo 'echo 123'>test.nim
$ nim c --debuginfo --nimcache:cache test
$ ls
cache test test.dSYM test.nim
$ tail -n3 cache/test.json
"extraCmds": ["dsymutil /Users/khronos31/src/tmp/test"],
"stdinInput": false
}
```
```
$ echo 'echo 123'>test.nim
$ nim c --debuginfo --nimcache:cache --compileOnly test
$ nim jsonscript --nimcache:cache test
$ ls
cache test test.nim
$ tail -n3 cache/test.json
"extraCmds": [],
"stdinInput": false
}
```
2020-06-01 14:06:25 +02:00
Andreas Rumpf
8710395a0f
fixes #14514 [backport:1.2] ( #14533 )
2020-06-01 12:33:13 +02:00
Andreas Rumpf
52c3633223
warn about observerable stores but don't prevent them for 1.2.2 [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 ( #14510 )
2020-05-30 19:38:51 +02:00
Andreas Rumpf
7ccc7d7e93
fixes #14498 [backport:1.2] ( #14503 )
2020-05-30 15:32:31 +02:00
Andreas Rumpf
3105909f88
fixes #14495 [backport:1.2] ( #14496 )
2020-05-29 23:35:57 +02:00
Timothee Cour
63d1a0289e
fix #14421 items uses lent T ( #14447 )
...
* fix #14421 items uses lent T for seq + openArray
* add -d:nimWorkaround14447
* fix test
2020-05-29 17:10:59 +02:00
Timothee Cour
e646c16e06
hotfix doc comments for procs without body ( #14494 )
2020-05-29 05:30:36 -07:00
Andreas Rumpf
e31ac81899
more checking for --gc:arc, no need for valgrind ( #14467 )
...
* sigmatch: removed dead code
2020-05-29 12:08:17 +02:00
Neelesh Chandola
4c08e64e98
disallow typedesc in arrays & move existing checks to types.typeAllowedAux ( #13261 )
...
* disallow typedesc in arrays and move previous checks to types.typeAllowedAux
2020-05-29 11:48:15 +02:00
Timothee Cour
579456d520
fix #14485 ( #14487 )
2020-05-28 19:00:36 -07:00
Timothee Cour
e013ebc91a
fix #8871 runnableExamples now preserves source code comments, litterals, and all formatting; other bug fix ( #14439 )
...
* fix #8871 runnableExamples now preserves source code comments, litterals, and all formatting
* remove orig deadcode from getAllRunnableExamplesImpl
* fix expected examples
* add test to close https://github.com/nim-lang/Nim/issues/14473
* correctly handle regular comments before 1st token inside runnableExamples
* add test to answer https://github.com/nim-lang/Nim/pull/14439#discussion_r431829199
* update tests
2020-05-28 20:46:06 +02:00
Timothee Cour
fe7a2d60f9
make it easier to figure out how to debug issues ( #14477 )
2020-05-28 01:19:12 -07:00
Kaushal Modi
e62ccaa4dc
Propagate the outDir to rstgen to fix hrefs for modules in subdirs ( #14479 )
2020-05-28 00:13:24 -07:00
Huy Doan
00fa7a5747
Add thiscall calling convention, mostly for hooking purpose ( #14466 )
...
* Add thiscall calling convention, mostly for hooking purpose
* add changelog and documentation
2020-05-27 16:24:47 +02:00
Andreas Rumpf
dadc97d91e
typo
2020-05-26 14:49:44 +02:00
Timothee Cour
38cb277653
docgen: mangling using _. instead of @@ to avoid issue ( #14454 )
2020-05-26 10:08:35 +02:00
Timothee Cour
55758920f4
docgen: fix #14448 show @@ as .. in href text ( #14451 )
2020-05-25 18:16:00 -07:00
Timothee Cour
f96555bd10
fix #9227 procs can now have multiple interleaved doc comments + runnableExamples and be docgen'd correctly ( #14441 )
...
* fix #9227 proc doc comments after 1st runnableExamples are not ignored anymore
2020-05-25 15:44:23 +02:00
Timothee Cour
58282547f6
fix #6583 , fix #14376 , index+search now generated for all projects, many bug fixes with nim doc ( #14324 )
...
* refs #6583 fix nim doc output
* changelog
* change default for outDir when unspecified
* cleanups
* --project implies --index
2020-05-25 13:25:40 +02:00
Andreas Rumpf
c61f746629
avoid unsafe Nim features in preparation for --gc:arc ( #14431 )
2020-05-22 20:24:37 +02:00
Timothee Cour
0d0ea3a11e
no more code duplication bw liMessage and rawMessage + several bug fixes ( #14415 )
...
* no more code duplication bw rawMessage and liMessage; fixes some bugs in rawMessage
* all compiler messages work with hint:msgorigin
2020-05-22 12:02:10 +02:00
Timothee Cour
149251cab9
[cleanup] fix UnusedImport sempass2 compiler/semparallel.nim ( #14426 )
2020-05-21 23:28:47 -07:00
Andreas Rumpf
ddee8a362a
change the [Processing] messages into dots ( #14418 )
...
* change the [Processing] messages into dots
* better implementation
* maybe I should work on something else...
2020-05-21 22:36:34 +02:00
Timothee Cour
e600ddc555
fix comment from e909486e5c (r39287564) ( #14412 )
2020-05-20 18:34:14 -07:00
Clyybber
6969a468ce
Remove #PRTEMP leftover comment
2020-05-20 13:04:52 +02:00
Timothee Cour
3d20f14193
fix #10731 ; runnableExamples "-b:cpp --run:off": code works ( #14384 )
...
* runnableExamples "-b:cpp -r:off": code
2020-05-20 09:45:34 +02:00