Commit Graph

18917 Commits

Author SHA1 Message Date
Andreas Rumpf
ba6601b149 fixes #8599 2018-08-10 12:09:51 +02:00
Andreas Rumpf
404de2f23e Merge branch 'devel' into araq-misc 2018-08-10 12:06:16 +02:00
Andreas Rumpf
1d78ba64b4 rework the exception hierarchy; refs #8363 2018-08-10 11:40:01 +02:00
Andreas Rumpf
28c709fa84 cleanup nimsuggest tests a bit 2018-08-10 09:37:41 +02:00
Andreas Rumpf
7e2418bd22 make nimsuggest go up in the directory tree in order to determine the main .nim file 2018-08-10 09:37:17 +02:00
Andreas Rumpf
1d63a8fe4a update the 'float' spec; refs #8589 2018-08-10 09:21:46 +02:00
Timothee Cour
43f634db8d fixes #8519; implements T.distinctBase to reverse T = distinct A (#8531) 2018-08-10 09:20:14 +02:00
Andreas Rumpf
864d24d70e change the VM's max instruction count to 3_000_000 2018-08-10 08:42:13 +02:00
Araq
265003df1a deprecated regionized pointers 2018-08-10 01:20:14 +02:00
Araq
b4e5c9d075 deprecate the .this pragma 2018-08-09 20:31:40 +02:00
Timothee Cour
730ce53b71 save a backup of csources-built nim to bin/nim_csources to avoid recompiling from csources (#8582) 2018-08-09 10:56:05 +02:00
alaviss
a2c5ffba0c Uses XDG_CACHE_HOME if available (#8585)
* compiler/options: use XDG_CACHE_HOME if set

* doc/nimc: update documentation
2018-08-09 10:50:36 +02:00
Grant
98225ca207 Update channels.nim (#8583)
Fix typo in channels.nim
2018-08-09 09:40:21 +02:00
Araq
babd31360a fixes more nil string bugs 2018-08-08 18:22:48 +02:00
Mamy Ratsimbazafy
bccaa36aba Tests for v1 closed generics/static issues (#8572)
* Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed.

* Add test for closed https://github.com/nim-lang/Nim/issues/6137

* Add test for https://github.com/nim-lang/Nim/issues/7141
2018-08-08 17:49:33 +02:00
Timothee Cour
506418ef53 add build_all.sh to allow 1-liner to build development version of the compiler (#8546) 2018-08-08 16:47:17 +02:00
Araq
b07d1f1dc3 make async tests green for Linux 2018-08-08 16:18:30 +02:00
Araq
00ef2d6693 make test green again 2018-08-08 15:43:05 +02:00
LemonBoy
32b62097a2 Fix regression for mapIt (#8567)
Don't try to be too smart and limit the use of `evalOnce` where strictly
needed as not every value can be assigned with a `let`.

Fixes #8566
2018-08-08 15:34:21 +02:00
Dominik Picheta
af4f4425e2 Merge pull request #8559 from ehmry/fix_8109
AsyncHttpClient: return from requests before body completion
2018-08-08 12:27:20 +01:00
Araq
640b30a47f codegen improvement: map the empty string to 'nil' since it's now allowed to do that 2018-08-08 12:06:00 +02:00
Araq
05121d84b3 fixes a long standing nil bug in substr 2018-08-08 12:05:29 +02:00
Araq
00d718b1db strutils: minor code cleanup 2018-08-08 12:01:17 +02:00
Araq
de263a43c6 deprecate isNil for strings and seqs 2018-08-08 11:21:56 +02:00
Araq
19bfa9b889 Merge branch 'devel' into araq-misc 2018-08-08 09:39:40 +02:00
Araq
a45faf2dd6 fixes the new nimcache handling 2018-08-08 09:35:38 +02:00
Andreas Rumpf
ef9dd46466 'nimcache' defaults to ~/.cache on Posix; cleaned up documentation 2018-08-08 09:35:38 +02:00
Andreas Rumpf
5b6b73f2a2 use slashes instead of dots for paths 2018-08-08 09:33:39 +02:00
Andreas Rumpf
a377c5cce4 introduce the --define 'osx' as an alias for 'macosx' 2018-08-08 09:33:37 +02:00
Emery Hemingway
817e4bb2fe AsyncHttpClient: return from requests before body completion
Store the body completion future at the client and wait for it to
complete before issuing additional requests. This allows the body
FutureStream reader to drain the stream and read buffers to be freed
asynchronously.

Fix #8109
2018-08-08 07:48:24 +02:00
Araq
dd75346292 fixes the new nimcache handling 2018-08-07 22:54:45 +02:00
Araq
d8e66d6acc fixes merge conflict 2018-08-07 22:25:01 +02:00
Timothee Cour
c352329714 runnableExamples: keep (gitignored) generated foo_examples.nim for inspection even on success (#8544) 2018-08-07 18:52:55 +02:00
LemonBoy
ba5e2d6fcb Make mapIt work on openArray's (#8543) 2018-08-07 18:45:27 +02:00
andri lim
4d5cce9882 fixes #6255, add system.ashr arithmetic right shift (#8547) 2018-08-07 18:41:30 +02:00
Oscar Nihlgård
9b9cfa7306 Stricter signature for countdown/countup (#8549) 2018-08-07 09:24:54 +02:00
andri lim
c3d5ec8ead fixes #8421, fixes #7968, Nim compiler compiles with MSVC C89 version (#8556) 2018-08-07 09:07:18 +02:00
Emery Hemingway
be4816f509 Iterator over heap instances (#8548)
Provide "dumpHeapInstances" for iterating over type statistics
of heaps. This can be used to present structured heap information
as an alternative to "dumpNumberOfInstances".
2018-08-07 08:48:52 +02:00
Andreas Rumpf
e067a7681f 'nimcache' defaults to ~/.cache on Posix; cleaned up documentation 2018-08-06 23:38:29 +02:00
Andreas Rumpf
e555e97b4b use slashes instead of dots for paths 2018-08-06 20:00:26 +02:00
Andreas Rumpf
e9d67266ef introduce the --define 'osx' as an alias for 'macosx' 2018-08-06 19:58:48 +02:00
Andreas Rumpf
bbc404d80d disable tioselectors test for OSX 2018-08-06 19:44:15 +02:00
Andreas Rumpf
6c319d4f74 travis/testament: disable JS tests on OSX 2018-08-06 19:16:23 +02:00
Araq
559c4b8a20 attempt to make the travis OSX build green 2018-08-06 17:42:08 +02:00
Andreas Rumpf
7f8eccb46f make 'flags' test green on OSX 2018-08-06 15:27:17 +02:00
Andreas Rumpf
39b3b94008 OSX: make tioslectors test green 2018-08-06 15:27:17 +02:00
Timothee Cour
8ad59e6857 remove redundant test for nil before add (#8460) 2018-08-06 11:50:42 +02:00
andri lim
6e3d1dced5 fixes #5617, 'copyLineInfo' addition (#8523) 2018-08-05 23:38:21 +02:00
Dominik Picheta
6fffadb7fd Merge pull request #8364 from timotheecour/pr_expandTilde
ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSep
2018-08-05 16:30:17 +01:00
Araq
7ac6462cbd make at least bootstrapping work 2018-08-05 14:17:24 +02:00