Commit Graph

13697 Commits

Author SHA1 Message Date
Miran
614059d6de Update issue templates
Create `bug report` and `feature request` templates.

(cherry picked from commit fc625091e0)
2018-11-01 17:52:41 +01:00
Arne Döring
6a6b77190c Create issue_template.md
(cherry picked from commit d26beedfb1)
2018-11-01 17:52:33 +01:00
Miran
38b391ff62 merge stdlib tests (#9439)
(cherry picked from commit 9fb212cfdf)
2018-11-01 17:52:04 +01:00
jcosborn
42056874d1 added test for #4674 (#9438)
(cherry picked from commit 3b1ade0350)
2018-11-01 17:51:51 +01:00
Timothee Cour
4424fe0acc fixes #9376: old changelogs should be kept instead of erased (#9428)
(cherry picked from commit 162e7ee5b5)
2018-11-01 17:51:41 +01:00
Timothee Cour
6515810a2e [doc] start of best practices section in contributing.rst (#9415)
(cherry picked from commit 15dbd973de)
2018-11-01 17:51:33 +01:00
Araq
c1a6ebf40d closes #6220
(cherry picked from commit c64391e30b)
2018-11-01 17:51:16 +01:00
Araq
8f8f3ba12f closes #5321
(cherry picked from commit 4644484fb7)
2018-11-01 17:50:53 +01:00
Vindaar
58726f9b81 fix #9394 by replacing fmt with strutils.% (#9417)
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add

(cherry picked from commit 82a1576263)
2018-11-01 17:50:38 +01:00
LemonBoy
8a356fafb7 Make the swap procs safe for unaligned input ptrs (#9210)
* Make the swap procs safe for unaligned input ptrs

The copy to a temporary local variable is often elided by a sufficiently
smart compiler when it can prove the input pointer is aligned.

Refs #9206

* Explain why copyMem is used

(cherry picked from commit 1fe949b9d5)
2018-11-01 17:50:28 +01:00
Timothee Cour
624d05c73f [nimscript] document currentSourcePath in thisDir (#9402)
(cherry picked from commit 7d8e281239)
2018-11-01 17:50:03 +01:00
Araq
b65b360ac2 tests: disable flaky tests for now; closes #9421
(cherry picked from commit 381498b0db)
2018-11-01 17:49:55 +01:00
Araq
0d5355b5fd intern.rst: minor formating improvements
(cherry picked from commit 03a05ca456)
2018-11-01 17:49:38 +01:00
Bo Lingen
8637ca6983 docs(lib): update Nimble notes since package list is not inline anymore (#9397)
(cherry picked from commit 458aab0b10)
2018-11-01 17:49:17 +01:00
Miran
a65ac85e4a make some tests faster (#9413)
* remove duplicated slow test

* smaller `convex hull`

* smaller sleep

* faster `trtree`

* smaller sleep in `tfuturestream`

(cherry picked from commit 95504caa31)
2018-11-01 17:48:56 +01:00
Araq
13a8765afc make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs
(cherry picked from commit 81e33b9d87)
2018-11-01 17:48:32 +01:00
Araq
64f5c96685 nimpretty: fixes #9384
(cherry picked from commit bd9d5787f0)
2018-11-01 17:48:17 +01:00
technicallyagd
aac04585ea Elaborate on source code filter usage in the documentation. (#9407)
* Elaborate on source code filter usage.
Also gives it an abbreviation, SCF.

* Fix the code block formatting

* Trim off the unintended usage with import.

(cherry picked from commit 88adf77569)
2018-11-01 17:48:06 +01:00
Yuriy Glukhov
7cf698442a No setjump in GC for emscripten/wasm (#9386)
(cherry picked from commit dc72cf7564)
2018-11-01 17:47:57 +01:00
PMunch
b70b633e8e Fixes #9364 and add moduleDescription to jsondoc (#9396)
This fixes `jsondoc0` so that it has comments in the output as described
by the documentation. It also fixes `jsondoc`/`jsondoc2` as it stored
it's output in a file with an html extension. Along with this it also
adds a new field `moduleDescription` to `jsondoc`/`jsondoc2` which
contains the module description.

(cherry picked from commit db95fad6fa)
2018-11-01 17:47:27 +01:00
Miran
3ed61da6c1 improve error message, closes #2361 (#9387)
* improve error message

* use single % operation

(cherry picked from commit e8cf289bee)
2018-11-01 17:47:20 +01:00
Federico Ceratto
25ce980fe1 Update example (#9395)
(cherry picked from commit afc453beff)
2018-11-01 17:47:10 +01:00
Kaushal Modi
7e1d411279 Update config.nims search path in docs (#9388)
Related: https://github.com/nim-lang/Nim/pull/8682

Also mention the "nim help" command to list all available tasks.

(cherry picked from commit 3e9f506923)
2018-11-01 17:47:02 +01:00
Andreas Rumpf
90d18b75c2 fixes #9244
(cherry picked from commit b340f677eb)
2018-11-01 17:46:31 +01:00
eqperes
2e2a2754a4 Some documentation added to strutils (#9379)
* wip documentation strutils

* some runnableExamples in strutils

* assert -> doAssert

* corrected doc for abbrev; some more runnable examples

* runnableExamples for join

* fix c&p error

* corrections

(cherry picked from commit afd9d8dd8d)
2018-11-01 17:46:22 +01:00
Andreas Rumpf
6ad4022b5e nimpretty: added an new simple test
(cherry picked from commit 480d228603)
2018-11-01 17:46:12 +01:00
Andreas Rumpf
e0eda28a99 nimpretty: fixes #9144
(cherry picked from commit 778e4d1775)
2018-11-01 17:44:54 +01:00
Andreas Rumpf
06b1d17134 nimpretty: add #!nimpretty on/off directives
(cherry picked from commit f3c0703b7d)
2018-11-01 17:44:48 +01:00
Andreas Rumpf
754e11de3e nimpretty: fixes #8626
(cherry picked from commit ed38079b9b)
2018-11-01 17:44:23 +01:00
Andreas Rumpf
3340e46310 nimpretty: render r-strings properly, fixes #9236
(cherry picked from commit 89ba0f8592)
2018-11-01 17:44:09 +01:00
Araq
4f432688a3 system.nim: fixes typo
(cherry picked from commit fe091997aa)
2018-11-01 17:43:46 +01:00
Miran
ee18699609 merge macros tests (#9367) 2018-11-01 17:43:26 +01:00
Andreas Rumpf
ae80f763b3 unicode: added strip, align, alignLeft, repeat procs; refs #6301
(cherry picked from commit 8960efa340)
2018-11-01 17:40:29 +01:00
Andreas Rumpf
48d3b26c21 unicode: add split procs; refs #6301 2018-11-01 17:39:58 +01:00
Andreas Rumpf
2818661ffe struils: don't use the deprecated accumulateResult
(cherry picked from commit 152c7d99c3)
2018-11-01 17:38:05 +01:00
Miran
325ca8cae6 Merge tests into a larger file (part 3 of ∞: generics) (#9347)
* merge generics issues tests
* merge tgeneric
* merge test with local imports
* merge tcan tests
* merge matcher tests
* more issue tests merged
* one more tcan test
* merge various small tests into one file
* add a test for #3717

(cherry picked from commit 9f8b93641e)
2018-11-01 17:37:48 +01:00
Vindaar
ed4a7b7f66 add issue #5707 as test case (#9361)
(cherry picked from commit afd5abdfc2)
2018-11-01 17:37:33 +01:00
Josh Goebel
5b3b091cd1 Fix type in docs (#9362)
(cherry picked from commit 38454c6951)
2018-11-01 17:37:20 +01:00
Federico Ceratto
64da338a8b Update makefile and buildsh templates for riscv64 (#9351)
(cherry picked from commit e435dbd35e)
2018-11-01 17:36:25 +01:00
Miran
e718dc75c5 Merge tests into a larger file (part 2 of ∞) (#9335)
* merge controlflow tests

* merge distinct tests

* merge enum tests

* merge fields tests

* merge implicit tests

* merge iter issues tests

(cherry picked from commit 3c9fcc4c30)
2018-11-01 17:36:14 +01:00
Tomohiro
495585bc1e manual: Fix links to Parallel & Spawn (#9342)
(cherry picked from commit eb4272ba1c)
2018-11-01 17:36:02 +01:00
eqperes
7de3bcfb8e Proposed solution for issue #8919 (#9280)
* Proposed solution for issue #8919

* count sub/subs must be non-empty

(cherry picked from commit 14925ee8b6)
2018-11-01 17:35:29 +01:00
Jacek Sieka
7cf3944c38 Testament pre parallel (#9137)
* testament: move to root dir (it's not a test)

* osproc: fix process index passed to afterRunEvent for parallel runs

it was passing the index of the process, not index of all commands

* testament: complete file move

(cherry picked from commit 97738a4f28)
2018-11-01 17:35:08 +01:00
Miran
44f5c7e90f Merge tests into a larger file (part 1 of ∞) (#9318)
* merge actiontable tests

* merge arithm tests

* merge array tests

* merge assign tests

* merge bind tests

* merge casestmt tests

* merge closure tests

* merge cnt seq tests

* merge collections tests

* merge concept issues tests

* merge concept tests

* fix failing tests

* smaller outputs

Use `doAssert` where possible.

* fix wrong output

* split `tcomputedgoto`

* revert merging concepts

* fix failing test

(cherry picked from commit 7f18d7cbc1)
2018-11-01 17:34:33 +01:00
Tomohiro
faa9e7a582 manual: Remove stmt or expr template related text from manual (#9321)
(cherry picked from commit d2b04a8bc7)
2018-11-01 17:33:17 +01:00
Araq
596524d2ec fixes #9306
(cherry picked from commit 8ab6fa1be2)
2018-11-01 17:32:41 +01:00
Andrea Ferretti
fde803745e Clarify that term rewriting macros are applied recursively (#9305)
Fixes https://github.com/nim-lang/Nim/issues/9288 fixes https://github.com/nim-lang/Nim/issues/8376 and fixes https://github.com/nim-lang/Nim/issues/2901

(cherry picked from commit 160f8599c6)
2018-11-01 17:32:32 +01:00
eqperes
8a9680e3a2 compile date and compile time tz written in doc (#9283)
(cherry picked from commit 00c4aba828)
2018-11-01 17:32:21 +01:00
Oscar Nihlgård
291d7499a4 Fix OrderedSet.excl (#9287)
(cherry picked from commit eade49d7a7)
2018-11-01 17:31:56 +01:00
Timothee Cour
b5bb48dbd2 fix #9295 (#9299)
(cherry picked from commit 0aac5c9725)
2018-11-01 17:31:36 +01:00