summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* close #5540 generic object with generic field evaluated too early (#18062)Timothee Cour2021-05-231-0/+45
|
* Error message minor (#18021)Juan Carlos2021-05-222-2/+2
| | | | | | | * Update compiler/semtypes.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* docs: make inline markup more compatible with Markdown (#18053)Andrey Makarov2021-05-216-61/+167
| | | fixes https://github.com/timotheecour/Nim/issues/739
* jsgen improve spacing (#18048)Juan Carlos2021-05-202-32/+32
| | | | * Fix inconsistent spacings in generated JS of jsgen
* config system: special case -d:release and -d:danger [backport:1.4] (#18051)Andreas Rumpf2021-05-206-7/+27
|
* asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵Ștefan Talpalaru2021-05-194-17/+36
| | | | | | | | | | | | | | | | | | | | | | [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 strformat part of the prelude (#18046)Andreas Rumpf2021-05-192-1/+4
|
* fixes #17943 (#18045)Andreas Rumpf2021-05-193-16/+24
| | | | | | | | | | | * fixes #17943 * IC: test 'nim check --ic:on' for the full Nim compiler * Update testament/testament.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] (#18040)Andreas Rumpf2021-05-183-1/+23
| | | | * ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] * Update tests/arc/tnewseq_legacy.nim
* disable pkg/fidget refs https://github.com/treeform/fidget/issues/155 (#18043)Timothee Cour2021-05-181-1/+1
|
* jsonutils: add customization for toJson via `ToJsonOptions`; generalize ↵Timothee Cour2021-05-184-14/+112
| | | | | | | | | | | | | | | | | | | symbolName; add symbolRank (#18029) * jsonutils: add customization for toJson via `ToJsonOptions` * add enumutils.symbolRank * lookup table implementation for HoleyEnum * cleanup * changelog * fixup * Update lib/std/jsonutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add sink and lent annotations for xmltree and streams (#18037)Antonis Geralis2021-05-182-16/+16
|
* Fix running testament c nimble-packages without batch arg (#18023)Clyybber2021-05-171-3/+4
| | | | | * Fix running testament c nimble-packages without batch arg * Fix
* ./koch --nonexistant now fails (#18036)Timothee Cour2021-05-171-4/+5
|
* Add `checked` to dom (#18033)Joey2021-05-171-0/+3
| | | This allows the ability to set a checkbox as checked programmatically. It's different from `setAttribute` because once an input has been clicked on by the user, `setAttribute` no longer works programmatically.
* follow-up #17930 - inline syntax highlighting (#18013)Andrey Makarov2021-05-163-24/+57
| | | | | * follow-up #17930 - inline syntax highlighting * make closure->nimcall
* fix #18007: std/json now serializes nan,inf,-inf as strings instead of ↵Timothee Cour2021-05-165-51/+119
| | | | | | | | | | | | | | | | | invalid json (#18026) * fix #18007: std/json now serializes nan,inf,-inf as raw strings instead of invalid json * fix roundtrip * fix tests * fix changelog * simplify * add runnableExamples * fix typo [skip ci]
* Disable performance hints by default (verbosity 1) (#18024)Clyybber2021-05-161-1/+1
|
* more informative error msg for undeclared field (`A(badfield: 1)` and ↵Timothee Cour2021-05-163-3/+55
| | | | `a.badfield = expr`) (#17777)
* Revert "[std/re]fix terrible and strange interface" (#18027)flywind2021-05-161-6/+6
| | | This reverts commit c218f2ba0b8e27110087ea754c11cff123806a94.
* [std/re]fix terrible and strange interfaceflywind2021-05-161-6/+6
|
* Rework DFA traversal (#18016)Clyybber2021-05-162-118/+142
| | | | | | | | | * enable using dbg: without a context * Optimally joining first write/last read analysis * Add test for #18002 * potLastReads -> potentialLastReads
* Escape `%00` / `\0` in `dbQuote` (#18015) [backport:1.4]Thomas T. Jarløv2021-05-151-1/+3
| | | Fix https://github.com/nim-lang/Nim/issues/17925
* RST opt.list to have priority over def.list (#17845)Andrey Makarov2021-05-152-2/+28
|
* docgen: escape special characters in titles (#18014)Andrey Makarov2021-05-151-2/+3
|
* Revert "fix #14873 properly by skipping `abi` field in importc type ↵Andreas Rumpf2021-05-153-17/+14
| | | | | (#17944)" (#17992) This reverts commit 98c29c01eb91a0c6ce7da09380a272eebe6bca6f.
* refs #18011 disable some newly failing tests on cpp windows; refs #17946 ↵Timothee Cour2021-05-145-8/+14
| | | | increase timeout for tchannels (#18012)
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-1412-164/+174
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* upgrade nodejs; add nimCiSystemInfo on azure/github CI (#18003)Timothee Cour2021-05-134-15/+27
| | | | | * upgrade nodejs; add nimCiSysmtemInfo on all CI * fix typo
* ORC: progress (#18000)Andreas Rumpf2021-05-1211-27/+50
| | | | | | | | | * ORC: progress * ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic * progress * minor style changes
* [ci skip] correctly explain how to use `[backport]` tagsnarimiran2021-05-121-3/+3
|
* docs: fix syntax error in hotCodeReloading example (#17999)gavr1234567892021-05-121-1/+1
| | | | | #17998 Co-authored-by: g.maksutenko <g.maksutenko@indevstudio.com>
* ORC: improvements (#17993)Andreas Rumpf2021-05-126-12/+18
| | | | * ORC: improvements * ORC: fix .acyclic annotation for ref objects
* jsonutils: handle holey enum as regular enum, via ord (#17995)Timothee Cour2021-05-113-3/+9
|
* jsonutils: support set (#17994)Timothee Cour2021-05-113-5/+15
|
* improve std/tempfiles (#17920)Timothee Cour2021-05-113-33/+94
| | | | | | | | * improve std/tempfiles * fixup * fix windows * improve test * improve runnableExamples and tests * address comment
* ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ↵Andreas Rumpf2021-05-112-8/+12
| | | | (#17991)
* fix #17467 1st call to rand is now non-skewed; allow seed == 0 (#17468)Timothee Cour2021-05-114-67/+75
| | | | | | | | | | | | | | | * fix #17467 1st call to rand is now non-skewed; allow passing 0 as seed * changelog + fallback * document behavior for seed == 0 * address comments * _ * fix tests, disable kdtree * re-enable kdtree with -d:nimLegacyRandomInitRand
* make testament `isSuccess` more robust and allow tests with `--hints:off` to ↵Timothee Cour2021-05-114-11/+35
| | | | | | | | | succeed (#17968) * fix testament isSuccess * show givenSpec in addResult * simplify tstatictypes.nim
* feature: the compiler can warn when you use the implicit 'result' variable ↵Andreas Rumpf2021-05-103-2/+7
| | | | | (#17988) [backport:1.2] * implements #17855
* since we have now so many virtual registers, reduce memory consumption for ↵Andreas Rumpf2021-05-103-50/+48
| | | | the register allocator (#17985)
* Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ↵Andreas Rumpf2021-05-093-42/+3
| | | | | (#17967)" (#17984) This reverts commit f4dd95f3bee14b69caec63c3be984c4a75f43c8a.
* close #9039: compiler does not hang anymore in 1 case involving static ↵Timothee Cour2021-05-091-0/+24
| | | | params and arrays (#17983)
* Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)Beshr Kayali2021-05-093-3/+42
| | | | | | | | | | | | | | | | | | | * Fix parseUri to sanitize urls containing ASCII newline or tab * Fix ups based on review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Additional fix ups based on review - Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict - Move some parseUri tests to uri module test file Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Update changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fixes #17675 (#17981)Andreas Rumpf2021-05-091-1/+1
|
* fix #17960: honor `matrix` also for `action: compile, action: reject` (#17980)Timothee Cour2021-05-092-8/+9
| | | | * fix #17960: honor `matrix` for all action
* treetab: tiny cleanup (#17929)Clyybber2021-05-091-6/+4
| | | | | | | | | | | | | * treetab: tiny cleanup * Another tiny thing * Explicitly move n Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Typo Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* testament :show duration also for failed tests; improve `tshould_not_work`; ↵Timothee Cour2021-05-0821-39/+64
| | | | | | | | | | | mitigate #17946 tchannels timeouts (#17947) * refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug
* merge `initUri()` overloads, improve uri examples (#17970)Timothee Cour2021-05-081-30/+11
| | | | | | | * deprecate `uri.initUri` and improve uri examples * remove `func initUri*()` and make isIpv6 optional * fixup
* ORC: cursor inference bugfix (#17973)Andreas Rumpf2021-05-083-5/+50
| | | | | * fixed a .cursor inference bug * added a test case