summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Don't reject types directly on AST (#19407)metagn2022-01-192-2/+13
| | | | | | | Instead of rejecting type expressions based on node kind, evaluate the expression as a type. This is already the behavior for call results, and it has its own error for non-types, which is the same error you would normally get with 2 words swapped.
* fix term rewriting with sideeffect (#19410)flywind2022-01-192-2/+24
| | | | | | | | | * fix term rewriting with sideeffect fix #6217 * add tests * Update tests/template/template_various.nim
* add an example to setControlCHook (#19416)nblaxall2022-01-191-0/+9
| | | | | | | * add an example to setControlCHook * [skip CI] format example for setControlCHook Co-authored-by: Nathan Blaxall <nathan.blaxall@actionstep.com>
* suppress deprecated warnings (#19408)flywind2022-01-191-2/+1
| | | | | | | * suppress deprecated warnings once bump version to 1.7.3 enable deprecated messages * deprecate later
* fix stricteffects (nimsuggest/sexp) (#19405)flywind2022-01-181-1/+1
| | | | | | | * fix stricteffects (nimsuggest/sexp) * Update tstrict_effects3.nim * Update tests/effects/tstrict_effects3.nim
* Improve Zshell completion (#19354)Andrey Makarov2022-01-181-144/+114
|
* update deprecated example (#19415)Hamid Bluri2022-01-181-1/+1
| | | `toNimIdent` proc is deprecated, so I replaced it with `ident` proc
* Added `std/oserrors` for OS error reporting (#19390)flywind2022-01-173-0/+129
| | | | | | | | | * Added 'std/oserrors' for OS error reporting * add a simple test * New code should not support -d:useWinAnsi anymore thanks to @Araq
* Optimize lent in JS [backport:1.6] (#19393)hlaaftana2022-01-173-23/+81
| | | | | | | * Optimize lent in JS [backport:1.6] * addr on lent doesn't work anymore, don't use it * use unsafeAddr in test again for older versions
* fix no net compilation on zephyr (#19399)Jaremy Creechley2022-01-171-6/+10
| | | Co-authored-by: Jaremy J. Creechley <jaremy.creechley@panthalassa.com>
* mangle names in nimbase.h using cppDefine (#19395) [backport]flywind2022-01-172-0/+21
| | | | mangle names in nimbase.h fix comments
* improve changelog a bit (#19400)flywind2022-01-171-3/+1
|
* add mm to compilesettings; deprecate gc (#19394)flywind2022-01-163-2/+5
|
* deprecate unsafeAddr; extend addr (#19373)flywind2022-01-1630-67/+70
| | | | | | | | | | | | | | | | | | | | | | | | | * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Use openarray of bytes in md5 (#19307)hlaaftana2022-01-159-51/+413
| | | | | | | | | | * Use openarray of bytes in md5 * fix CI * cleanup * use noSideEffect for bootstrapping * fix CI again * actually fix CI by checking if it works * this is getting ridiculous * put old md5 version in compiler, remove vmop
* move type operation section and remove deepcopy document (#19389)flywind2022-01-152-40/+26
| | | ref #19173; because deepcopy is not fit for ORC/ARC which was used for spawn and spawn will be removed from compiler
* Fixed concept constraints for static types (#19391)Jason Beetham2022-01-152-25/+71
|
* Generic parameters now can constrain statics in type definitions (#19362)Jason Beetham2022-01-142-2/+54
| | | | | | | | | * Parameters now can constrain static in type definitions resolved regression with generic procedures * Update compiler/sigmatch.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* nrvo shouldn't touch bycopy object[backport:1.2] (#19385)flywind2022-01-143-1/+31
| | | fix nim-lang#19342
* docs: Fix broken cross references to `rfind` in strutils (#19382) [backport]Leon2022-01-131-3/+3
| | | | | | Fixes three broken cross references to `rfind` in strutils. Breakage due to signature changes of the `rfind` methods. Co-authored-by: adigitoleo <adigitoleo@dissimulo.com>
* update copyright year (#19381)flywind2022-01-133-3/+3
|
* docs: Mention `import foo {.all.}` syntax (#19377)Leon2022-01-131-0/+11
| | | | | | | Mention the `import foo {.all.}` syntax in the manual, with a caveat about private imports. Also link to the experimental importutils module. Co-authored-by: adigitoleo <adigitoleo@dissimulo.com>
* make rst thread safe (#19369)flywind2022-01-131-3/+3
| | | split for the convenience of review
* nimscript ignore the threads option (#19370)flywind2022-01-131-1/+1
| | | because nimscript doesn't support threads and causes troubles when the threads option is on
* bitsets.nim: cleanup (#19361)Andreas Rumpf2022-01-111-24/+11
|
* remove spaces between an identifier and a star (#19355)flywind2022-01-101-19/+19
| | | | | It makes search easier by searching `+`* instead of `+` which filter lots of unexported versions. Follow https://github.com/nim-lang/Nim/pull/18681
* fix stylecheck error with asyncdispatch (#19350)flywind2022-01-103-1/+36
| | | | | | | | | | | | | | | | | | | | | * stylecheck usages part two: stdlib cleanup typeinfo.nim: importCompilerProc => importcompilerproc nre.nim: newLineFlags => newlineFlags system.nim: JSRoot => JsRoot ref #19319 * prefer importCompilerProc * fix stylecheck error with asyncdispatch it is a partial regression since #12842 * add tests * don't use echo in tests
* Fix `remove` on last node of singly-linked list [backport:1.6] (#19353)gecko2022-01-103-0/+16
|
* added filemode docs (#19346)Smarcy2022-01-091-1/+4
|
* stylecheck usages part two: stdlib cleanup (#19338)flywind2022-01-083-3/+3
| | | | | | | | | | | | | * stylecheck usages part two: stdlib cleanup typeinfo.nim: importCompilerProc => importcompilerproc nre.nim: newLineFlags => newlineFlags system.nim: JSRoot => JsRoot ref #19319 * prefer importCompilerProc
* fix nim-lang#19343 (#19344) [backport]Zachary Marquez2022-01-081-1/+1
| | | | Ensure HttpClient onProgress is called once per second Ensure that reported speed is accurate
* disable fragments (#19341)flywind2022-01-081-1/+1
| | | The original repo has moved to Rust, while the package path stay unchanged. And it causes troubles to https://github.com/nim-lang/Nim/pull/19338
* Fix #19038 - making the Nim compiler work again on Windows XP (#19331)rockcavera2022-01-072-22/+24
| | | | | | | | | | | | | * Update osenv.nim * Update win_setenv.nim * Update lib/pure/includes/osenv.nim * Update lib/pure/includes/osenv.nim * fixing cstring Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Update net.nim (#19327) [backport]rockcavera2022-01-061-1/+1
|
* style usages part one (openarray => openArray) (#19321)flywind2022-01-0449-76/+76
| | | | | * style usages (openArray) * revert doc changes
* add std/private/win_getsysteminfo; refactor the usage of `GetSystemInfo` ↵flywind2022-01-043-35/+23
| | | | | | | | | | | (#19310) * add std/private/win_getsysteminfo * import at the top level * wrappers follow nep1 too * follow review comment
* correct the comments (#19322)flywind2022-01-041-2/+2
| | | | | | | | | | | | | | | | | | --expandArc ``` var a b a = matrix(5, 5, 1.0) b = matrix(5, 5, 2.0) `=sink`(b, - let blitTmp = b wasMoved(b) blitTmp + a) `=destroy`(b) `=destroy`(a) ```
* docs: Fix typo in tut1.rst (#19324)Nan Xiao2022-01-041-1/+1
|
* devel: style fix (#19318)Ștefan Talpalaru2022-01-042-2/+2
| | | this allows "--styleCheck:usages --styleCheck:error"
* fixed typos (#19316)Smarcy2022-01-031-2/+2
|
* Fix #19314 - fixing broken `DoublyLinkedList` after adding empty ↵rockcavera2022-01-032-6/+18
| | | | | | | `DoublyLinkedList` (#19315) [backport] * Update lists.nim * Update tlists.nim
* enable multiple packages (arraymancer, fidget ...) (#19311)flywind2022-01-031-3/+3
| | | | The cause of arraymancer failure has been tracked here: https://github.com/mratsim/Arraymancer/issues/505 And it was fixed by https://github.com/mratsim/Arraymancer/pull/542
* docs: Fix typo in tut1.rst (#19309)Nan Xiao2022-01-031-1/+1
|
* Add Week-Of-Year Implementation to Times Module (#17223)Carlo Capocasa2022-01-033-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial * more tests * Apply suggestions from code review idiomatize Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * test iron age dates * add examples * fix typo * consistent param mention * add since pragrams * add changelog * Update lib/pure/times.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix examples * fix negative years * add getWeeksInYear tests * add back fix dropped by rebase * week-year tuple api * add changelog * fix doc tags * add docstrings * fix typos Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* [docs] clarify the raised exception (#19308)flywind2022-01-031-4/+4
| | | | | | | | | | | * [docs] clarify the raised exception Lest developers wanna know what the exception is. * Apply suggestions from @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* add compile time option for POSIX sigwait on Illumos/Solaris (#19296)BarrOff2022-01-021-0/+7
| | | | | * add compile time option for POSIX sigwait on Illumos/Solaris * fix link to documentation of `sigwait` on Illumos/Solaris
* Allow full commands and blocks in type sections (#19181)hlaaftana2022-01-028-11/+393
| | | | | | | * allow full commands and blocks in type sections * update grammar * fix changelog [skip ci] * more tests * even more tests
* Update manual.rst (#19301)rockcavera2022-01-011-1/+1
|
* Update JS and nimscript import tests (#19306)hlaaftana2022-01-012-40/+53
| | | | | * add new modules, except experimental ones * remove deprecated modules mersenne and sharedlist * better describe why some modules fail and some modules don't
* fixes #16617 [backport] (#19300)Andreas Rumpf2021-12-311-0/+2
|