Commit Graph

5052 Commits

Author SHA1 Message Date
Dominik Picheta
a9a13e470b Go through the re-raise stacks for more detailed tracebacks. 2017-12-28 09:21:22 +01:00
Dominik Picheta
9ca6afe73a Refine the async tracebacks. 2017-12-28 09:21:22 +01:00
Dominik Picheta
f73015ad9e Implement some simple pattern-based transformation for async tracebacks. 2017-12-28 09:21:22 +01:00
Dominik Picheta
52cc925e0e Fixes #6100. 2017-12-27 22:37:11 +00:00
Yuriy Glukhov
e49f18801c Fixed compilation error (#6979) 2017-12-27 17:35:57 +01:00
Konstantin Molchanov
b592f069bb Tables: toCountTable: Update docs. 2017-12-27 13:44:47 +04:00
Konstantin Molchanov
c36d7ffc7c Tables: make toCountTable actually count the elements of the input openArray. 2017-12-27 13:30:32 +04:00
Dominik Picheta
89b6f0318b Merge pull request #6957 from cheatfate/fix6906
Fix #6906
2017-12-22 15:33:22 +00:00
Dominik Picheta
8d992c4176 Merge pull request #6725 from FedericoCeratto/unittest-5114
Add unittest suite/test name filters
2017-12-22 15:26:45 +00:00
skilchen
a89b81eb96 fixes #6353 (#6951) 2017-12-21 16:32:26 +01:00
cheatfate
b22d9e4339 Fix #6906 2017-12-21 16:45:42 +02:00
Araq
e0e1241a54 move securehash back into the stdlib 2017-12-21 12:34:38 +01:00
Dmitry Atamanov
63403b31ad Modified behavior of walkDirRec (#6952) 2017-12-21 11:15:19 +01:00
Araq
77d56aaff6 cleanup times.nim 2017-12-21 10:11:45 +01:00
Mathias Stearn
af1404c85d Minor fixes to strformat docs (#6953) 2017-12-21 09:58:24 +01:00
skilchen
47d00eb397 add missing math.trunc for js backend (#6950) 2017-12-20 22:26:22 +01:00
Andreas Rumpf
85ac3130aa make asyncdispatch.poll completing all opterations that can be comple… (#6911)
introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
2017-12-19 12:39:50 +01:00
GULPF
a879973081 Better times module (#6552)
* First work on better timezones

* Update tests to new api.
Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead).

* Deprecate getLocaltime & getGmTime
* Add `now()` as a shorthand for GetTIme().inZone(Local)
* Add FedericoCeratto's timezone tests (#6548)
* Run more tests in all timezones

* Make month enum start at 1 instead of 0
* Deprecate getDayOfWeekJulian
* Fix issues with gc safety
* Rename TimeInfo => DateTime
* Fixes #6465
* Improve isLeapYear
* FIx handling negative adjTime

* Cleanup:
- deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float)
- added missing doc comments
- removed some unnecessary JS specific implementations

* Fix misstake in JS `-` for Time

* Update usage of TimeEffect
* Removed unecessary use of `difftime`
* JS fix for local tz
* Fix subtraction of months
* Fix `days` field in `toTimeInterval`
* Style and docs
* Fix getDayOfYear for real this time...
* Fix handling of adding/subtracting time across dst transitions
* Fix some bad usage of the times module in the stdlib
* Revert to use proper time resoultion for seeding in random.nim
* Move deprecated procs to bottom of file
* Always use `epochTime` in `randomize`
* Remove TimeInterval normalization
* Fixes #6905

* Fix getDayOfWeek for year < 1
* Export toEpochDay/fromEpochDay and change year/month/monthday order
* Add asserts for checking that the monthday is valid
* Fix some remaining ambiguous references to `Time`
* Fix ambiguous reference to Time
2017-12-18 23:11:28 +01:00
Araq
2775cda6e1 added new stdlib module 'cstrutils' for easier cstring handling 2017-12-18 13:16:29 +01:00
Araq
69aeb86f49 strformat: fix the documentation examples 2017-12-17 20:40:43 +01:00
Araq
3fc7082887 strformat: default for numbers is right alignment 2017-12-17 20:34:32 +01:00
Araq
2e61e6edf9 strformat: support 'sign' as Python does 2017-12-17 17:58:04 +01:00
Araq
5c7493f833 strformat: added '^' char for center alignment for Python compat 2017-12-17 17:21:43 +01:00
Araq
7ab3743d84 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-12-17 13:58:51 +01:00
Araq
26198e4ee7 added new stdlib module 'strformat'; refs #5600; refs #6507 2017-12-17 13:58:40 +01:00
skilchen
822da4b213 fix #6931 terminal.eraseline() gives OverflowError on Windows (#6933) 2017-12-17 10:57:45 +01:00
Strømberg
01649e3eb5 Name error in example (#6935)
Name error, example didn't compile .
2017-12-17 10:57:05 +01:00
Araq
8caa3df1c3 Merge branch 'parsesql' of https://github.com/treeform/Nim into treeform-parsesql 2017-12-15 16:49:59 +01:00
GULPF
cf9bee1702 Fix counttable smallest loop start (#6917)
* Fix counttable smallest

* Fix counttable smallest loop start
2017-12-15 13:59:32 +01:00
Araq
8decf0f5ce make JS tests green again 2017-12-15 11:34:17 +01:00
Araq
196977f623 many improvements to random.nim; fixes #4726 2017-12-14 21:37:53 +01:00
Araq
da2f689e09 fixes #6033 2017-12-14 20:49:08 +01:00
treeform
55fdac46e3 fix 2017-12-14 18:40:20 +00:00
Jon Caldwell
54ee368358 Fix identifier in cursor* templates in terminal 2017-12-14 18:36:18 +00:00
treeform
ee5a76fd9d fix 2017-12-14 18:36:18 +00:00
treeform
08d7b5d031 fix 2017-12-14 18:36:17 +00:00
treeform
c6b33de127 fix 2017-12-14 18:36:17 +00:00
Fabian Keller
6df6ec27ec Improved collection-to-string behavior (#6825) 2017-12-14 14:02:13 +01:00
GULPF
542d45f882 Fix counttable smallest (#6912) 2017-12-13 02:52:35 +01:00
Araq
63f5e3f920 Merge branch 'nosproc2' of https://github.com/cheatfate/Nim into cheatfate-nosproc3 2017-12-13 02:47:40 +01:00
cheatfate
e952ada1ba Fix 2017-12-13 00:36:14 +02:00
Araq
6f8e98cff2 improve the docs for tables.add 2017-12-12 19:55:46 +01:00
cheatfate
0429f41e98 execProcesses optimization. 2017-12-12 20:00:14 +02:00
cheatfate
e672249859 Windows: Fix invalid handle value for execProcesses.
Windows. Fix named pipes leak.
2017-12-12 16:53:09 +02:00
cheatfate
59d4530562 Remove -3 as marker of exited process.
Cache exiting process for Windows to omit unnecessary syscalls.
Fix closing hThread for Windows.
Fix for pause/resume on Windows.
Fix process handle leak on Windows.
Change behavior for waitForExit on Windows.
2017-12-11 21:12:07 +02:00
Andreas Rumpf
5e43e0d789 Merge branch 'devel' into async-improvements 2017-12-11 15:12:45 +01:00
skilchen
28e0bf9dcd fix #6264 and #6141 (#6884) 2017-12-11 14:43:59 +01:00
Andreas Rumpf
6e08ae5c26 merged patch #6876 manually, taking care of poDemon 2017-12-11 11:57:21 +01:00
Mathias Stearn
b87ef65532 Use addCallback rather than callback= in asyncfutures.all() (#6850)
* Use addCallback rather than callback= in asyncfutures.all()

Addresses part of #6849

* Stop using do notation for #6849

* Update example style
2017-12-09 00:55:04 +00:00
Araq
b0c682de4d Merge branch 'devel' into araq-new-mm2 2017-12-08 10:06:56 +01:00