Timothee Cour
0b2bbcaa23
fix #18077 testament now parses cmd properly ( #18086 )
2021-05-26 09:46:53 +02:00
Timothee Cour
8df55d0ad7
close #3482 no more cgen error with typed templates ( #18094 )
2021-05-26 09:44:00 +02:00
Timothee Cour
c495628255
refactor common code in CI pipelines ( #18035 )
...
* refactor CI with nimInternalInstallDepsWindows
* refactor CI with nimInternalBuildKochAndRunCI
* fixup
2021-05-26 09:43:30 +02:00
Timothee Cour
b59dc3b255
remove some custom logic in testament around flags, testExec ( #18090 )
...
* remove some custom logic in testament around flags, testExec
* remove testExec, custom logic around flags from testament
* fixup
2021-05-26 09:41:50 +02:00
xioren
478f717377
Move async example to asynchronous version of proc ( #18078 )
...
* improve runnableExamples in std/httpclient
* Add synchronous example.
* Update lib/pure/httpclient.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-05-24 20:56:31 -07:00
Timothee Cour
d217888e56
close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to distinguish from 0.0 ( #18067 )
2021-05-23 23:06:14 +02:00
Timothee Cour
1421a3bf26
pkg/pixie: use latest ( #18069 )
2021-05-23 12:28:26 -07:00
Euan
61630c6aee
Use gmake for NetBSD as well as FreeBSD/OpenBSD ( #18064 )
2021-05-23 09:23:20 -07:00
Timothee Cour
1636c05d13
close #5540 generic object with generic field evaluated too early ( #18062 )
2021-05-23 01:02:04 -07:00
Juan Carlos
e12597589f
Error message minor ( #18021 )
...
* 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 >
2021-05-22 13:12:30 +02:00
Andrey Makarov
9f7e2e3057
docs: make inline markup more compatible with Markdown ( #18053 )
...
fixes https://github.com/timotheecour/Nim/issues/739
2021-05-21 06:54:20 +02:00
Juan Carlos
6a5973882b
jsgen improve spacing ( #18048 )
...
* Fix inconsistent spacings in generated JS of jsgen
2021-05-20 15:48:46 +02:00
Andreas Rumpf
df429fa287
config system: special case -d:release and -d:danger [backport:1.4] ( #18051 )
2021-05-20 11:52:46 +02:00
Ștefan Talpalaru
a1c82c39af
asyncdispatch+stackTraceOverride: fix premature collection ( #18039 ) [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.
2021-05-19 19:19:11 +02:00
Andreas Rumpf
7052503ca8
make strformat part of the prelude ( #18046 )
2021-05-19 19:18:16 +02:00
Andreas Rumpf
558644725d
fixes #17943 ( #18045 )
...
* 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 >
2021-05-19 16:00:14 +02:00
Andreas Rumpf
53935b8b27
ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] ( #18040 )
...
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4]
* Update tests/arc/tnewseq_legacy.nim
2021-05-18 21:45:37 +02:00
Timothee Cour
31143c68fc
disable pkg/fidget refs https://github.com/treeform/fidget/issues/155 ( #18043 )
2021-05-18 10:48:13 -07:00
Timothee Cour
7f077a76fe
jsonutils: add customization for toJson via ToJsonOptions; generalize 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 >
2021-05-18 15:10:19 +02:00
Antonis Geralis
6e0fe965da
add sink and lent annotations for xmltree and streams ( #18037 )
2021-05-18 08:16:07 +02:00
Clyybber
fac5bae7b7
Fix running testament c nimble-packages without batch arg ( #18023 )
...
* Fix running testament c nimble-packages without batch arg
* Fix
2021-05-17 13:48:10 +02:00
Timothee Cour
8be5344b3b
./koch --nonexistant now fails ( #18036 )
2021-05-17 01:28:52 -07:00
Joey
e904c6d87c
Add checked to dom ( #18033 )
...
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.
2021-05-17 08:04:39 +02:00
Andrey Makarov
2096490b59
follow-up #17930 - inline syntax highlighting ( #18013 )
...
* follow-up #17930 - inline syntax highlighting
* make closure->nimcall
2021-05-16 23:55:14 +02:00
Timothee Cour
d83b25db1e
fix #18007 : std/json now serializes nan,inf,-inf as strings instead of 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]
2021-05-16 23:54:10 +02:00
Clyybber
63fcb9e5f5
Disable performance hints by default (verbosity 1) ( #18024 )
2021-05-16 19:43:52 +02:00
Timothee Cour
3619a5a2aa
more informative error msg for undeclared field (A(badfield: 1) and a.badfield = expr) ( #17777 )
2021-05-16 10:03:22 -07:00
flywind
65f6b66820
Revert "[std/re]fix terrible and strange interface" ( #18027 )
...
This reverts commit c218f2ba0b .
2021-05-16 11:10:41 +08:00
flywind
c218f2ba0b
[std/re]fix terrible and strange interface
2021-05-16 10:39:52 +08:00
Clyybber
3614523664
Rework DFA traversal ( #18016 )
...
* enable using dbg: without a context
* Optimally joining first write/last read analysis
* Add test for #18002
* potLastReads -> potentialLastReads
2021-05-16 00:15:53 +02:00
Thomas T. Jarløv
99788ee504
Escape %00 / \0 in dbQuote ( #18015 ) [backport:1.4]
...
Fix https://github.com/nim-lang/Nim/issues/17925
2021-05-15 21:26:15 +02:00
Andrey Makarov
3824fd3f9a
RST opt.list to have priority over def.list ( #17845 )
2021-05-15 08:12:26 +02:00
Andrey Makarov
1568ae23c6
docgen: escape special characters in titles ( #18014 )
2021-05-15 06:53:38 +02:00
Andreas Rumpf
4857c462d5
Revert "fix #14873 properly by skipping abi field in importc type ( #17944 )" ( #17992 )
...
This reverts commit 98c29c01eb .
2021-05-15 06:50:39 +02:00
Timothee Cour
2ce592a209
refs #18011 disable some newly failing tests on cpp windows; refs #17946 increase timeout for tchannels ( #18012 )
2021-05-14 15:33:17 -07:00
Andrey Makarov
97970d9dcc
doc2tex: generate docs to Latex (#17997 )
...
* `doc2tex`: generate docs to Latex
* address some comments
2021-05-14 07:30:47 +02:00
Timothee Cour
3c622d7999
upgrade nodejs; add nimCiSystemInfo on azure/github CI ( #18003 )
...
* upgrade nodejs; add nimCiSysmtemInfo on all CI
* fix typo
2021-05-13 09:15:32 +02:00
Andreas Rumpf
3bc625aff1
ORC: progress ( #18000 )
...
* ORC: progress
* ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic
* progress
* minor style changes
2021-05-12 22:00:37 +02:00
narimiran
60b4fa71a8
[ci skip] correctly explain how to use [backport] tags
2021-05-12 13:57:43 +02:00
gavr123456789
f533ed07bd
docs: fix syntax error in hotCodeReloading example ( #17999 )
...
#17998
Co-authored-by: g.maksutenko <g.maksutenko@indevstudio.com >
2021-05-12 19:20:57 +08:00
Andreas Rumpf
39ad9a69a9
ORC: improvements ( #17993 )
...
* ORC: improvements
* ORC: fix .acyclic annotation for ref objects
2021-05-12 07:15:05 +02:00
Timothee Cour
1e080eb9b4
jsonutils: handle holey enum as regular enum, via ord ( #17995 )
2021-05-11 22:49:47 +02:00
Timothee Cour
a770c98e27
jsonutils: support set ( #17994 )
2021-05-11 21:09:17 +02:00
Timothee Cour
e60672141a
improve std/tempfiles ( #17920 )
...
* improve std/tempfiles
* fixup
* fix windows
* improve test
* improve runnableExamples and tests
* address comment
2021-05-11 16:35:43 +02:00
Andreas Rumpf
2c2ec48bc4
ORC: critical bugfix for mixing acyclic refs with cyclic refs [backport:1.4] ( #17991 )
2021-05-11 16:21:29 +02:00
Timothee Cour
45490497e3
fix #17467 1st call to rand is now non-skewed; allow seed == 0 ( #17468 )
...
* 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
2021-05-11 11:04:59 +02:00
Timothee Cour
f68f28d157
make testament isSuccess more robust and allow tests with --hints:off to succeed ( #17968 )
...
* fix testament isSuccess
* show givenSpec in addResult
* simplify tstatictypes.nim
2021-05-11 06:54:52 +02:00
Andreas Rumpf
378ee7f888
feature: the compiler can warn when you use the implicit 'result' variable ( #17988 ) [backport:1.2]
...
* implements #17855
2021-05-10 23:41:51 +02:00
Andreas Rumpf
a9ae5fe5be
since we have now so many virtual registers, reduce memory consumption for the register allocator ( #17985 )
2021-05-10 11:29:19 +02:00
Andreas Rumpf
983a2aa11c
Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ( #17967 )" ( #17984 )
...
This reverts commit f4dd95f3be .
2021-05-09 23:33:31 +02:00