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
Araq
a0cde8cee6
Merge branch 'devel' into araq-misc
2018-08-13 20:16:18 +02:00
Araq
420ed0596b
fixes more nil handling regressions
2018-08-13 17:27:44 +02:00
Andreas Rumpf
7f49364fd0
make more tests green
2018-08-13 12:29:03 +02:00
Iván Montes
ee29370f60
Fixed 7478: splitLines keepEol option ( #8621 )
2018-08-13 11:42:50 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +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
Timothee Cour
43f634db8d
fixes #8519 ; implements T.distinctBase to reverse T = distinct A ( #8531 )
2018-08-10 09:20:14 +02:00
Araq
265003df1a
deprecated regionized pointers
2018-08-10 01:20:14 +02:00
Araq
babd31360a
fixes more nil string bugs
2018-08-08 18:22:48 +02:00
Araq
b07d1f1dc3
make async tests green for Linux
2018-08-08 16:18:30 +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
00d718b1db
strutils: minor code cleanup
2018-08-08 12:01:17 +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
LemonBoy
ba5e2d6fcb
Make mapIt work on openArray's ( #8543 )
2018-08-07 18:45:27 +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
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
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
Euan T
e11d52a4e8
Update example code for UDP sockets
2018-07-30 13:39:32 +01:00
andri lim
2e6d073be1
fixes #8468 , stdlib.encodings.convert not crash anymore on windows ( #8470 )
2018-07-30 12:04:49 +02:00
Quelklef
a4c244aef0
Add checks for random.rand() ( #8431 )
2018-07-30 10:19:11 +02:00
Yuriy Glukhov
57c3b807d0
Fixed typo introduced in #8428 that leads to InvalidIdent assertion failure ( #8464 )
2018-07-30 08:54:52 +02:00
Yuriy Glukhov
34f398d010
Allow async stdin
2018-07-25 09:07:50 +03:00
Timothee Cour
13df807576
fix issue #8349 FileSystemCaseSensitive should be false on OSX ( #8411 )
2018-07-23 19:26:49 -05:00
Timothee Cour
9249276db0
addresses issue #8391 show runtime context on some failed operations ( #8393 )
2018-07-23 22:58:03 +02:00
Oscar Nihlgård
503dc22236
Use enum string values in times.nim ( #8413 )
2018-07-23 22:40:39 +02:00
Zachary Carter
9379f9353a
Add application/wasm to mimetypes.nim ( #8389 )
...
```
To serve wasm in the most efficient way over the network, make sure your web server has the proper MIME time for .wasm files, which is application/wasm. That will allow streaming compilation, where the browser can start to compile code as it downloads.
```
http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#web-server-setup
2018-07-21 21:42:07 +02:00
skilchen
8fe8bed9c3
add sets.pop procedure (analogue to python) ( #8383 )
2018-07-21 19:51:14 +02:00
skilchen
57f4a5d429
sequtils: remove some aligning spaces around == to silence warnings
2018-07-21 19:16:05 +02:00
andri lim
f92d61b1f4
fixes #8037 , json.to support object with distinct types ( #8086 )
...
* add distinct types to json 'to' macro
* fix json 'to' macro and add more test
2018-07-19 16:38:40 +01:00
Timothee Cour
20591845df
ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSep
2018-07-18 17:56:01 -07:00
Andreas Rumpf
59a5c0462f
fixes #8338
2018-07-17 15:49:55 +02:00
John Novak
692d1da95d
Fix setCursorPos and setCursorXPos on POSIX ( #8310 )
2018-07-17 11:35:26 +02:00
Timothee Cour
2ac22b4cf0
fix #8273 times format regression, and fix inconsistent ordering in 1 format overload ( #8290 )
...
* Fix issue #8273 [regression] [times.format] Error: attempting to call
undeclared routine: 'format'
* rename format to f for consistency with other overloads and avoid
similar bugs as #8273
* breaking change since PR 8094: changed format*(f: TimeFormat, dt: DateTime) to format*(dt: DateTime, f: TimeFormat) for consistency w other overloads
* use consistent ordering for times.parse procs
2018-07-16 21:15:17 +02:00
Yuriy Glukhov
dfe3f16022
Don't depend on string.h in codegen ( #8299 )
2018-07-13 17:41:59 +02:00
Timothee Cour
40f44a0c16
fix issue #8251 ospaths.isAbsolute: out of bound errors ( #8291 )
...
* fix issue #8251 ospaths.isAbsolute: out of bound errors
* address comments
* add reference to a spec for quirky macos paths
2018-07-13 03:54:48 -04:00
Eugene Kabanov
3fec2ba5e5
Fix terminal.nim to be GCSAFE. ( #8296 )
...
* Also fix deprecated callsite().
2018-07-12 18:06:15 +02:00
Kaushal Modi
1102f9aaf1
Make the Style enum a proper Ordinal (no holes) ( #8282 )
...
The Style enum needs to be an Ordinal so that it can be used in sets.
2018-07-12 11:30:51 +02:00
Quelklef
ac3c4a94ad
Fixed $ on None[T] for T with .name ( #8293 )
2018-07-12 11:01:48 +02:00
Timothee Cour
25bf0d1683
add os.absolutePath; fixes #8174 ( #8213 )
...
* add os.absolutePath
* fixup
* fixup
* Fixes absolutePath error message.
2018-07-10 20:31:13 +01:00
Dominik Picheta
f805018461
Fixes #5880 . ( #7229 )
2018-07-10 00:33:31 +02:00
Oscar Nihlgård
3b310e91cd
New implementations of times.parse & times.format ( #8094 )
2018-07-09 20:04:25 +02:00
genotrance
c115090f6e
Testament should run tests with no action ( #8232 )
...
* Testament should run tests with no action
* Fix strutils tests for JS
2018-07-08 20:38:46 -04:00
Dominik Picheta
53ce58f050
Merge pull request #6587 from FedericoCeratto/normalizePath
...
Add normalizePath and tests
2018-07-07 10:12:07 +01:00
Araq
8667899d53
hotfix: fixes possible out of bounds access in ospaths.joinPath
2018-07-07 02:31:43 +02:00
Federico Ceratto
d65429d857
Add normalizePath and tests
2018-07-06 20:21:39 +01:00