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
Andreas Rumpf
16003bffe1
fixes #14126 [backport:1.2] ( #14390 )
...
* fixes #14126 [backport:1.2]
* used more logic to optimize it further; updated Nimble version
2020-05-20 00:41:57 +02:00
Andreas Rumpf
b35d370d88
specialize genericReset ( #14398 )
...
* progress
* make tests green
* maybe we also want to reset pointers, dunno
* progress
* cleanup; fixes #13879 [backport:1.2]
2020-05-19 21:42:53 +02:00
Timothee Cour
e909486e5c
trunner was not actually being tested in non-CTFFI mode; minor testament cleanups ( #14377 )
...
* use check
* trunner now works with cpp
* cleanup: move compiler/unittest_light => stdtest/unittest_light
* fix tests/readme.md
* remove deadcode references to rodfiles
* fix for windows
2020-05-19 09:41:31 +02:00
Ștefan Talpalaru
27741d6a5c
fix #14364 ( #14372 ) [backport:1.2]
...
Turn on the TLS emulation when using Boehm, since it doesn't scan the
real TLS.
2020-05-18 23:44:04 +02:00
Timothee Cour
5beed56d0a
fix #14174 do not collapse pragma inside runnableExamples ( #14385 )
2020-05-18 11:03:34 +02:00
cooldome
bc42e9aa98
fix #14369 ( #14386 )
...
* fix #14369
* empty commit
2020-05-18 09:38:36 +02:00
Timothee Cour
b11ff518fa
fix #12293 findNimStdLibCompileTime should not break with nimble install compiler ( #14334 )
...
* fix #12293 findNimStdLibCompileTime should not break with nimble install compiler
* address comment to unblock PR
2020-05-18 09:38:12 +02:00
Timothee Cour
c777f2fb60
fix some issues with --backend ( #14363 )
...
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175 ; improve upon #14306
2020-05-16 13:09:18 +02:00
Clyybber
9f78f116b2
New "ping-pong" DFA ( #14322 )
...
* New ping-pong analysis
* Add testcase for #13456
* Remove debugging leftover
* Unquote "unstructured controlflow"
* Fix typo
* Fix exponential complexity in edge cases
* Add sanity testcase
* Fix
2020-05-15 19:24:43 +01:00
PMunch
13cfaf5fd5
Improve nimeval, changes some defaults ( #14351 )
...
* Improve nimeval, changes some defaults
This improves nimeval to make it easier to use NimScript as an embedded
scripting languages. It does change some of the defaults, so in case
anything used the old version and depended on the old behaviour these
would have to be changed.
* Remove dependency on nimhcr for nimscript
2020-05-15 19:32:52 +02:00
hlaaftana
80c360fceb
fix #14350 , cstrings in JS init as null ( #14355 )
...
* fix #14350 , cstrings in JS init as null
2020-05-15 10:07:30 +02:00
Araq
278b4582f5
fixes #14340
2020-05-14 08:51:47 +02:00
cooldome
5fb40af57e
fix #14333 ( #14336 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-13 23:57:05 +02:00
Andreas Rumpf
82870e0737
fixes #13998 [backport:1.2]
2020-05-13 23:56:40 +02:00
Andreas Rumpf
f3e17e7c77
fixes #13104 [backport]
2020-05-13 22:29:02 +02:00
Timothee Cour
3573a4f9c1
no more guessing where compiler msgs came from ( #14317 )
2020-05-13 17:19:44 +02:00
PMunch
9acbf99efb
Allow let to not have value when using importc ( #14258 )
...
* Allow let to not have value when using importc
This allows a let statement with the `{.importc.}` pragma to not be
initialised with a value. This allows us to declare C constants as Nim
lets without putting the value in the Nim code (which can lead to
errors, and requires us to go looking for the value). Fixes #14253
* Proper fix and documentation + changelog entry
* Improve testcase with one from timotheecour
* Add test to verify it working with macros
2020-05-12 20:28:18 +02:00
b3liever
09ea8f9cf8
fix detecting closure env for nested asts ( #14326 )
...
Co-authored-by: b3liever <b3liever@yandex.com >
2020-05-12 20:09:56 +02:00
Timothee Cour
de74362213
fix #14314 do not analyze importc procs for effects ( #14319 )
2020-05-12 16:19:03 +02:00
Andreas Rumpf
06dfd31612
fixes #13881
...
* fixes #13881
* documented changed requirements for system.onThreadDestruction
* destructors.rst: update the documentation
2020-05-12 15:46:24 +02:00
cooldome
4277ab470a
fix one motr dicriminator bug
2020-05-12 12:45:34 +01:00
cooldome
dfae796ac3
fix test
2020-05-12 11:45:14 +01:00
cooldome
2d7ccf0928
fix #14312
2020-05-12 10:23:05 +01:00
Timothee Cour
b8ec07f19e
properly fixes #13758 so that import std/macros stays legal ( #14291 )
...
* properly fix https://github.com/nim-lang/Nim/issues/12389
* use --lib:lib in koch.nim.cfg instead
* third time is the charm
2020-05-12 08:27:47 +02:00
cooldome
a39123c93c
fix #14219 ( #14225 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-11 23:11:20 +02:00
Kaushal Modi
86669ef5b4
Make --backend:cpp|js work for :test: code-blocks as well ( #14306 )
...
Continues 9502e39b63
Ref:
- 9502e39b63 (commitcomment-39087584)
- https://github.com/nim-lang/Nim/pull/14278
Fixes https://github.com/nim-lang/Nim/issues/13129 .
2020-05-11 20:45:35 +02:00
b3liever
a081b10b54
small refactoring ( #14303 )
...
Co-authored-by: Antonis <b3liever@yandex.com >
2020-05-11 19:12:25 +02:00
cooldome
fee71d466c
fix #14294 ( #14301 )
...
* fix #14294
* fix orc as well
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-11 19:10:54 +02:00
Andreas Rumpf
03c146cd93
do not track 'raise Defect' in the .raises: [] clause anymore ( #14298 )
...
* do not track 'raise Defect' in the .raises: [] clause anymore
* --panics:on maps 'raise Defect' to an unrecoverable fatal error
* make tests green again
* update the documentation too
2020-05-11 16:25:56 +02:00
Antonis
517dd800f8
better error message
2020-05-11 15:39:44 +02:00
Antonis
3616b0698b
fix closure env check
2020-05-11 15:39:44 +02:00
Jovial Joe Jayarson
14f76f721d
refactor: renamed readme to readme.md ( #14283 )
2020-05-11 13:50:40 +02:00
Timothee Cour
9502e39b63
nim doc --backend:js, nim doc --doccmd:-d:foo, nim r --backend:js, --doccmd:skip + other improvements (#14278 )
...
* `nim doc --backend:js|cpp...`
`nim doc --doccmd:'-d:foo --threads:on'`
`nim r --backend:cpp...` (implies --run --usenimcache)
* --usenimcache works with all targets
* --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
2020-05-11 12:01:18 +02:00
Timothee Cour
dda6f3f6d4
nim doc -r main and nim rst2html -r main now call openDefaultBrowser (#14285 )
2020-05-10 09:23:01 +02:00
Clyybber
8e93105606
Fix #14269 ( #14286 )
2020-05-09 18:22:25 +02:00
Timothee Cour
411be506a3
--hint:processing (+friends) is now supported and means --hint:processing:on, like all other bool flags ( #14271 )
2020-05-08 18:54:16 +02:00
Andreas Rumpf
bae8e95b73
fix root cause of https://github.com/dom96/choosenim/issues/193 ; config/config.nims should get installed ( #14267 )
2020-05-08 16:14:10 +02:00
Timothee Cour
363b7ff3b8
fix https://github.com/nim-lang/Nim/issues/14275 querySetting(nimcacheDir) works even if implicitly set ( #14277 )
2020-05-08 16:13:07 +02:00
hlaaftana
de27910ab7
make from an operator ( #14241 )
2020-05-08 07:54:46 +02:00
Timothee Cour
ee15437aed
fix root cause of https://github.com/dom96/choosenim/issues/193 ; config/config.nims should get installed
2020-05-07 15:01:46 -07:00