Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make async stacktraces less verbose (#21091) | Jake Leahy | 2022-12-15 | 1 | -12/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | * Name iterators something human readable Remove intermediate async procs from stacktraces Clean async traceback message from reraises message * Remove unused import/variable * Fix failing tests Don't add {.stackTrace: off.} to anonymous procs (They already don't appear in stacktrace) * Fix failing tests in pragma category Now check that the nim is a routine type first so we don't run into any assertion defects * Hide stack trace pragma in docs and update doc tests User doesn't need to know if something won't appear so this more becomes verbose noise If this is a bad idea we can always add a `when defined(nimdoc)` switch so we don't add {.stackTrace: off.} to the Future[T] returning proc for docs | ||||
* | make more standard libraries work with `nimPreviewSlimSystem` (#20343) | ringabout | 2022-09-27 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last | ||||
* | test removing dollar for objects out of system (#20242) | metagn | 2022-08-24 | 1 | -0/+3 |
| | | | | | | | | | | | * test removing dollar for objects out of system * test & fixes * fix bootstrap * use nimPreviewSlimSystem, test stdlib category * fix test | ||||
* | Fix type mismatch with future logging (#19131) | Jake Leahy | 2021-11-12 | 1 | -1/+1 |
| | |||||
* | fixes #18858 [backport] (#18868) | Andreas Rumpf | 2021-09-19 | 1 | -1/+1 |
| | | | | | | | * fixes #18858 [backport] * ensure async tests work with --experimental:strictEffects [backport] * ensure async tests work with --experimental:strictEffects [backport] | ||||
* | asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵ | Ștefan Talpalaru | 2021-05-19 | 1 | -14/+32 |
| | | | | | | | | | | | | | | | | | | | | | | [backport:1.2] Copying StackTraceEntry instances when nimStackTraceOverride is defined breaks the link between a cstring field that's supposed to point at another string field in the same object. Sometimes, the original object is garbage collected, that memory region reused for storing other strings, so when the StackTraceEntry copy tries to use its cstring pointer to construct a traceback message, it accesses unrelated strings. This only happens for async tracebacks and this patch prevents that by making sure we only use the string fields when nimStackTraceOverride is defined. Async tracebacks also beautified slightly by getting rid of an extra line that was supposed to be commented out, along with the corresponding debugging output. There's also a micro-optimisation to avoid concatenating two strings just to get their combined length. | ||||
* | ORC: cursor inference bugfix (#17973) | Andreas Rumpf | 2021-05-08 | 1 | -2/+2 |
| | | | | | * fixed a .cursor inference bug * added a test case | ||||
* | simplify asyncfutures, asyncmacro (#17633) | Timothee Cour | 2021-04-14 | 1 | -11/+9 |
| | |||||
* | remove un-needed {.push hint[ConvFromXtoItselfNotNeeded]: off.} in ↵ | Timothee Cour | 2021-04-03 | 1 | -2/+0 |
| | | | | asyncfutures, asyncmacro (#17631) | ||||
* | use single backtick (#17166) | flywind | 2021-02-23 | 1 | -38/+38 |
| | |||||
* | add -d:nimStrictMode in CI to keep code from regressing; fixes ↵ | Timothee Cour | 2021-02-17 | 1 | -1/+4 |
| | | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764) | ||||
* | remove quotation marks around imports - fixes links in the docs (#16888) | Miran | 2021-02-01 | 1 | -1/+1 |
| | |||||
* | better nativestacktrace support; refs #15284; backport [1.2] (#15384) | Andreas Rumpf | 2020-09-22 | 1 | -3/+10 |
| | | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com> | ||||
* | async: minor refactorings (#15354) | Andreas Rumpf | 2020-09-18 | 1 | -26/+8 |
| | |||||
* | change some Exceptions to CatchableError or Defect, fixes #10288 (#14069) | hlaaftana | 2020-04-22 | 1 | -1/+1 |
| | |||||
* | cycle breaker (#13593) | Andreas Rumpf | 2020-03-19 | 1 | -1/+1 |
| | | | | * cycle breaking as an alternative to cycle detection | ||||
* | async: use $ and not repr in debug mode | Araq | 2019-11-05 | 1 | -1/+1 |
| | |||||
* | [backport] run nimpretty on async | narimiran | 2019-09-30 | 1 | -8/+8 |
| | |||||
* | last stdlib cleanups | Araq | 2019-09-21 | 1 | -0/+9 |
| | |||||
* | make async tests green again | Andreas Rumpf | 2019-07-11 | 1 | -1/+5 |
| | |||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -3/+3 |
| | | | | --styleCheck:error | ||||
* | newruntime: async progress | Araq | 2019-07-09 | 1 | -8/+24 |
| | |||||
* | async: more 'owned' annotations | Araq | 2019-07-09 | 1 | -1/+2 |
| | |||||
* | newruntime for async (#11650) | Andreas Rumpf | 2019-07-05 | 1 | -3/+3 |
| | | | | | | | * fixes overloading resolution for passing owned(Future[string]) to Future[T] * WIP: make --newruntime work with .async * memtracker: make it compile again * make Nimble compile again | ||||
* | [bugfix] Fixes async IO operations stalling even after socket is closed. ↵ | Dominik Picheta | 2019-06-12 | 1 | -5/+7 |
| | | | | (#11232) | ||||
* | Implements pending future tracking in async. | Dominik Picheta | 2019-05-06 | 1 | -3/+48 |
| | |||||
* | complete future only once in `or` (fixes #8982) (#9632) | Miran | 2018-11-09 | 1 | -2/+3 |
| | | | | | | | | | * complete future only once in `or` Analogous to `and`. Credits to @k0zmo for proposing the solution. * add test | ||||
* | keep the order of the callbacks | narimiran | 2018-11-07 | 1 | -5/+11 |
| | |||||
* | docs: clarify `asyncCheck` vs `waitFor` | citycide | 2018-10-27 | 1 | -1/+2 |
| | |||||
* | stdlib: minor changes to avoid compiler warnings | Andreas Rumpf | 2018-09-19 | 1 | -1/+1 |
| | |||||
* | WIP: disallow 'nil' for strings and seqs | Andreas Rumpf | 2018-08-13 | 1 | -2/+2 |
| | |||||
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -2/+0 |
| | |||||
* | Make clearCallbacks() public. (#7753) | Eugene Kabanov | 2018-05-03 | 1 | -1/+1 |
| | |||||
* | Merge branch 'devel' into async-improvements | Dominik Picheta | 2018-01-17 | 1 | -12/+73 |
|\ | |||||
| * | Merge pull request #6962 from nim-lang/fixes/6100 | Dominik Picheta | 2018-01-10 | 1 | -3/+3 |
| |\ | | | | | | | Fixes #6100. | ||||
| | * | Fixes #6100. | Dominik Picheta | 2017-12-27 | 1 | -3/+3 |
| | | | |||||
| * | | Simplify async traceback processing. | Dominik Picheta | 2017-12-28 | 1 | -42/+15 |
| | | | |||||
| * | | made the logic correct | Andreas Rumpf | 2017-12-28 | 1 | -6/+5 |
| | | | |||||
| * | | attempt to get the stack trace logic right; fix boundaries | Araq | 2017-12-28 | 1 | -2/+2 |
| | | | |||||
| * | | attempt to get the stack trace logic right | Araq | 2017-12-28 | 1 | -14/+15 |
| | | | |||||
| * | | optimized friendly stack traces | Araq | 2017-12-28 | 1 | -29/+19 |
| | | | |||||
| * | | No need to recurse now that mergeEntries doesn't do any pattern matching. | Dominik Picheta | 2017-12-28 | 1 | -1/+2 |
| | | | |||||
| * | | Show only detailed async tracebacks. | Dominik Picheta | 2017-12-28 | 1 | -62/+2 |
| | | | |||||
| * | | Attempt to provide simplified and detailed tracebacks | Dominik Picheta | 2017-12-28 | 1 | -16/+34 |
| | | | |||||
| * | | Rename cb0 to asyncProcName_continue + other improvements to async tracebacks. | Dominik Picheta | 2017-12-28 | 1 | -35/+62 |
| | | | |||||
| * | | Go through the re-raise stacks for more detailed tracebacks. | Dominik Picheta | 2017-12-28 | 1 | -12/+43 |
| | | | |||||
| * | | Refine the async tracebacks. | Dominik Picheta | 2017-12-28 | 1 | -7/+29 |
| | | | |||||
| * | | Implement some simple pattern-based transformation for async tracebacks. | Dominik Picheta | 2017-12-28 | 1 | -9/+68 |
| |/ | |||||
* | | Merge branch 'devel' into async-improvements | Andreas Rumpf | 2017-12-11 | 1 | -2/+2 |
|\| | |||||
| * | Use addCallback rather than callback= in asyncfutures.all() (#6850) | Mathias Stearn | 2017-12-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | * Use addCallback rather than callback= in asyncfutures.all() Addresses part of #6849 * Stop using do notation for #6849 * Update example style |