summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fix #6637 array index type depends generic (#20673)Bung2022-10-272-1/+10
|
* cleanup os related documentation links (#20663)ringabout2022-10-273-27/+12
| | | cleanup documentation links
* add changelog for new modules (#20675)ringabout2022-10-271-2/+4
|
* Documentation only, koch (#20665)Juan Carlos2022-10-271-1/+1
| | | | | * Fix doc about Travis CI * Rerun ci
* add test case for #500 (#20661)Bung2022-10-261-0/+8
|
* fixes #19201; fixes sink causes crash in VM (#20658)ringabout2022-10-252-2/+8
|
* fixes #20654 FAMs should not be used in the C++ backend (#20655)Juan M Gómez2022-10-251-1/+3
| | | | | * fixes #20654 FAMs should not be used in the C++ backend * updates the test so it only affects clang
* closes #6213 #11777; add testcase (#20656)ringabout2022-10-251-0/+27
|
* clean up `std/os` related modules (#20651)ringabout2022-10-256-157/+140
| | | | | | | | | * clean up `std/os` related modules * use `cmpPaths` * reset * cleanup
* Change both code snippets to use the same test URL (#20647)Saint2022-10-251-1/+1
|
* fix #12094 Use of _ (as var placeholder) inside a template causes XDe… ↵Bung2022-10-251-1/+2
| | | | | (#20635) fix #12094 Use of _ (as var placeholder) inside a template causes XDeclaredButNotUsed
* Implement Unix file regularity check (#20448) (#20628)Andrey Makarov2022-10-257-45/+107
| | | | | * Implement Unix file regularity check * update std/dirs also
* add type check for default fields (#20652)ringabout2022-10-252-2/+32
|
* fixes #1027; disallow templates to use ambiguous identifiers (#20631)ringabout2022-10-244-0/+26
| | | | | | | | | | | | | | | | | | | | * test qualifiedLookUp in templates * check later * add testcase * add 4errormsg * Update tests/template/m1027a.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/template/m1027b.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #20645 (#20646)Andreas Rumpf2022-10-243-7/+24
| | | | | * fixes #20645 * better bugfix
* Added 'openArray[char]' overloads to 'std/parseutils' (#20527)Jason Beetham2022-10-248-172/+560
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Fixed VM op to work with new 'opcSlice' * Corrected captureBetween's logic to work with openarray * js sys's parsefloat logic now uses openarray Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Add better error messages to `std/jsonutils` (#20629)Jake Leahy2022-10-241-7/+7
| | | | | * Add better error messages * Add fmt on tuple msg
* fix fwrite prototype (#20644)Jacek Sieka2022-10-242-2/+2
| | | | | | | | | * fix fwrite prototype * Update lib/std/syncio.nim Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* fixes #19278; make `privateAccess` work with generic ref object (#20640)ringabout2022-10-243-3/+18
| | | | | * fixes #19278; make `privateAccess` work with generic ref object * fixes
* fixes the typical (not a == b) bug in the documentation (#20643)ringabout2022-10-241-2/+2
| | | | | * fixes the typical (not a == b) bug; uses runnableExamples * cannot add runnableExamples
* Fix tuple size check in `std/jsonutils` (#20637)Jake Leahy2022-10-242-3/+19
| | | | | | | | | | | * Add test for tuple being invalid size * Test tuple size before accessing fields * Fix formatting for import * Fix not being able to build from csources_v1 Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* borrowed procs can have a body now for documentation generation (#20617)ringabout2022-10-242-3/+20
| | | | | * borrowed procs can have a body now * fixes examples
* Fix double defer with break in closureiterators [backport] (#20630)Tanguy2022-10-242-0/+32
| | | | | | | Fix double defer with break in closureiterators Signed-off-by: Tanguy <tanguy@status.im> Signed-off-by: Tanguy <tanguy@status.im>
* Pass json options to hooks (#20638)Jake Leahy2022-10-242-14/+38
| | | | | | | | | | | * Added tests * Fix expected string * Allow hooks to take an optional parameter that is the current options * Add options to hooks for other generic types * Fix doc links
* Remove side-effects from sysFatal with panics on (#20632)Tanguy2022-10-242-16/+25
|
* closes #4678; add testcase (#20634)ringabout2022-10-241-0/+16
|
* closes #4466; add testcase (#20625)ringabout2022-10-231-0/+9
|
* improve error message when using `toTask` with a call with a return value ↵ringabout2022-10-231-1/+2
| | | | (#20622)
* enable static tests for topenarray (#20620)ringabout2022-10-231-1/+1
|
* add `std/appdirs` (#20618)ringabout2022-10-222-1/+87
|
* Unpack mSlice tupleconstr for static openarrays (#20615)Jason Beetham2022-10-223-0/+36
|
* fixes a strict case object problem that has been reported on the forum (#20614)Andreas Rumpf2022-10-212-2/+25
|
* add typesafe `std/paths`, `std/files`, `std/dirs`, `std/symlinks` (#20582)ringabout2022-10-216-0/+775
| | | | | | | | | | | | * split std/os; add typesafe std/paths * add more files, dirs, paths * add documentation * add testcase * remove tryRemoveFile * clean up * Delete test.nim * apply changes * add `add` and fixes
* fix #20152 Illegal capture of closure iterator, when should be legal (#20607)Bung2022-10-212-1/+21
|
* fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551)Bung2022-10-212-1/+21
|
* fix #19426 compile error using when/elif/else and typedesc in template (#20550)Bung2022-10-212-0/+17
|
* Add `safe` parameter to `base64.encodeMime` (#20559)Amjad Ben Hedhili2022-10-212-3/+12
| | | | | | | | | | | | | | | | | | * Improve `encodeMime` signature * `string` to `openArray[char or byte]` * `safe` parameter * Fix * Revert "Fix" This reverts commit a394c505c2ab751621c24fd29b17e97c01251c1f. * Remove encodeMime's openArray overload * Document the `safe` parameter * Add changelog entry
* closes #19969; add testcase for #19969 #15952 #16306 (#20610)ringabout2022-10-211-0/+27
| | | closes #19969; add testcase
* implemented strictCaseObjects (#20608)Andreas Rumpf2022-10-216-8/+80
| | | | | * implemented strictCaseObjects * changelog update
* Implemented `mSlice` on the VM allowing `toOpenArray` to work at compile ↵Jason Beetham2022-10-204-30/+204
| | | | | | | | | | | | | | | | | | | | | | | | | time. (#20586) * Implemented opcSlice to make 'toOpenArray' work on the VM * Added nkOpenArray for VM to reduce bodgeness * Fixed range issues and erraneous comments * Range check correctly for openArrays in opcLdArr * Inverted logic for ldArr checking * vm now supports slicing strings * Added string tests * Removed usage of 'nkOpenArray' and redundant operations * Refactored vmSlice implementation, removing redundant and incorrect code * Made tuples go throw opcWrObj for field assignment * All strkinds should be considered for openarrays
* move procs in os to `appdirs` (#20605)ringabout2022-10-202-141/+150
| | | | | * move procs in os to `appdirs` * Update lib/std/private/osappdirs.nim
* change vm imports after bootstrapping (#20602)ringabout2022-10-201-1/+2
|
* enable ggplotnim (#20600)ringabout2022-10-201-1/+1
| | | | ref https://github.com/Vindaar/ggplotnim/pull/151 ref https://github.com/Vindaar/ggplotnim/commit/b1a653b19881edfde5c87db91173c097a6a36dce
* [std/os] split and re-export (#20593)ringabout2022-10-207-2047/+2251
| | | | | | | * [std/os] split and export * move to private modules * fixes docs and tests Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* add measuremancer to important packages (#20599)ringabout2022-10-201-0/+1
| | | | | | | | | | | * add measuremancer to important packages wait for https://github.com/nim-lang/packages/pull/2392 * Update testament/important_packages.nim * Update testament/important_packages.nim * Update testament/important_packages.nim
* [backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ↵SirOlaf2022-10-182-0/+20
| | | | | | | | | | | | (#20578) * Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent * Add test * Update compiler/lookups.nim Co-authored-by: SirOlaf <a> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* refactor envvars, oserrors; register vmops (#20592)ringabout2022-10-185-347/+17
| | | | | * refactor envvars, oserrors; register vmops * remove type definitions
* enable telebot (#20589)ringabout2022-10-181-1/+1
| | | | ref https://github.com/ba0f3/telebot.nim/pull/79 ref https://github.com/ba0f3/telebot.nim/releases/tag/2022.10.18
* fixes niminst with stricteffects; add testcase for niminst (#20587)ringabout2022-10-183-1/+17
| | | fixes niminst with stricteffects; add testcase
* fixes #20572 (#20585)Andreas Rumpf2022-10-1725-70/+116
| | | | | * fixes #20572 * added a test case