summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Remove tracking of environment from osenv.nim v2 (#18575)Timothee Cour2021-07-296-186/+240
| | | | | | | | | | | | | * Remove unnecessary environment tracking * try to fix windows * fix delEnv * make putEnv work on windows even with empty values; improve tests: add tests, add js, vm testing * [skip ci] fix changelog Co-authored-by: Caden Haustein <code@brightlysalty.33mail.com>
* docgen: draw frame around active anchors (#18607)Andrey Makarov2021-07-296-75/+162
|
* Update `lib.rst` (#18605)konsumlamm2021-07-291-24/+20
| | | | | | | | | | | | | * Update lib.rst * Remove "Unstable" category Add `strbasics` * Update doc/lib.rst * Update doc/lib.rst Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Allow `nnkAccQuoted` in `genEnumCaseStmt` (#18606)Vindaar2021-07-291-1/+5
| | | | | | | | | | * [enumutils] provide node kind for `Invalid node type` error * [enumutils] add support for nnkAccQuoted in `genEnumCaseStmt` For reasons unknown to me, when running `nim doc` on a file that uses `parseEnum` with an enum that contains accented quotes errors at CT with the `Invalid node for type` error. Further errors are raised, probably because the enum parsing fails?
* various small documentation improvements (#18602)Miran2021-07-2813-97/+123
|
* implements overloadable enum values; WIP (#18470)Andreas Rumpf2021-07-2810-11/+125
| | | | | * implements overloadable enum values * simpler code
* fix #17072: add times.dateTime with ISO 8601 order (#18590)Timothee Cour2021-07-282-12/+23
| | | | | * fix #17072: add times.dateTime with ISO 8601 order * address comments
* support same-line doc comments in routines (#18595)Timothee Cour2021-07-276-1/+205
| | | | * support same-line comments in routines * remove assert as per review comment
* fixes #18543 (#18601)Andreas Rumpf2021-07-274-189/+112
| | | | | * fixes #18543 * make tests green again
* fixes #18579 (#18600)Andreas Rumpf2021-07-272-4/+28
|
* fixes #18570 (#18599)Andreas Rumpf2021-07-271-2/+3
|
* delEnv now works at CT (#18568)Timothee Cour2021-07-271-1/+2
|
* Clarify use of import via pseudo dir... (#18569)GordonBGood2021-07-271-0/+1
|
* add comment to astalgo.debug (#18594)Timothee Cour2021-07-271-0/+3
|
* Fixed const tuples in inferred generics (#18598)Jason Beetham2021-07-272-17/+30
|
* fixes #18565 (#18593)Andreas Rumpf2021-07-275-12/+33
| | | * fixes #18565
* fix #18578 (#18580)flywind2021-07-273-6/+32
| | | | | | | | | | | | | * fix #18578 * add tests * tiny * apply changes * typo * add removeStaticFile
* Update documentation for dynlib (#17356)konsumlamm2021-07-261-44/+34
| | | | | | | * Update documentation for dynlib * Apply suggestions * Improve error handling in example
* don't use plus instead of space (#18589)Miran2021-07-261-2/+2
|
* atlas tool: testing via mocking (#18588)Andreas Rumpf2021-07-2613-58/+387
| | | | | * atlas: refactoring * Atlas: do some basic testing via mocking
* optimize for the non-throwing case (#18587)Antonis Geralis2021-07-261-4/+7
|
* fixes #18558 again (#18586)Andreas Rumpf2021-07-261-0/+2
|
* added missing .inline for toCCharAraq2021-07-261-1/+1
|
* docgen: sort symbols (fix #17910) (#18560)Andrey Makarov2021-07-253-349/+419
| | | | | | | | | | | | | | * docgen: sort symbols (fix #17910) * add workaround + change naming * switch to a dedicated sort comparator * fix numbers with unequal string lengths * dedicated `sortName` instead of `plainNameEsc`: * more compact names for non-overloaded symbols * more predictable Ascii sort (e.g. `<` instead of `&lt;`)
* followup #18453 (#18582)Timothee Cour2021-07-252-17/+17
|
* Documentation only, Sugar arrow and semicolons (#18574)Juan Carlos2021-07-251-0/+4
| | | * Document that sugar arrow do not support semicolon as argument separator
* fixes #18385 (#18571)Saem Ghani2021-07-251-2/+10
| | | | needs a more permanent fix by better incorporating IC, but fixes nimsuggest highlighting for now.
* refactoring: removed dead code (#18567)Andreas Rumpf2021-07-244-17/+11
|
* rename nimFpRoundtrips => nimPreviewFloatRoundtrip (#18566)Timothee Cour2021-07-236-12/+12
|
* fixes #18558 (#18563)Andreas Rumpf2021-07-231-16/+28
| | | | | * fixes #18558 * better fix
* std/random: fix overflow bugs; fixes #16360; fixes #16296; fixes #17670 (#18456)Timothee Cour2021-07-232-10/+85
|
* Replace calls to `putenv` with `setenv` (#18530)Caden Haustein2021-07-232-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * Replace calls to C `putenv` with C `setenv` to remove possible memory leaks * Add test of correct behaviour on invalid input * Fix style in tests/stdlib/tos.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tos.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tos.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Add comment with bug number to tests/stdlib/tos.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Fix possible msvc arch issues Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Fixed template const tuple unpacking (#18562)Jason Beetham2021-07-232-22/+28
|
* mitigates #12815 (#18557)Andreas Rumpf2021-07-224-4/+25
| | | | | | | | | * mitigates #12815 * Update doc/nimc.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* fixes #12815 (#18554)Andreas Rumpf2021-07-226-3/+30
|
* fix setCommand so it behaves like regular nim invocation (#18555)Timothee Cour2021-07-223-18/+12
|
* fixes #18550 (#18553)Andreas Rumpf2021-07-219-11/+57
| | | | | * fixes #18550 * update the manual to reflect reality
* add [1..2] for JArray (#18525)itsumura-h2021-07-211-0/+18
| | | | | | | | | | | | * add [1..2] for JArray * fix BackwardsIndex to int * fix for BackwardsIndex * fix for assert node kind check * fix variable name * Update lib/pure/json.nim * fix for when x.a is BackwardsIndex Co-authored-by: itsumura-h <dumblepy@mail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* complement notes of two doc strings of tables module (#18527)IterableTrucks2021-07-211-0/+4
| | | | | | | | | | | | | | | * complement notes of two doc strings warning the deprecated procedure's side effect * Update lib/pure/collections/tables.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/pure/collections/tables.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: BillyZee <billyzee@localhost.localdomain> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* clean unused imports on runnableExamples (#18551)flywind2021-07-211-2/+0
|
* breaking changes policies (#18541)Andreas Rumpf2021-07-211-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * document some std library evolution policies In wanting to improve the standard library, it's helpful to have a set of principles and guidelines to lean back on, that show how to introduce such improvements while at the same time considering existing users of the language. A key idea behind documentation of this sort is that it should highlight a path forwards in making changes rather than trying to prevent them, and although the current snippet does include some language for what one shouldn't do, it also shows a few options for what one can do. This is a riff on https://github.com/nim-lang/Nim/pull/18468 mainly based on what helps enable to the use of Nim productively in environments and teams where the priority and focus is not always on the tool (Nim in this case) but rather on the codebase itself, and its use by end users. We use similar guidance documentation to help coordinate the code of the teams using Nim in https://status-im.github.io/nim-style-guide/ where it is applied not as law, but rather as recommendations for the default approach that should be considered first. * document the new policies * typo * Update doc/contributing.rst Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update doc/contributing.rst * Update doc/contributing.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update doc/contributing.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update doc/contributing.rst * Update doc/contributing.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * clarify some things * Update doc/contributing.rst Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> Co-authored-by: Jacek Sieka <arnetheduck@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* add testcase for #6499 #12229 #7172 (#18547)flywind2021-07-212-0/+40
|
* unary slices get a deprecation period (#18549)Andreas Rumpf2021-07-212-11/+9
|
* atlas: minor changesAraq2021-07-211-2/+2
|
* undo RFC #294, it breaks code for no good reason, the compiler can wa… ↵Andreas Rumpf2021-07-215-15/+10
| | | | | | | | | | | | | (#18546) * undo RFC #294, it breaks code for no good reason, the compiler can warn about the construct instead * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * enable test case Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* fixes #18469 (#18544)Andreas Rumpf2021-07-204-15/+74
| | | | | * fixes #18469 * Update compiler/injectdestructors.nim
* make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531)Timothee Cour2021-07-2021-200/+287
| | | | | | * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string
* follow up #18517 (#18537)flywind2021-07-201-2/+3
| | | | | | | | | | | * follow up #18517 * Update lib/pure/os.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/pure/os.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use more `.}` (#18542)flywind2021-07-205-9/+9
|
* termux ssl (#18520)Paul Roberts2021-07-202-1/+2
|