flywind
834d5641e8
use sink and lent in deques ( #17661 )
...
* use sink and lent in deques
* Update lib/pure/collections/deques.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-04-07 14:17:48 +02:00
flywind
c7b4639460
ref #14873 ( #17644 )
...
* ref #14873
* comment
* Update lib/core/locks.nim
2021-04-06 16:21:58 +02:00
Andrey Makarov
ca405167ed
fix :number-lines: regression ( #17639 )
2021-04-05 08:33:06 +02:00
flywind
70a30317f7
fix #16693 : testament spec nimout too lax ( #16698 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-04 13:47:28 -07:00
Andrey Makarov
f02e159b56
fix rst option list at EOF (follow-up #17442 ) ( #17638 )
2021-04-04 11:54:26 -07:00
Timothee Cour
4a11a04fba
fix #14850 : repr now correctly renders do ( #17623 )
...
* fix #14850 : `repr` now correctly renders `do`
* add tests
* fix test
2021-04-03 16:05:37 +02:00
Timothee Cour
fe7a76f62f
repr: fix rendering of 'big, =destroy etc ( #17624 )
2021-04-03 08:19:17 +02:00
Andrey Makarov
e35946f306
enable syntax highlighting for inline code ( #17585 )
...
* enable syntax highlighting for inline code
* finish '.. default-role' and preliminary '.. role'
implementation
* more compact check in dirRole
* set :literal: as default role for *.rst
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* use whichRole for setting currRoleKind
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* rename rnGeneralRole -> rnUnknownRole
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-02 22:11:44 +02:00
Timothee Cour
9abd383a2a
new genAst as replacement for quote do ( #17426 )
...
* new `macros.genAst`: fixes all issues with `quote do`
* add changelog entry
* add workaround for https://github.com/nim-lang/Nim/issues/2465#issuecomment-511076669
* add test for #9607
* add kNoExposeLocalInjects option
* add test case for nested application of genAst
* genAst: automatically call newLit when needed
* allow skipping `{}`: genAst: foo
* add test that shows this fixes #11986
* add examples showing mixin; add examples showing passing types, macros, templates
* move to std/genasts
* improve docs
2021-04-02 13:11:03 +02:00
konsumlamm
f0587e02e2
Fix #17017 (math edge cases) ( #17588 )
...
* Fix #17017
Add more test cases
* USe signbit in example
2021-04-01 12:47:56 +02:00
Timothee Cour
9b67e5c61b
jsonutils: support cstring (including as Table key); improve docs ( #16062 )
...
* jsonutils: support cstring (including as Table key); improve docs
* changelog
* un-disable a test now that #16061 was fixed
2021-03-31 18:24:39 +02:00
Timothee Cour
72988509ba
add getPort to resolve Port(0) ( #17559 )
...
* add getPort to resolve Port(0)
* fixup
* use getPort in examples + tests
* address comments: do not re-export Port
2021-03-30 20:14:39 +02:00
flywind
1f1ef85eb0
[std/uri]fix #17481 ( #17568 )
2021-03-29 11:48:06 -07:00
Andrey Makarov
861c42c258
RST: enable parsing of prefix roles (ref #17340 ) ( #17514 )
2021-03-29 18:32:49 +02:00
flywind
81e54c1d30
Add hasClosure to std/typetraits ( #17501 )
...
* fix nim js cmp fails at CT
* Add `hasClosure` to `std/effecttraits`
* type
* Update changelog.md
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/std/effecttraits.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-29 14:22:29 +02:00
flywind
085580a2c8
fix #14010(fix std/registry + arc) ( #17551 )
...
* fix nim js cmp fails at CT
* fix #14010
* Update tests/stdlib/tregistry.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tregistry.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-29 10:50:58 +02:00
Ardek Romak
207bcabdf2
Add a getter for all defined Sections in parsecfg ( #15450 )
2021-03-28 09:57:40 -07:00
Timothee Cour
8ed6de4fe6
fix flaky tnetconnect which sometimes failed with: No route to host [OSError] ( #17526 )
2021-03-27 10:22:42 +01:00
Clyybber
bb3769975b
Fix #17199 ( #17348 )
...
* don't zero out in a move in the VM
* Add testcases for #17199
* Update tests/arc/tarcmisc.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tests/vm/tissues.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Fix test failures
* Fix test
* Fix tests
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-26 13:05:51 +01:00
Andrey Makarov
46364e63cd
fix RST parsing after option lists ( #17442 )
2021-03-25 08:15:05 +01:00
Timothee Cour
1590d14575
fix #17260 render \ properly in nim doc, rst2html ( #17315 )
2021-03-24 10:58:29 +01:00
Timothee Cour
e94aec20da
fix #17325 linux 32bit CI; fix #17085 flaky test ( #17469 )
2021-03-24 10:36:15 +01:00
flywind
465a41c308
[isolation]fix empty ref object bug ( #17471 )
...
* fix nim js cmp fails at CT
* [Minor]fix empty ref object for isolation
* Update compiler/isolation_check.nim
* Update compiler/isolation_check.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-03-24 09:44:24 +01:00
flywind
c015ecdc37
fix #17490 ( #17491 )
2021-03-24 08:16:41 +01:00
flywind
c719d79d23
add algorithm.merge ( #16182 )
...
* add merge to algorithm
* Apply suggestions from code review
* Update lib/pure/algorithm.nim
* Apply suggestions from code review
* Update changelog.md
Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com >
2021-03-23 10:49:02 +01:00
Timothee Cour
1d19cd660f
fix #17458 tnetconnect.nim flaky ( #17459 )
...
* fix tests
* fix #17458
2021-03-23 08:37:15 +01:00
Timothee Cour
f3a6427109
refs #17292 fix repr with do: ( #17449 )
...
* refs #17292 fix `repr` with `do:`
* address comment
2021-03-23 08:34:04 +01:00
Timothee Cour
d78ebe4a0e
fix #17454 ( #17461 )
2021-03-23 08:33:09 +01:00
flywind
83e002a318
follow up #17391 add testcase ( #17404 )
...
* Revert "make system random work in VM"
* fix #17380
* attempt to fix bug
* fix
* better
* fix
* a bit
* fix the leaks
* revert
* fix
* better
* follow up #17391
* fix
* Update tchannels.nim
* Update tests/stdlib/tchannels.nim
* Update tchannels.nim
2021-03-19 14:48:31 +08:00
Timothee Cour
2356d0603f
followup #17398 : getTempDir, getConfigDir now do not have trailing DirSep ( #17402 )
...
* followup #17398 : `getTempDir`, `getConfigDir` now do not have trailing DirSep
* fix test
2021-03-18 13:25:56 +01:00
Andrey Makarov
4bfc5a9551
Rst test check messages ( fix #17280 ) ( #17338 )
2021-03-17 20:13:04 +01:00
Andrey Makarov
144e338abb
allow short-style rst references with symbols ( #17372 )
2021-03-17 18:08:13 +01:00
flywind
e9b5543bd5
[std/channels]fix recv leaks(Part One) ( #17394 )
2021-03-17 10:08:54 +01:00
Timothee Cour
895a40d1ac
fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64 ( #17389 ) [backport:1.2]
...
* fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64
* fixup
* fix for js
2021-03-16 21:44:54 +01:00
flywind
84cf3e5fca
Revert "make system random work in VM" ( #17378 )
2021-03-15 10:21:25 +01:00
flywind
a0b8a3d920
New channels implementation for ORC ( #17305 )
...
* Update lib/std/channels.nim
* Rename tchannel_pthread.nim to tchannels_pthread.nim
* Rename tchannel_simple.nim to tchannels_simple.nim
Co-authored-by: Mamy Ratsimbazafy <mamy_github@numforge.co >
2021-03-12 13:33:47 +01:00
Andrey Makarov
d97bf4f1c8
fix RST parsing when no indent after enum.item ( fix #17249 ) ( #17257 )
2021-03-12 08:33:21 +01:00
Miran
e922d73dd6
refs #4347 , add ZZZ and ZZZZ patterns for timezone offsets without colons ( #17318 )
2021-03-11 16:32:50 +01:00
Timothee Cour
eb07a5a75b
add typetraits.OrdinalEnum, enumutils.symbolName ( #17281 )
2021-03-10 08:08:24 -08:00
flywind
cc37fee0ab
fix #17275 ( #17276 )
2021-03-09 12:22:26 +01:00
flywind
761ec2ccc8
improve test coverage for isolation ( #17297 )
...
* improve test coverage for isolation
* a bit better
2021-03-08 22:21:57 +08:00
flywind
dd8383b10a
add testcase for #12005 ( #17278 )
...
* remove unnecessary when statement
* remove outdated codes
* reuse jsffi
* move js json coverage
* close #12005 add testcase
* Update tests/stdlib/tthreadpool.nim
* Update tests/stdlib/tthreadpool.nim
* Update tests/stdlib/tthreadpool.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-08 14:37:52 +01:00
Timothee Cour
93cb5d6896
add setutils.[]= ( #17272 )
...
* add setutils.[]=
* address comments
* proc => func (for other symbols too)
2021-03-08 10:39:39 +01:00
Roman Inflianskas
31424b3808
stdlib/os: add isAdmin ( #17012 )
...
* stdlib/os: add isAdmin
* uint8 -> cuchar, assert isAdmin on Azure
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/pure/os.nim docs
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Address comments on #17012
* Raise on errors in #17012
* Check the result of FreeSid in #17012
* Change case in #17012
* Fix memory leak in #17012
* Address comments in #17012
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-07 22:40:16 +01:00
flywind
0e3ea16554
use lowercase --define switches ( #17283 )
2021-03-07 12:08:41 +01:00
flywind
171b03c386
fix #17264 [backport:1.4] ( #17266 )
...
* fix #17264
* fix vm
* fix js and add tests
2021-03-05 14:39:46 +01:00
flywind
cda443ee68
follow up #17165 ( #17262 )
2021-03-04 22:41:20 -08:00
flywind
81889fb84c
reuse jsffi in json module ( #17165 )
...
* remove unnecessary when statement
* remove outdated codes
* reuse jsffi
* move js json coverage
2021-03-04 19:37:12 +01:00
Jason Beetham
c180de60a8
Added math.clamp for slice clamping ( #17246 )
...
* Added math.clamp for slice clamping
* Added inline to math.clamp
* Cleaned up math.clamp + test
2021-03-03 23:54:23 +00:00
flywind
6391f6e861
fix #16384 and #17144 ( #17126 ) [backport]
2021-03-03 11:58:50 +01:00