summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* misc fixes: build_all.sh, changelog (#17601)Timothee Cour2021-04-013-3/+3
| | | | | | | * fix a bug in build_all.sh: $@ => "$@" * remove getSocket from changelog following #17587 * remove unused import
* close #9534 add testcase (#17607)flywind2021-04-011-0/+21
|
* docgen: render pragmas by default except for a select list (and fix #9074) ↵Timothee Cour2021-04-016-56/+76
| | | | (#17054)
* fix #17190 `nimscript` now accepts arbitrary file extensions for `nim e ↵flywind2021-04-015-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.customext` (#17596) * fix #17190 * cah * merge * Update tnimscriptwithnimext.nim * Update tnimscriptwithmacro.nims * Apply suggestions from code review * Delete tnimscriptwithnimext.nim * Update tests/tools/tnimscriptwithmacro.nims * fix * fix * add a test * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* close #12684 add testcase (#17599)flywind2021-03-311-0/+7
|
* close #16786 (#17598)flywind2021-03-311-1/+35
|
* jsonutils: support cstring (including as Table key); improve docs (#16062)Timothee Cour2021-03-314-10/+28
| | | | | * jsonutils: support cstring (including as Table key); improve docs * changelog * un-disable a test now that #16061 was fixed
* Removes asynchttpserver.getSocket. (#17587)Dominik Picheta2021-03-311-14/+0
|
* [ci skip] correct indentation this timenarimiran2021-03-311-5/+5
|
* [ci skip] minor: fix indentation in manual.rstnarimiran2021-03-311-5/+5
|
* better error messages for .raise effect analysis (#17595)Andreas Rumpf2021-03-311-5/+7
|
* fix #17572 (#17586)Timothee Cour2021-03-312-1/+18
|
* fix #14585, fix #17589: access to static param now works (#17590)Timothee Cour2021-03-313-2/+58
|
* fix #12282 distinct now does not create erroneous copy in VM (#17594)Timothee Cour2021-03-312-2/+44
|
* fix #15617(fix compilation failure on -d:useMalloc --gc:none) (#17555)flywind2021-03-302-0/+16
| | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add getPort to resolve Port(0) (#17559)Timothee Cour2021-03-304-18/+32
| | | | | | | | | * add getPort to resolve Port(0) * fixup * use getPort in examples + tests * address comments: do not re-export Port
* makes DrNim compile again (#17584)Andreas Rumpf2021-03-302-13/+19
|
* Rotation right and left refactored to generics. Continuation of #16622 (#17578)rockcavera2021-03-301-88/+31
| | | | | | | * Rotation right and left refactored to generics Continuation of [16622](https://github.com/nim-lang/Nim/pull/16622) * add runnableExamples
* parser.nim: simply layout changeAraq2021-03-301-1/+2
|
* fix #17512 (#17520)flywind2021-03-301-1/+8
|
* [backport:1.2] Avoid inlining of newObj and newObjRC1 calls (#17582)Miran2021-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | This is taken from: https://github.com/status-im/Nim/commit/af69b3ceae16281efd45cbee4ce1bedd14282304 Full original comment: This is to avoid heavy inlining happening when two allocation calls would occur shortly after each other. This inlining would sometimes be accompanied with an optimisation as the compiler is able to see that cellToUsr ending the first allocation call is shortly followed by an usrToCell call. The pointer arithmetic is redundant and the compiler can eliminate it, leaving only the cell address in a register (and later the stack) instead of the actual pointer to the user data, as one would expect. This combined with a GC collect cycle will cause the stack scan to only notice the cell address, which is of no good due to a usrToCell in the gcMark call which shifts that address to an adjacent cell. This means that the actual cell of importance will not get marked and thus cause a premature collection of that cell. BOOM.
* Fix void async in templates (#17562)Ardek Romak2021-03-302-2/+15
| | | | | | | | * Fix https://github.com/nim-lang/Nim/issues/16159 * Add test for async in template * Shorten the expression * Even shorter Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #17299, fix setAffinity for android (#17574)Clyybber2021-03-301-2/+17
| | | | | | | * Fix #17299 * Comment * Fix typo
* Fix entries in nimc advopt (#17576)Danil Yarantsev2021-03-301-3/+5
|
* unify tuple expressions (#13793)Arne Döring2021-03-3013-32/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* Add hasDataBuffered to asyncnet (#16000)Dylan Modesitt2021-03-292-0/+7
| | | | Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Fix #17412 (#17560)Clyybber2021-03-293-29/+50
| | | | | * Fix #17412 * Address review
* [std/uri]fix #17481 (#17568)flywind2021-03-292-1/+12
|
* RST: enable parsing of prefix roles (ref #17340) (#17514)Andrey Makarov2021-03-293-18/+70
|
* [nim check]fix #17460 (#17569)flywind2021-03-292-0/+21
|
* [os:standalone]fix #14011 (#17564)flywind2021-03-293-2/+36
|
* fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for ↵Timothee Cour2021-03-292-13/+24
| | | | | | | | | top-level runnableExamples in generated docs (#17542) * fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for top-level runnableExamples in generated docs * use canonical imoprt * fix test
* added nkError to the AST (#17567)Andreas Rumpf2021-03-296-3/+90
| | | | | | | | | | | | | * added nkError to the AST * Update lib/core/macros.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update compiler/ast.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Typo in vm.nimClyybber2021-03-291-1/+1
|
* [docs]fix #17473 (#17565)flywind2021-03-292-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> * fix #14011 * Delete ttypetraits.nim * Apply suggestions from code review * fix #17473 * Revert "fix #14011" This reverts commit 0eed97a84b172b198bf4e6de69c04b84ef9d9f93. * Update lib/system.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Add `hasClosure` to `std/typetraits` (#17501)flywind2021-03-294-0/+109
| | | | | | | | | | | | | | | | * 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>
* remove std/ prefix from doc/lib.rst now that canonical import is shown in ↵Timothee Cour2021-03-292-30/+23
| | | | | | | module docs (#17543) * remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs * cleanup top docs for std/sha1
* Small doc fixes in net (#17566)Danil Yarantsev2021-03-291-4/+2
|
* fixes #17437 - crash where error reporting > 1 (#17547)Saem Ghani2021-03-292-4/+34
| | | | | | | | | | | * fixes #17437 * Fix bug reference comment Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * [skip ci] describe why we have hasError Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* remove docutils.nimble (not a real nimble package, and affected canonical ↵Timothee Cour2021-03-296-13/+7
| | | | | | | imports) (#17544) * remove docutils.nimble (not a real nimble package, and affected canonical imports) * cleanup redundant references
* Small doc improvements for `std/with` (#17556)konsumlamm2021-03-291-3/+4
|
* added a simple 'koch branchdone' command to speed up my workflow (#17563)Andreas Rumpf2021-03-291-0/+8
|
* Fix net.readLine infine loop #17534 (#17535)ben2021-03-291-0/+1
| | | | | * Fix net.readLine infine loop #17534 * fix #17534 add return to template
* fix #14010(fix std/registry + arc) (#17551)flywind2021-03-292-8/+25
| | | | | | | | | | | | | * 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>
* Free the certificate after checking in `checkCertName` (#17558) [backport:1.2]Danil Yarantsev2021-03-292-3/+6
| | | | | | * Fix small leak in checkCertName * Size is not needed either * Free the certificate after checking
* [docs]close #12580 (#17549)flywind2021-03-281-2/+2
|
* follow up #17539 (#17548)flywind2021-03-292-2/+1
| | | | | * fix nim js cmp fails at CT * follow up #17539
* close #9622 add testcase (#17557)flywind2021-03-291-0/+30
| | | | | * fix nim js cmp fails at CT * close #9622 add testcase
* Add a getter for all defined Sections in parsecfg (#15450)Ardek Romak2021-03-283-14/+17
|
* system: fix link in `delete` proc (#17550)ee72021-03-281-1/+1
| | | The `delete` proc had a "See also" link that linked to itself.