summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Make IntSet a generic ordinal set OrdSet[A] (#15564)landerlo2020-11-134-752/+873
| | | | | | | | | | | | | | * Make IntSet an ordinal set OrdSet[A: Ordinal] Backward compatibility with IntSet is maintained. IntSet is an alias for OrdSet[int] * move ordsets to new file, intsets exports it * ordset, move to lib/std folder * Fix `$` for ordsets and test cleanup * Fix ordsets compilation in doc example * Rename ordsets to packedsets
* Alternate to https://github.com/nim-lang/Nim/pull/15915 (#15937)c-blake2020-11-131-2/+7
| | | | | | | | * Alternate PR to https://github.com/nim-lang/Nim/pull/15915 to resolve the problem mentioned there (`hash() == 0`) as well as to close https://github.com/nim-lang/Nim/issues/15624 * Address https://github.com/nim-lang/Nim/pull/15937#discussion_r522759669 { though this was only a move from 2 copies to 3 copies. ;-) }
* Fix #8404 JS backend doesn't handle float->int type conversion (#15950) ↵Bung2020-11-132-3/+42
| | | | | | | | | | | [backport] * Fix #8404 JS backend doesn't handle float->int type conversion * handle conv to uint as cast, discard other cases * limit to int32, times use int64 * toInt including tyInt64 break times timezones lib, ignore for now * also affect to vm * move to tests/misc/t8404.nim
* close #13062(add testcase for #13062) (#15956)flywind2020-11-131-0/+27
|
* close #2771(add testcase for #2771) (#15932)flywind2020-11-131-0/+21
|
* refactoring: modernize rst.nim (#15953)Miran2020-11-131-509/+449
|
* Update buildsh.nimf (#15945)lenoil982020-11-131-3/+4
| | | fix powerpc64le detection
* Don't use os for Standalone (#15944)wilypomegranate2020-11-131-2/+2
|
* Add documentElement to Document. (#15943)treeform2020-11-131-0/+1
|
* fix #15941 (#15948)flywind2020-11-132-4/+24
| | | | | | | * fix #15941 * add testcase * update
* add a tester for rst2html (#15936)Miran2020-11-124-0/+864
|
* Update changelog.mdTimothee Cour2020-11-121-1/+1
|
* follow #8463 #14157 and document cstring literals modification is not ↵flywind2020-11-121-0/+14
| | | | | | | | | allowed (#15878) * follow #8463 #14157 and document cstring literals * Update doc/manual.rst Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, ↵Timothee Cour2020-11-123-215/+279
| | | | | | | | | | | `existsEnv` (v2) (#15826) * js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv` * refactor to osenv * fix for js (without -d:nodejs) + VM Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add parent property to window in dom.nim (#15922)Bung2020-11-121-0/+1
|
* make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-123-3/+11
| | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* change some code-blocks to runnableExamples and correct some errors in docs ↵flywind2020-11-124-57/+51
| | | | | | | | | (#15900) * original docs are wrong * fix pathnorm * Update lib/pure/pathnorm.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Add support for FreeBSD/PowerPC64 Little Endian (#15927)lenoil982020-11-123-2/+8
| | | | | | | | | | | | | | * Update installer.ini Add support for powerpc64 little endian * Update buildsh.nimf Add support for powerpc64 little endian * Update makefile.nimf Add support for freebsd/powerpc64 little endian
* Fix a problem for long symlinks in conda (#15908) [backport]Christopher Dunn2020-11-121-9/+10
| | | * https://github.com/conda-forge/nim-feedstock/commit/d8c80ea69dca30d99073d33845ddd79f9892755b#diff-e1d8e552330911f9f779f85b6f2c00a15e790dcc3fbb3b28f5da1d660a30c5b8
* fix #15916 (#15917) [backport]flywind2020-11-122-2/+20
| | | | | | | * fix #15916 * add testcase for #15916 * add comments
* Fix #15909 (#15914)Fanael Linithien2020-11-122-0/+17
|
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-124-11/+20
| | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #14157 (#15877)flywind2020-11-123-0/+12
| | | | | | | | | | | | | * fix #14157 * Update compiler/jsgen.nim * add changelog * Update compiler/jsgen.nim * Update tests/js/tmodify_cstring.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #12726 Cannot take the compile-time sizeof Atomic types (#15928)Bung2020-11-122-7/+26
| | | | | * fix #12726 Cannot take the compile-time sizeof Atomic types * fix for arch 32
* Fix 14127 js from int to int casting (#15918)Bung2020-11-112-2/+31
| | | | | | | | | * fix #14127 from int to int casting * add test for #14127 * use template for test, also test uint2int * move to tests/types/t14127_cast_number.nim targets:c cpp js
* nimdoc: items of ordered lists now have numbers instead of circlesnarimiran2020-11-111-1/+1
|
* remove `codeowners` [ci skip]narimiran2020-11-112-69/+1
|
* Docs(strutils): Fix broken links (#15912)ee72020-11-111-9/+10
| | | | The `dedent` and `unindent` links were introduced by commit d67c5cb75171 (#15264).
* close #4318(add testcase for #4318) (#15904)flywind2020-11-111-0/+12
| | | | | | | | | * close #4318(add testcase for #4318) * Update tests/objects/t4318.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Correct all eggs (#15906)Miran2020-11-1026-38/+38
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* remove ioutils mention in changelog (#15907)Timothee Cour2020-11-101-3/+0
|
* fix `norm` package testing commandnarimiran2020-11-101-1/+1
|
* fix #12471 (#15901)flywind2020-11-101-0/+3
| | | | | | | | | | | * fix #12471 * add testcase * fix * test nimdoc is tricky * Delete t12471.nim
* followup #15854: add a changelog entry about markdown tables supportnarimiran2020-11-101-12/+33
|
* rst: add support for markdown tables (#15854)Miran2020-11-106-16/+116
| | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* follow #15874(add testcase for #15874) (#15893)flywind2020-11-101-0/+8
|
* fix #15825 (#15894)cooldome2020-11-092-1/+12
| | | | | * fix #15825 * better fix
* new: `nim -e:cmd` to run a command directly; also fixes #15731 (#15687)Timothee Cour2020-11-0913-26/+75
| | | | | | | | | | | | | | | * new: `nim -i cmd` * rename -i to -e (for eval); consistent with majority of other programing languages * `nim e -e:cmd` now works; bugfix: `echo cmd | nim e -` now works * honor --betterRun * address comments * --eval alias for -e (replaces undocumented --eval which was a noop) * --eval now defaults to e (nimscript) instead of r * address comment: remove -e, only keep --eval * address comment * fixup * Update compiler/nimconf.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Added [:T] syntax explanation to generics tutorial. (#15890)Aethylia2020-11-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | * Added [:T] syntax explanation to generics tutorial. * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Made second generics example runnable and added test line. * Update doc/tut2.rst * Update doc/tut2.rst * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* CI(actions): Replace deprecated `add-path` commands (#15892)ee72020-11-094-8/+8
| | | | | | | | | | | | | This commit resolves the following warning in the CI logs: > Error: The `add-path` command is deprecated and will be disabled soon. > Please upgrade to using Environment Files. For more information see: > https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ The deprecation is due to an injection vulnerability (CVE-2020-15228). See: - https://bugs.chromium.org/p/project-zero/issues/detail?id=2070 - https://github.com/nim-lang/Nim/runs/1373146963#step:8:1
* Fix 15629 (#15888)cooldome2020-11-092-12/+40
| | | | | | | | | | | * fix #15858 * fix space * fix #15629 * Revert "fix space" * Revert "fix #15858"
* Fix #15858 (#15887)cooldome2020-11-092-1/+9
| | | | | | * fix #15858 * fix space * fix #15629 * Revert "fix #15629"
* improve Testament docs (#15881)n5m2020-11-091-4/+6
| | | | | * fix mentions of recursive test discovery * document that {.fatal.} pragmas cannot be caught
* export PrettyOptions,prettyPrint from nimpretty (#15865)Bung2020-11-091-5/+6
|
* fix #15707 (#15870)cooldome2020-11-094-12/+36
|
* fix #12558 (#15864)flywind2020-11-092-1/+20
| | | | * fix #12558 * Update compiler/pragmas.nim
* include example of error-marked copy proc (#15886)n5m2020-11-091-1/+7
| | | | | * include example of error-marked copy proc * Update destructors.rst
* Add a macro returning enum items count (#15824)Ivan Bobev2020-11-093-0/+55
| | | | | | | Add a macro `enumLen` which is used to determine the number of items in an enumeration type to the `typetraits.nim` module. Also, add unit tests for it in the `ttypetraits.nim` module. Related to nimlang/Nim#15824
* Nimgrep improvements 2 (#15612)Andrey Makarov2020-11-093-297/+1049
| | | | | | | | | | | | | | | | | | | | | | | | | | | * nimgrep: speed up by threads and Channels * nimgrep: add --bin, --text, --count options * nimgrep: add --sortTime option * allow Peg in all matches including --includeFile, --excludeFile, --excludeDir * add --match and --noMatch options * add --includeDir option * add --limit (-m) and --onlyAscii (-o) options * fix performance regression introduced in nimgrep improvements #12779 * better error handling * add option --fit * fix groups in --replace * fix flushing, --replace, improve --count * use "." as the default directory, not full path * fix --fit for Windows * force target to C for macosx * validate non-negative int input for options #15318 * switch nimgrep to using --gc:orc * address review: implement cropping in matches,... * implement stdin/pipe & revise --help * address stylistic review & add limitations
* Console apps in Windows can raise OSError (#15874)Luca Guzzon2020-11-081-1/+4
| | | | | | | | Console apps in Windows implementation can raise OSError so I've fixed it, see below some examples for reference: - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L170 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L178 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L191-L192 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L196-L197 - ...