Miran
0c2c2dca2a
better docs: os ( #10492 )
...
* better docs: os
* remove broken test on osx
2019-01-30 17:35:09 +01:00
Kobi
28b3c8d74d
prevent index out of bounds error in oserr.nim
2019-01-19 10:56:36 -08:00
Federico Ceratto
095eaacf21
Fix spelling errors ( #10379 )
2019-01-19 16:01:27 +01:00
narimiran
29e0a792ff
[backport] fix documentation leak to os.nim[ci skip]
2019-01-14 09:24:12 +01:00
Araq
9cc4a57768
os.nim: big refactoring, use the new pathnorm that was extracted by compiler/pathutils.nim; added os.relativePath
2018-12-13 12:05:50 +01:00
Andreas Rumpf
3177aee75f
Merge pull request #9910 from nc-x/fix-semicolon
...
Fixes #9907
2018-12-11 12:26:23 +01:00
Neelesh Chandola
5aba5875da
Address Comments
2018-12-11 10:44:43 +05:30
Neelesh Chandola
abdfbd07a5
Fixes #9907
2018-12-09 10:35:30 +05:30
Dominik Picheta
775bfb3e8d
Merge async common into asyncdispatch.
2018-12-07 22:47:10 +00:00
pgkos
4efbde84ee
Make getEnv case insensitive on Windows ( #9722 )
2018-11-16 08:45:50 +01:00
Andreas Rumpf
8d850f7a69
deprecated ospaths ( #9665 )
2018-11-09 16:36:49 +01:00
LemonBoy
a27429304e
Convert *_family fields to cushort
...
Fixes #9008
2018-09-19 12:33:11 +02:00
Timothee Cour
67aa8eab0b
add data.sysCommand when startProcessAuxSpawn raises
2018-09-06 03:12:10 -07:00
Timothee Cour
9249276db0
addresses issue #8391 show runtime context on some failed operations ( #8393 )
2018-07-23 22:58:03 +02:00
Dominik Picheta
f805018461
Fixes #5880 . ( #7229 )
2018-07-10 00:33:31 +02:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
Dominik Picheta
1a2351f95f
Fixes #4995 . ( #7157 )
2018-02-13 11:08:37 +01:00
Andreas Rumpf
58187f2120
added a warning that the .deprecate statement is unreliable for routines
2017-11-21 11:27:35 +01:00
Andreas Rumpf
0895064983
getEnv now supports a 'default' parameter; refs #6019
2017-10-30 17:21:05 +01:00
Andreas Rumpf
b018ddca03
another attempt to make travis and appveyor green again
2017-09-01 15:55:41 +02:00
Andreas Rumpf
dcc72ea7a9
fix os.nim for Windows
2017-09-01 11:24:30 +02:00
Andreas Rumpf
50666a1f8b
refactor os.nim and ospaths.nim
2017-09-01 10:35:50 +02:00
Michał Zieliński
e86863e8f5
asyncdispatch: split asyncfutures into its own module
...
This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
2017-07-05 12:54:09 +02:00
Dominik Picheta
bf0afaf3c4
Fixes web0 on Mac OS X.
2017-05-17 22:11:43 +01:00
Ruslan Mustakov
ecf278c467
Implement dial, support IPv6 in httpclient ( #5763 )
...
* Implement dial, support IPv6 in httpclient
Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.
Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.
Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.
Fixes : #3811
* Check domain during connect() only on non-Windows
This is how it was in the previous implementation of connect().
* Call 'osLastError' before 'close' in net.dial
* Record osLastError before freeAddrInfo in net.dial
* Add missing docs for 'dial' proc
* Optimize dial to create one FD per domain, add tests
And make async IPv6 servers work on Windows.
* Add IPv6 test to uri module
* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
Araq
48c50f6b41
make the logic right
2017-02-26 13:28:46 +01:00
Dominik Picheta
f9cce32097
Various fixes to FutureStreams based on PR feedback.
2017-02-26 12:52:19 +01:00
Dominik Picheta
77071eb767
FutureStream's cb call behaviour fixed + other fixes.
2017-02-11 12:42:30 +01:00
Dominik Picheta
2f502e2a9e
Remove immediate FutureStream procs and make 'put' awaitable.
2017-02-10 20:40:32 +01:00
Dominik Picheta
ddd3d3f44a
Improve implementation of takeAsync for FutureStreams.
2017-02-10 20:18:59 +01:00
Dominik Picheta
7766fdfec1
Implemented a first working version of FutureStreams.
2017-02-10 00:06:18 +01:00
Dominik Picheta
e189004a03
WIP implementation of FutureStream.
2017-02-09 22:46:20 +01:00
Araq
75b7756d79
fixes #4948
2017-01-06 13:21:59 +01:00
Dominik Picheta
c538e1ae08
Fixes asyncdispatch.all completing its res future more than once.
2016-11-21 23:44:38 +01:00
Ruslan Mustakov
f2bded180f
async all() now immediately completes if arg is empty
2016-11-03 10:50:43 +07:00
Dominik Picheta
c24d6fe17e
Fixes pesky hint in asyncfutures.
2016-10-01 00:09:17 +02:00
Andreas Rumpf
21e35c201c
made async compile again
2016-09-26 23:31:36 +02:00