genotrance
031de094f0
Fix gorge caching ( #10407 )
...
(cherry picked from commit 4b1e227531 )
2019-01-22 06:31:50 +01:00
Oscar Nihlgård
ba68025ce5
Support system.reset in vm ( #10400 )
...
(cherry picked from commit a4cdd25b19 )
2019-01-22 06:31:28 +01:00
LemonBoy
56b26966c8
Make the registered passes local to the ModuleGraph ( #9259 )
...
Closes #9068
(cherry picked from commit b97a7dbf3d )
2019-01-21 08:39:18 +01:00
narimiran
e8aaec0153
[backport] fix documentation leak to os.nim[ci skip]
...
(cherry picked from commit 29e0a792ff )
2019-01-14 09:34:22 +01:00
Araq
e21b578740
fixes #10075 [backport]
...
(cherry picked from commit aa7ad88978 )
2019-01-14 09:18:27 +01:00
Araq
98cdfe073e
fixes #10271 [backport]
...
(cherry picked from commit 451377f737 )
2019-01-14 09:18:19 +01:00
alaviss
efa75215e6
system/strmantle: avoid leaking docs to system.nim [ci skip] ( #10233 )
...
thanks @timotheecour for spotting this
(cherry picked from commit 20402579a2 )
2019-01-14 09:16:07 +01:00
Leonardo Cecchi
dd8192fc1d
Fix ODBC SQL Error string decoding ( #10207 ) [backport]
...
ODBC Errors were presented to the users as a sequence of characters.
I.e.:
>test_oracle.exe
Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...]
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
This patch fix the string decoding, creating a real string:
>test_oracle.exe
Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener
test_oracle.nim(15) test_oracle
test_oracle.nim(8) test_oracle
db_odbc.nim(534) open
db_odbc.nim(168) dbError
Error: unhandled exception: ODBC Error [DbError]
(cherry picked from commit b7be67349b )
2019-01-14 09:15:17 +01:00
narimiran
6b775905b6
remove float128 from the manual, fixes #10213 [ci skip]
...
(cherry picked from commit 258952832f )
2019-01-09 11:05:41 +01:00
Ico Doornekamp
187cc9f6bd
Added examples to strtabs module ( #10160 )
...
(cherry picked from commit be9d1280ae )
2019-01-09 11:04:27 +01:00
alaviss
5499ec084c
fix system.nim documentations ( #10168 )
...
* system: fix nimGC_getStackBottom doc
* system/helpers: avoid leaking docs to system
(cherry picked from commit be0a4d1342 )
2019-01-09 11:02:43 +01:00
Araq
81c9bee285
fixes #10188
...
(cherry picked from commit 5101b6befd )
2019-01-09 11:01:51 +01:00
Araq
5fc78d86b7
runnableExamples: compile and test them as a single file; fixes #9300
2019-01-09 11:00:40 +01:00
Araq
ecdcded294
koch.nim: speed up tests for the 'testinstall' target for the nightly builds (these tests are also covered by the other CIs)
...
(cherry picked from commit e6cbf9e790 )
2019-01-04 16:36:16 +01:00
Miran
82818d23b1
[backport] correctly document toInt, fixes #2764 [ci skip] ( #10176 )
...
(cherry picked from commit 77166ba795 )
2019-01-04 16:34:32 +01:00
alaviss
1134f85faa
os.walkDir: correctly evaluate paths when relative = true [0.19] ( #10173 )
2019-01-03 16:35:14 +01:00
Araq
32d7fa35a9
fixes #9728
...
(cherry picked from commit 4929f74023 )
2019-01-03 13:36:31 +01:00
Ico Doornekamp
f90ebaf6f3
Add link to tutorial part III to docs.rst ( #10157 ) [ci skip]
...
(cherry picked from commit 31b8bc7866 )
2019-01-03 09:50:43 +01:00
Araq
2e22bf4f5f
tut3: improved the wording
...
(cherry picked from commit 1cc8b7814d )
2019-01-03 09:50:05 +01:00
Arne Döring
0e2bfe3e6b
added a new macro tutorial ( #9588 )
...
(cherry picked from commit 30480605c1 )
2019-01-03 09:49:56 +01:00
Araq
e4767ef8d5
fixes #9889 , fixes #9886
...
(cherry picked from commit 7a66616d74 )
2019-01-02 11:39:49 +01:00
Araq
8d3cadbc94
tar.xz building: also ship with the moved testament tool
...
(cherry picked from commit 00f84d3d22 )
2019-01-02 10:39:49 +01:00
narimiran
7beea1642d
Revert "os.walkDir: correctly evaluate paths when relative = true"
...
This reverts commit 123c568236 .
v0.19.2
2018-12-31 11:20:10 +01:00
narimiran
a23b5c9265
Revert "Undefine some symbols and globalOptions when processing nimscript ( #9945 ) [backport]"
...
This reverts commit 90b4648a99 .
2018-12-31 11:17:27 +01:00
alaviss
3b2e151d3e
config/nim.cfg: disable tlsEmulation on Haiku ( #10092 ) [backport]
...
As of hrev52662, TLS support in Haiku is usable again. This has since
been backported to R1/Beta1, so we can flip the switch upstream.
(cherry picked from commit ca0ef62c9e )
2018-12-29 10:52:33 +01:00
Araq
0b9d158d11
fixes #10033 [backport]
...
(cherry picked from commit bdb67201b2 )
2018-12-29 10:52:09 +01:00
alaviss
123c568236
os.walkDir: correctly evaluate paths when relative = true
2018-12-29 10:51:43 +01:00
Araq
98bf23fe08
fixes #10058 [backport]
...
(cherry picked from commit 23448a96cc )
2018-12-29 10:47:49 +01:00
Andreas Rumpf
d02bf88f21
GC: avoid pathological behaviour; fixes #10040 [backport]
2018-12-29 10:47:20 +01:00
Neelesh Chandola
90b4648a99
Undefine some symbols and globalOptions when processing nimscript ( #9945 ) [backport]
...
* Undefine some symbols when processing nimscript
* Undefine taintMode when processing nimscript
* Reload .cfg configuration
(cherry picked from commit bb85869237 )
2018-12-29 10:45:33 +01:00
Jacek Sieka
a29ab5e65f
allow uints to appear in deep constant expressions
...
(cherry picked from commit db51eb3e32 )
2018-12-15 10:43:23 +01:00
Timothee Cour
c16fa63f5e
fix #9872 : setLen now works properly at CT [backport]
...
(cherry picked from commit f838b1e6c1 )
2018-12-15 10:24:54 +01:00
Araq
28946ed9f6
fixes #9864 [backport]
...
(cherry picked from commit af815c3c18 )
2018-12-15 10:07:15 +01:00
Araq
f0a78b8ef1
hotfix: discriminants can be of size 8 bytes [backport]
...
(cherry picked from commit 24106ade8f )
2018-12-15 10:07:03 +01:00
Timothee Cour
c0e741778f
fix #9832 (fixup) ( #9859 )
...
(cherry picked from commit d502ddea9e )
2018-12-15 10:06:45 +01:00
Timothee Cour
c3319fcad5
fixes #9832 ( #9841 ) [backport]
...
(cherry picked from commit 05769020d3 )
2018-12-15 10:06:25 +01:00
Andreas Rumpf
7572d40b23
enables .raises: [] via a .push ( #9834 ) [backport]
...
(cherry picked from commit c74226f4c1 )
2018-12-15 09:41:22 +01:00
Josh Goebel
fa01531b8c
fix outdated example to invoke Nim from C
...
- resolves #8139
(cherry picked from commit dace2a0999 )
2018-11-28 17:50:36 +01:00
Andreas Rumpf
e091c99514
don't crash where there is an unknown statement pragma [backport]
...
(cherry picked from commit 93cf0ef52e )
2018-11-28 17:49:45 +01:00
pgkos
a8b20e8129
fixes #9800 ( #9804 ) [backport]
...
* fixes #9800
* add tests for #9800
(cherry picked from commit 518c72e57a )
2018-11-28 17:49:33 +01:00
alaviss
b53d726c57
don't raise exception in the default handler
2018-11-24 21:53:35 +01:00
narimiran
ff66aae380
disable tasyncssl on appveyor
2018-11-24 20:16:12 +01:00
Yuriy Glukhov
219942658b
Fixes 9716 [backport]
2018-11-24 17:35:24 +01:00
Ștefan Talpalaru
7dfb2a8cd3
fix segfault when calling shallow() on an empty string ( #9782 ) [backport]
...
shallow() casts its string argument to a seq and then tries to access
its fields. Guess what happens when that string is nil, which seems to
be the representation of an empty string (both the default value and an
explicitly assigned "").
Segfault encountered when running "ntags -R ." on a large project. The relevant line:
a1c62c38e5/ntags.nim (lines-125)
(cherry picked from commit f8fa94cb20 )
2018-11-24 12:21:04 +01:00
ishowta
9fcdc14527
Empty check in shallow [backport] ( #9676 )
2018-11-24 12:20:35 +01:00
cooldome
ad554a2013
Fixes discard bug in cpp codegen ( #9747 ) [backport]
...
Fixes discard bug in cpp codegen
(cherry picked from commit 9b9f5dee0b )
2018-11-24 12:17:32 +01:00
Yuriy Glukhov
43b3582952
Fixed yield in nkObjConstr. Fixes #9694 [backport] ( #9744 )
...
* Fixed yield in nkObjConstr. Fixes #9694
* Separate expr lowering from state splitting, introduce a clear lowering internal error
(cherry picked from commit 5a2290f788 )
2018-11-24 12:17:21 +01:00
cooldome
64a4c72392
Of operator in vm fixes [backport] ( #9717 )
...
* fixes #9701
* fixes #9702
* optimize of statement to bool
(cherry picked from commit 8c1083d3b7 )
2018-11-24 12:15:43 +01:00
Andreas Rumpf
fa3017f6bb
nimpretty: fixes #9673 [backport]
...
(cherry picked from commit 532647171e )
2018-11-24 12:15:12 +01:00
Andreas Rumpf
172e95be50
nimpretty: explicit --indent option; fixes #9502 ; refs #9510 [backport]
...
(cherry picked from commit d1fe195dcc )
2018-11-24 12:15:05 +01:00