16210 Commits

Author SHA1 Message Date
narimiran
c8998c498f clean up the changelog v1.0.4 2019-11-27 09:33:51 +01:00
narimiran
97e0ce3c75 bump version to 1.0.4 2019-11-25 17:46:16 +01:00
narimiran
aa7b0c8581 create a changelog for v1.0.4 2019-11-25 17:45:58 +01:00
Andreas Rumpf
d6f52f3cef added 'since' template for further stdlib additions
(cherry picked from commit 372b01711e)
2019-11-25 17:25:41 +01:00
Timothee Cour
fa15083cc9 fixes #12663 staticRead now creates a dependency for rebuilds (#12731) [backport]
* fix #12663 staticRead
* address comments

(cherry picked from commit dfe5d115fb)
2019-11-25 17:05:26 +01:00
tauplus
c868f1ef67 Fix wrong section hierarchy in the manual (#12724) [backport]
(cherry picked from commit bfad0056ab)
2019-11-25 17:05:26 +01:00
Andy Davidoff
8f0b891e68 export nim.cfg parser (#12602)
(cherry picked from commit 61889c604a)
2019-11-25 09:46:51 +01:00
Andreas Rumpf
4084ef19a3 conversions to unsigned numbers are not checked anymore (#12688) [backport]
* conversions to unsigned numbers are not checked anymore; implements / fixes https://github.com/nim-lang/RFCs/issues/175

* change the spec yet again to be less consistent but to make more sense; updated the changelog

(cherry picked from commit c98e0e22ad)
2019-11-21 17:31:35 +01:00
Andreas Rumpf
7d444ff04c fixes #12670 [backport] (#12693)
(cherry picked from commit 78e02d174d)
2019-11-21 17:27:50 +01:00
Andy Davidoff
aaf06dba1b restore --define🔑val in nim.cfg and fix #12367 (#12611)
(cherry picked from commit 5544a13236)
2019-11-20 10:23:02 +01:00
Andy Davidoff
0e1dd54fee add --clearNimblePath; fixes #12601 (#12609)
(cherry picked from commit 738c957e94)
2019-11-20 10:22:45 +01:00
Andreas Rumpf
c78cee697d fixes #12612 [backport] (#12681)
(cherry picked from commit 56a00da34a)
2019-11-20 10:22:12 +01:00
narimiran
4c4116d63a a better way to test Arraymancer + test more packages
(cherry picked from commit a1e7bf81b3)
2019-11-18 12:33:24 +01:00
Andreas Rumpf
9d17d02734 attempt to add valgrind support to the CIs and testament (#12646)
* attempt to add valgrind support to the CIs and testament

* valgrind (currently) works only on 64-bit Linux

(cherry picked from commit 223e65e529)
2019-11-18 12:28:33 +01:00
Juan Carlos
e8578c926e Fix htmlgen html lang (#12668) [backport]
(cherry picked from commit 9c46526cfa)
2019-11-18 12:28:18 +01:00
Dominik Picheta
5937c40928 Fixes ambiguity errors when evaluating Nimble files. (#12674) [backport]
When trying to evaluate a Nimble file which imports a Nim module
I was getting the following errors for some reason:

```
/Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: ()
```

(cherry picked from commit bab5351d43)
2019-11-18 12:24:33 +01:00
Miran
f3e088f11a remove two asserts in int128.nim (#12648) [backport]
Before this PR, `tests/misc/tconv.nim` fails when the compiler
is compiled without `-d:danger` flag.
Bear in mind that even without the asserts, the values outside of
a given range are still checked and a meaningful error message
(from `compiler/semexprs.nim`) is printed.

(cherry picked from commit 107b40f097)
2019-11-18 12:24:32 +01:00
David Krause
39122ecd93 fix documentation of $*(dt: DateTime) (#12660) 2019-11-14 20:41:04 +01:00
Volodymyr Lashko
7ea60f78b5 Fix crash in terminate handler (#12572) [backport]
* fix undefined behavior in terminate handler

* fix failing unit test

* Revert "fix failing unit test"

This reverts commit 0e5e385fbf.

* Revert "fix undefined behavior in terminate handler"

This reverts commit 2b582871f1.

* do not throw inside terminate handler with msvc < 1923

(cherry picked from commit 4e841ab156)
2019-11-08 15:08:08 +01:00
cooldome
ee260dd838 fixes #5050; fixes #11826 (#12606) [backport]
(cherry picked from commit e1b1759439)
2019-11-08 15:08:08 +01:00
Andreas Rumpf
23881b188e bugfix that enables the 'since' template [backport]
(cherry picked from commit f69ee294c8)
2019-11-08 15:08:08 +01:00
narimiran
e5f968da0c revert the most of #12532
The reason for this revert is that 'runnableExamples' keep
mysteriously failing on 32-bit OS-es on version 1.0.x
(devel version is fine, as are 64-bit OS-es).
2019-11-08 15:07:49 +01:00
narimiran
cb2f8d4d39 [backport] print more information for the previous commit
(cherry picked from commit 717da9f158)
2019-11-06 16:14:53 +01:00
narimiran
e2aa1d6d84 [backport] rewrite flaky runnable example
(cherry picked from commit 5381c810a8)
2019-11-06 15:54:39 +01:00
Tor Arvid Lund
beaead0fd1 [backport] doc/tut3.rst: Fix typo in Introduction (#12607) [ci skip]
Derivative of `b*pow(x, 2)` is `2*b*x`, while old version had `2*a*x`

(cherry picked from commit 5ccbf7e3cf)
2019-11-06 15:54:39 +01:00
Federico Ceratto
763486a3aa [backport] Add links to packaging and distro pages (#12603) [ci skip]
(cherry picked from commit 59c212607e)
2019-11-06 15:54:39 +01:00
narimiran
d61dd518d9 clean up a previous merge conflict 2019-11-06 14:38:37 +01:00
Clyybber
2a292c0e71 Refactor injectdestructors (#12295)
One improvement over #devel is visible in the transformation of getEnv. With this approach we move to result whenever possible.

(cherry picked from commit 5f5879dc4c)
2019-11-06 13:49:24 +01:00
Araq
814e237ab6 refactoring: --newruntime consists of 3 different switches
(cherry picked from commit 61ea85687c)
2019-11-06 12:34:23 +01:00
narimiran
8324b7a86d port the whole 'lambdalifting.nim' from devel 2019-11-06 09:44:26 +01:00
Clyybber
7ccefbc422 Fixes #12379 (#12591) [backport]
(cherry picked from commit cf5c3f2400)
2019-11-05 16:20:43 +01:00
Miran
8fddc8e8a1 [backport] fix #12395 (#12590)
'countBits32' is now fixed in the same way that
'countBits64' was already patched earlier (by adding 'u32
where needed).

(cherry picked from commit ae32d637f7)
2019-11-05 16:20:25 +01:00
Andreas Rumpf
f47d977f6d --os:ios needs to imply defined(macosx) [backport] (#12585)
(cherry picked from commit 62fc3db9d7)
2019-11-05 16:18:50 +01:00
Andreas Rumpf
a5c98bf3af fixes #12577 [backport] (#12584)
(cherry picked from commit ceda586d88)
2019-11-05 16:18:06 +01:00
Tomohiro
93b868bff9 Fixes #12536 (#12568) [backport]
(cherry picked from commit 4e0f12092e)
2019-11-05 16:15:54 +01:00
Kaushal Modi
274f94c84a [backport] Add docs to better distinguish among getProjectPath, getCurrentDir and currentSourcePath (#12565)
Fixes https://github.com/nim-lang/Nim/issues/10477.

(cherry picked from commit d914e9a65f)
2019-11-05 16:15:44 +01:00
jiro
1ff3494dab Add or detectOs(Manjaro) (#12587) [backport]
Using `pacman` command in Manjaro Linux
2019-11-04 12:20:23 +01:00
Nindaleth
1d43c8620e fix several typos in documentation and comments (#12553)
(cherry picked from commit 34dbc5699e)
2019-10-30 10:38:25 +01:00
Araq
f5e096b13f fixes #12547 [backport]
(cherry picked from commit 1214960a1b)
2019-10-30 10:38:25 +01:00
zah
29c099ccd1 Fix newLit for objects having string fields (#12542) [backport]
(cherry picked from commit de5f6a07c2)
2019-10-30 10:38:25 +01:00
Andreas Rumpf
6887d6de80 [backport] fix #12528, fix #12525: incorrect generic type resolution for default values (#12538)
(cherry picked from commit e58c2d261c)
2019-10-30 10:38:25 +01:00
Solitude
7c2d64c18d Fix code style errors (#12545)
(cherry picked from commit 160c07be00)
2019-10-30 10:38:25 +01:00
Anthon van der Neut
f991d2c1fd [backport] fix broken link to non-existing c2nim manual html, fixes #12537 [ci skip] (#12544)
(cherry picked from commit c58aa7705d)
2019-10-30 10:38:25 +01:00
Jjp137
d6ae4e00f4 colors: fix 'mix' template and make most examples runnable (#12532) [backport]
* colors: fix the 'mix' template
* colors: make most examples runnable

(cherry picked from commit ee119f7984)
2019-10-30 10:38:25 +01:00
Arne Döring
2a2a9110b2 integer literal documentation [ci skip] (#12513)
* integer literal documentation [ci skip]

* apply feedback [ci skip]

(cherry picked from commit 91af075244)
2019-10-30 10:38:25 +01:00
Arne Döring
4a7ccfa333 fixes #12514 (#12520) [backport]
(cherry picked from commit 3c567bcf20)
2019-10-30 10:38:25 +01:00
Jjp137
476d677c6f Remove sentences referring to the graphics module (#12522)
(cherry picked from commit 3a62cf29d8)
2019-10-30 10:38:25 +01:00
Jjp137
ee0c1482d7 sequtils: replace deprecated 'random' call within example (#12515) [backport]
(cherry picked from commit 1d42108fda)
2019-10-30 10:30:47 +01:00
Andreas Rumpf
731d1dff84 VM: fixes register leaks [backport] (#12510)
(cherry picked from commit e0d13abaff)
2019-10-30 10:30:47 +01:00
Tomohiro
e02dc971f5 Fix Nim specify wrong option to vccexe when vcc.options.always is set (#12490) [backport]
(cherry picked from commit 8040c84615)
2019-10-30 10:30:47 +01:00