Commit Graph

13106 Commits

Author SHA1 Message Date
Timothee Cour
e05d0ea0bb tester.nim add more diagnostics (#8631) 2018-08-16 00:54:39 -04:00
LemonBoy
531c66d1ec Allow taking address of skForVar variables (#8632)
Fixes #8630
2018-08-14 21:28:14 +02:00
LemonBoy
c04404635b Fix unsound transform pass (#8633)
When a `var openArray[T]` function parameter goes trough the
`transformAddrDeref` pass we may lose the `var` specifier, leading to
nasty crashes at runtime.
2018-08-14 20:38:04 +02:00
Dominik Picheta
9a7e6be62f Merge pull request #8625 from drslump/fixes-7586-documentation-on-hints
Fixes #7586: Adds documentation for hints
2018-08-14 11:26:53 +01:00
Dominik Picheta
bc957ace2e Merge pull request #8628 from hlaaftana/patch-1
Small documentation typo in math
2018-08-14 11:21:26 +01:00
Timothee Cour
ed9fd2b63c fixes #8577, fixes #8580, other bug fixes (#8584) 2018-08-14 10:44:28 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* posix_other: Haiku now has spawn.h

This is added per https://dev.haiku-os.org/ticket/13446

* posix_other: Add Haiku specific Dirent members

* cpuinfo: Add an implementation for Haiku

* distros: Add basic Haiku support

* encodings: update Haiku support

* fenv, math: Haiku now provides libm

* times: Add Haiku struct members

* ansi_c, osalloc: Add Haiku constants

* threads: Add Haiku support

* testament: Haiku uses LIBRARY_PATH

* nim.cfg: Update Haiku support

libnetwork should only be linked if network functions are used

* threads: Haiku does not support -pthread switch

* tworkingdir: Haiku's env is in /bin

* posix_other: add SIGKILLTHR for Haiku

* sockets: link with libnetwork on Haiku

* coro: correct ucontext.h location

http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html

* coro: ucontext backend is not available on Haiku

Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX

* coro: fix setjmp backend

The compiler does not allow statements after a noreturn function

* nativesockets: Haiku doesn't support AI_V4MAPPED

* system: hostOS can contains "haiku"

* os: add support for Haiku's packagefs

packagefs is read-only, but there are writable holes to the underlying
file system as well

* os: update constant for Haiku
2018-08-14 09:35:07 +02:00
Dominik Picheta
feda366d86 Adds get for Option[T]. (#8462) 2018-08-14 01:09:08 +02:00
hlaaf
ed4a267399 Small documentation typo in math 2018-08-14 01:33:56 +03:00
cooldome
aa1cdebdc2 Converters to take into account constraints. Fixes #7520 (#8593) 2018-08-13 15:02:20 +02:00
Iván Montes
ee29370f60 Fixed 7478: splitLines keepEol option (#8621) 2018-08-13 11:42:50 +02:00
DrSlump
6a0751e81a Fixes #7586: Adds documentation for hints 2018-08-13 11:24:58 +02:00
Naveen Arunachalam
e839c01f5b Clarify usage of "Test" argument in Koch (#8613)
Minor change to help people (e.g. like myself) who are starting out :)
Currently, the readme mentions the use of `./koch tests cat async`, but
the help text for koch doesn't mention it. Helptexts are modified
accordingly.
2018-08-12 22:10:06 +02:00
LemonBoy
3cb963f114 Fixes 8616 (#8617)
* Don't leave dangling forward references to types

Fixes #8616

* Add a test case for #8616
2018-08-12 20:43:30 +02:00
LemonBoy
ba7c874a7d Mysterious fix for #8550 (#8561)
Replacing the `for` body with a nkEmpty node is not the right thing to
do.
2018-08-12 20:41:48 +02:00
LemonBoy
089529c16a Preliminary check for test category folder existence (#8579)
Warn the user if nothing is executed.
2018-08-10 23:03:42 -04:00
Timothee Cour
43f634db8d fixes #8519; implements T.distinctBase to reverse T = distinct A (#8531) 2018-08-10 09:20:14 +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
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
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
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
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
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
Timothee Cour
baa77387d7 fixes #8215; remove reference to old doc command which was deprecated (#8418) 2018-08-05 12:15:40 +02:00
Andreas Rumpf
c57e320c94 fixes 7833 (#8533)
* fixes #7833; still to-do: fix setLen
* make tests green again
* also fixes setLen and string concats; refs #7833
* change formating to avoid a compiler warning
* emit the write barrier also for addChar
* fixes yet another regression
* make setLengthStr compile for the old version
* make growobjcrash complete earlier
2018-08-05 11:42:38 +02:00
Christopher Dunn
cc1fd50b27 Try to let memTracker compile (#8502) 2018-08-05 09:53:10 +02:00
Araq
96c6c82d55 fixes #8425 2018-08-04 20:10:03 +02:00
Araq
1fa23e347e make 'koch xz' enforce a clean 'git diff'; fixes #7292 2018-08-04 19:55:23 +02:00
Timothee Cour
8d2953e805 gitignore test.ini, generated by ./koch tests (#8529) 2018-08-04 18:12:35 +02:00
Araq
e6738ba9d9 make 'echo' threadsafe on Windows; fixes #8511 2018-08-04 18:11:03 +02:00