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
Timothee Cour
f07583588c
close #9039 : compiler does not hang anymore in 1 case involving static params and arrays ( #17983 )
2021-05-09 21:33:32 +02:00
Beshr Kayali
f4dd95f3be
Fix parseUri to sanitize urls containing ASCII newline or tab ( #17967 )
...
* 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 >
2021-05-09 19:24:00 +01:00
Andreas Rumpf
d84a3b10b5
fixes #17675 ( #17981 )
2021-05-09 11:34:28 +02:00
Timothee Cour
69710e4548
fix #17960 : honor matrix also for action: compile, action: reject ( #17980 )
...
* fix #17960 : honor `matrix` for all action
2021-05-09 09:50:08 +02:00
Clyybber
72d6b59ffa
treetab: tiny cleanup ( #17929 )
...
* 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 >
2021-05-09 00:56:37 +02:00
Timothee Cour
4e0f38fbb1
testament :show duration also for failed tests; improve tshould_not_work; 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
2021-05-08 17:13:47 +02:00
Timothee Cour
eba1c3fd24
merge initUri() overloads, improve uri examples ( #17970 )
...
* deprecate `uri.initUri` and improve uri examples
* remove `func initUri*()` and make isIpv6 optional
* fixup
2021-05-08 16:58:30 +02:00
Andreas Rumpf
c14427dbf3
ORC: cursor inference bugfix ( #17973 )
...
* fixed a .cursor inference bug
* added a test case
2021-05-08 16:47:06 +02:00
Timothee Cour
38b41f893a
fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic ( #17942 )
...
* fix #17941 : UnusedImport works for var/let/const/type invoked inside a generic
* fixup
2021-05-08 09:56:46 +02:00
Timothee Cour
e224865b3b
add astmsgs; add declared in msg for usage lint errors ( #17961 )
...
* add astmsgs; add `declared in` msg for usage lint errors
* fix test
* fix tests/tools/tlinter.nim
* std prefix
2021-05-08 06:43:52 +02:00
Timothee Cour
d4850b524f
fix tsortoutput (it was failing for the wrong reasons, irrespective of sortoutput ( #17969 )
2021-05-07 20:07:54 -07:00
Timothee Cour
9ca3218a6d
improve tbase64.nim ( #17964 )
2021-05-07 17:40:16 -07:00
Timothee Cour
6ab911accb
fix tests/vm/tcastint.nim which used non-sensical when defined nimVM (and contained wrong tests) ( #17954 )
2021-05-08 00:27:06 +02:00
Timothee Cour
fb677bf5c9
fix #17952 : fix both false positives and false negatives for reInvalidSpec ( #17956 )
...
* fix #17952 : fix both false positives and false negatives for reInvalidSpec
* handle megatest properly
* fix for tests/stdlib/tbase64.nim
2021-05-08 00:22:21 +02:00
Timothee Cour
062571ae3c
refs #17325 disable i386 again until we figure out how to fix it ( #17963 )
2021-05-07 14:39:14 -07:00
Timothee Cour
98c29c01eb
fix #14873 properly by skipping abi field in importc type ( #17944 )
...
* fix #14873 properly by skipping `abi` field in importc type
* add test
* fix test for windows
2021-05-07 19:36:41 +02:00
Andreas Rumpf
51f3ef6cb8
fixes #15848 [backport:1.2] ( #17959 )
2021-05-07 16:50:11 +02:00
Andreas Rumpf
56068101f6
tiny cleanup ( #17957 )
...
* tiny cleanup
* I'm not British
2021-05-07 13:56:37 +02:00
Timothee Cour
0b4b9b3ad0
remove unsused OsPlatform.nimVM ( #17953 )
2021-05-07 06:55:46 +02:00
Ardek Romak
9d86639a0b
Export sslHandle in net and asyncnet. ( #17573 )
2021-05-06 15:02:37 -07:00