Miran
c62513049c
fix #14082 , don't crash on incorrectly formatted input ( #14977 ) [backport]
...
* fix #14082 , don't crash on incorrectly formatted input
* address code review
* remove duplication
2020-07-17 10:59:53 +02:00
Arne Döring
4005f0d0e4
forward type alignment information to seqs ( #12430 )
2020-04-19 07:52:01 +02:00
alaviss
0eaacbc2c4
More fixes for Haiku ( #13774 )
...
* osproc: move fork-based code path under the when conditional
* osproc: avoid using the environ global on Haiku
* osenv: import environ from stdlib.h on Haiku
Haiku's environ is declared in `<stdlib.h>` by default, differing from
POSIX and/or Linux. Import it from there to avoid collision with anyone
importing `<stdlib.h>` from Nim.
2020-03-27 09:08:13 +01:00
Timothee Cour
bf22b44b1f
miscellaneous bug fixes ( #13291 )
...
* fix for emscripten etc
* add testcase for #13290
* replace deprecated isNilOrWhitespace
2020-01-30 10:54:50 +01:00
Teashrock
27fee4d8b4
Deleted misplaced separator ( #13085 ) [backport]
...
Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
2020-01-09 11:48:13 +01:00
narimiran
cc3e9ca164
remove unused imports
2019-11-06 12:01:00 +01:00
Andreas Rumpf
c0d240b8cd
fixes #11807 ( #11900 )
...
* fixes #11807
* make tests green again
2019-08-07 22:40:58 +02:00
genotrance
44aadd50cf
Fix #10630 - fix broken separators in nim doc ( #11814 )
2019-07-24 14:45:05 +02:00
alaviss
a59fb5b352
os: confine osErrorMsg example to Linux ( #11725 )
...
POSIX does **not** define the exact number for each errors. This caused
a failure in docs building on Haiku.
2019-07-13 16:16:09 +02:00
Kaushal Modi
7182922622
[feature] Added os.delEnv; add delEnv support to nimscript too ( #11466 )
...
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452 .
2019-06-15 11:32:26 +02:00
Dominik Picheta
73c44c6e9b
[bugfix] Fixes async IO operations stalling even after socket is closed. ( #11232 )
2019-06-12 17:07:05 +02:00
genotrance
c94ab46923
Fix ospaths import error ( #11150 )
2019-05-01 08:54:02 +02:00
Araq
c3067e36bb
newruntime: progress
2019-04-01 16:51:18 +02:00
Miran
aeb30a72c0
update unicode.nim ( #10921 )
...
* update unicode.nim
* create a script to create the needed unicode data
* make unicode.nim compatible with Unicode v12.0.0
* slightly improve unicode.nim documentation (fixes #4795 )
* more documentation
2019-03-31 08:36:04 +02:00
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