summary refs log tree commit diff stats
path: root/tests/async/tasync_traceback.nim
Commit message (Collapse)AuthorAgeFilesLines
* Make async stacktraces less verbose (#21091)Jake Leahy2022-12-151-38/+9
| | | | | | | | | | | | | | | | | | | | | | | * 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
* defaults to ORC (#19972)ringabout2022-09-231-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defaults to Orc * bootstrap using refc * use gc * init orc defines * unregister orc * fix gc * fix commands * add prepareMutation for orc * enable deepcopy for orc * prepareMutation * more fixes * some cases * bug #20081 * partial fixes * partial fixes * fixes command line * more fixes * build Nim with refc * use gc * more fixes * rstore * orc doesn't support threadpool * more shallowCopy * more fixes * fixes unsafeNew * workarounds * small * more fixes * fixes some megatest * tcodegenbugs1 refc * fxies megatest * build nimble with refc * workaround tensordsl tests * replace shallowCopy with move * fixes action * workaround * add todo * fixes important packages * unpublic unregisterArcOrc * fixes cpp * enable windows Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵Ștefan Talpalaru2021-05-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | [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.
* Make await a template (#12085)Alexander Ivanov2020-04-251-2/+4
| | | | | * Make await a template * Generate await inside async/multisync
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-2/+7
| | | | * fixes #11847
* make async tests green againAndreas Rumpf2019-07-111-5/+5
|
* make tests green againAraq2019-07-101-5/+5
|
* Fixed testsYuriy Glukhov2018-06-061-5/+21
|
* Review comments addressed. More thorough line info tracking.Yuriy Glukhov2018-05-101-2/+2
|
* Fix tasync_traceback test.Dominik Picheta2018-01-111-0/+1
|
* Use regex to match output of tasync_traceback.Dominik Picheta2018-01-111-60/+69
|
* Simplify async traceback processing.Dominik Picheta2017-12-281-29/+43
|
* No need to recurse now that mergeEntries doesn't do any pattern matching.Dominik Picheta2017-12-281-2/+2
|
* Show only detailed async tracebacks.Dominik Picheta2017-12-281-10/+17
|
* Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.Dominik Picheta2017-12-281-0/+1
|
* Go through the re-raise stacks for more detailed tracebacks.Dominik Picheta2017-12-281-3/+44
|
* Refine the async tracebacks.Dominik Picheta2017-12-281-5/+12
|
* Implement some simple pattern-based transformation for async tracebacks.Dominik Picheta2017-12-281-0/+46