summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* improve examples in manual (#16497)flywind2020-12-292-2/+4
| | | | | | | | | | | | | * improve examples in manual * Update doc/manual.rst Co-authored-by: Clyybber <darkmine956@gmail.com> * Update tests/cpp/ttemplatetype.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* Added cmpMem export (#16484)Antonis Geralis2020-12-294-49/+81
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* improve turi.nim tests: js, vm; merge tdecodequery.nim (#16500)Timothee Cour2020-12-292-194/+181
| | | | | | | | | | | * improve turi tests: js, vm; merge tdecodequery.nim * improve test * add test in js, improve test * remove matrix: "--styleCheck:hint --panics:on" * fixup
* use -d:nimCompilerStackraceHints in more places (#16400)Timothee Cour2020-12-291-0/+5
|
* Nil type check implementation (#15287)Alexander Ivanov2020-12-2913-14/+2215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Nil checking * Enable current older not nil checking again, run new checking only under flag, skip our test * Enable tests, work on try/except and bugs, fix notnil tests * Enable strictNotNil tests (currently with lowercase category) and add some expected output * Work on try/except/finally: still some things unclear and a lot of code can raise out of try * Fix the notnil build by going back to the old version of a test which I shouldn't have changed * Fix test : use action compile * Work on mutation and aliasing: not finished * Render var parititions graph, try to understand it, fix a nilcheck if bug * Rebase, progress on working with partitions * Improve time logic * Fix some bugs, use graph indices instead of symbol in nil map * Fix bugs, test simpler ident aliasing for now, support two mutation levels * Support ContentMutation and ReAssignment: for now just detect possible re assignment for var parameters of calls * Enable several simple passing tests * Cleanup a bit, fix condition/branch infix-related bug * Remove some files, address some comments by Araq * Use internalError and no quit for now * Separate tests with expected warnings and with expected ok, fix a bug with if with a single branch related to copyMap * Fix new data structures, bugs: make tests pass, disable some for now * Work on fixing errors with non-sym nodes, aliasing: tests fail * Work on alias support: simple set-based logic, todo more tests and ref sets? * Use ref sets: TODO can we think of handle seq-s similar to varpartitions' Araq ones * Handle defers in one place, stop raising in reverse to make an async test compile with strictNotNil, add a commented out test * Dot expressions: call/reassignment. Other refactorings and distinct, SeqOfDistinct support. Checkout an older varpartitions * Work on field tracking * Backup : trying to fix bugs when running some stdlib stuff for running an async test * Start a section about strict not nil checking in experimental manual * Fix experimental strict not nil manual section and move it to another file based on Araq feedback * Fix unstructured flow and double warning problems, fix manual, cleanup * Fix if/elif/else : take in account structure according to Araq feedback * Refactor a bit * Work on bracket expr support, re-enable tests, clarify in manual/tests/implementation static index support for now * Work on compiling stdlib and compiler with strictNotNil * Small fixes to the manual for strictNotNil * Fix idgen for strict check nil rebase * Enable some simple tests, remove old stuff, comment out code/print * Copy the original varpartitions source instead of my changes * Remove some files
* RST: fix directive with fields (#16490) (#16493)Andrey Makarov2020-12-292-1/+13
| | | | | | | * RST: fix directive with fields (#16490) * Update tests/stdlib/trstgen.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* use doAssert in tests (#16486)flywind2020-12-2878-1075/+1075
|
* fix `nim secret` dots interfering with prompt (#16491)Timothee Cour2020-12-283-4/+9
| | | | | * fix nim secret dots * cleanups
* fix #15043 (#16441) [backport:1.4]cooldome2020-12-272-5/+23
| | | | | * fix #15043 * Trigger build
* follow #15860 clean cgi module (#16487)flywind2020-12-273-77/+57
| | | | | * follow #15860 clean cgi module * follow #15860 clean cgi module
* Revert #16478 (#16483)flywind2020-12-271-1/+1
| | | | | | | * minor * Revert "minor" This reverts commit ef1807cbb468bffdcfffb41f023644b57fb0fe11.
* remove some noises in tests (#16448)flywind2020-12-2717-181/+140
|
* fix #16469 vm float constants: do not conflate -0.0 and 0.0 (#16470)Timothee Cour2020-12-272-2/+20
| | | | | * fix #16469 vm float constants: do not conflate -0.0 and 0.0 * fix test for 32bit
* Save some alloc on base64 using encodeSize (#16465)Juan Carlos2020-12-271-0/+1
|
* follow #15357 and move decodeQuery (#15860)flywind2020-12-274-34/+67
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* RST: implement admonitions (#16438)Andrey Makarov2020-12-276-54/+239
|
* Add docs for nnkHiddenStdConv (#16408)treeform2020-12-271-0/+11
| | | Add it to devel branch this time. I hope this works.
* Don't use `unittest.suite` and `unittest.test` (#16464)flywind2020-12-271-1/+1
|
* fix nim js cmp fails at CT (#16473)flywind2020-12-274-24/+49
|
* nimsuggest: fix and re-enable old tests (#16401)Saem Ghani2020-12-2719-376/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A number of nimsuggest tests were disabled for various reasons, sometimes due to brittleness. These tests have been fixed where needed and most have are now enabled -- details below. The updates are meant to provide better regression coverage for future nimsuggest improvements. To avoid brittleness some tests were refactored. Impact: * test coverage has now increased * faster execution of the test suite * tests are less likely to break due to stdlib changes Re-enabled Test & Test Description: * `tchk1.nim`: check (chk) via nimsuggest works at end of file * `tdot4.nim`: prioritize already used completion * `tinclude.nim`: definition lookup (def) with includes * `tstrutils.nim` -> `tdef2.nim`: test template definition lookup (def) * `tsug_regression.nim`: regression test for [nimsuggest #52](https://github.com/nim-lang/nimsuggest/issues/52) * `ttemplate_highlight.nim`: per the file name * `twithin_macro_prefix.nim`: suggest within a macro with a prefix Tests Not Re-Enabled: * `twithin_macro.nim` still disabled as it doesn't provide a good test signal * EPC highlight tests remain disabled -- requires out of scope tester changes Additional Notes: * todos added in comments for follow-up work
* Avoid creating a holey array in makeNimstrLit for JS target (#16461)Jonah Snider2020-12-271-3/+2
| | | | * Avoid creating a holey array in makeNimstrLit * Use array index instead of push
* fix #16474 `unittest.check type1 is type2` gives CT error (#16476)flywind2020-12-272-1/+21
| | | | * fix #16474 * more tests
* minor (#16478)flywind2020-12-271-1/+1
|
* fix #16346 rst2html now honors SuccessX (#16347)Timothee Cour2020-12-262-4/+11
| | | | | | | | | | | * fix #16346 SuccessX rst2html * cleanups * _ * _ * _
* Add missing HTTP codes (#16454)Juan Carlos2020-12-232-3/+56
|
* add `euclDiv` and `euclMod` to `math` (#16414)flywind2020-12-233-0/+56
| | | | | | | | * add `euclDiv` and `euclMod` to `math` * use abs * Update lib/pure/math.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* strip minor improvement (#16444)flywind2020-12-232-1/+14
| | | | | | | * strip minor improvement * add more tests * Update tests/stdlib/tstrutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add zippy to important packages (#16442)flywind2020-12-231-0/+1
| | | | | * add zippy to important packages * minor
* disable pkg/criterion refs https://github.com/disruptek/criterion/issues/3 ↵Timothee Cour2020-12-221-1/+1
| | | | (#16443)
* add sequtils to prelude (#16431)shadowninja552020-12-232-2/+4
| | | | | | | | | * add sequtils to prelude i would argue that sequtils is used just as often as the other imports in prelude, and it'd be nice for it to be included. * updated doc comment to add sequtils * added sequtils import to changelog
* mark abs as inline (#16432)flywind2020-12-221-5/+5
|
* [backport => 1.0] fix #16428 vmops now works for generic procs (#16429)Timothee Cour2020-12-223-10/+8
| | | | | * fix #16428 vmops now works for generic procs * remove duplication
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-2120-64/+64
|
* bring back important packages; closes #16419 (#16424)flywind2020-12-211-2/+2
|
* docs minor for math (#16407)flywind2020-12-201-2/+2
|
* disable ggplot and plotly (#16418)flywind2020-12-201-2/+2
|
* O(1) concatenation of singly- and doubly linked lists. (#16362)Peter Salvi2020-12-203-2/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * O(1) concatenation of singly- and doubly linked lists. There is also new `toSinglyLinkedList` and `toDoublyLinkedList` functions for conversion from `openArray`s, similarly to `toHashSet` or `toTable`. * Add `sequtils` import to runnable examples with `toSeq`. * Added missing call to runnable examples. * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * Improved tests for lists. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * More compact tests for lists with templates. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Added extended example to `lists.copy`. * Corrected .since annotations to 1.6 * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Since declarations changed to (1,5,1). * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Changelog update. * Fix rebasing errors. * Self-adding with `lists.addMove` results in a cycle now. Added some extra tests.
* RST enumlist followup (#16382)Andrey Makarov2020-12-192-10/+57
| | | | | * fix matching of enumerator #) * RST: markdown list with auto-enumerator `1`
* active windows tests and use doAssert (#16395)flywind2020-12-181-11/+10
|
* fix cmpIgnoreStyle bug (#16392)flywind2020-12-182-0/+12
|
* removing `out T` from docs since it no longer working (#16378) [backport]Code Hz2020-12-181-21/+10
| | | | | | | | | * remove `out T` from docs see https://github.com/nim-lang/Nim/issues/16131 * remove `out T` in title * remove entire paragraph
* Fix osproc so that it doesn't close pipe/process/thread handles twice ↵Tomohiro2020-12-181-18/+40
| | | | | | | (#16385) [backport] * Add error check to closeHandle and fix closing handle twice in osproc * Fix compile error on Linux
* Make 'echo' raise IOErrors when appropriate (#16367)Matt Haggard2020-12-183-8/+30
| | | | | | | | | | | | | | | * Make 'echo' raise IOError when fwrite/fflush fail * Fix fwrite return value comparison * Add test for echo raising error and don't fail to release locks in echo * Fix exitcode expectation * Make 'echo' raise IOError on Windows if it fails * Add nimLegacyEchoNoRaise for prior no-IOError echo behavior * Use checkErrMaybe template
* misc cleanups (#16383)Timothee Cour2020-12-183-7/+8
|
* fixes #16365 [backport] (#16381)Andreas Rumpf2020-12-172-7/+38
|
* fix #16364 (#16379) [backport]flywind2020-12-171-4/+2
| | | | | | | | | | | * fix #16364 * add comments * Update tools/dochack/dochack.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* use hexchar in stdlib (#16290)flywind2020-12-177-75/+68
|
* make the docs of strutils a bit better (#16368)flywind2020-12-171-153/+150
|
* fixes #16359 [backport] (#16377)Andreas Rumpf2020-12-171-1/+1
|
* refactorings to prepare the compiler for IC (#15935)Andreas Rumpf2020-12-1726-178/+1241
| | | | | | | | | | | | | | * added ic specific Nim code; WIP * make the symbol import mechanism lazy; WIP * ensure that modules can be imported multiple times * ambiguity checking * handle converters and TR macros properly * make 'enum' test category green again * special logic for semi-pure enums * makes nimsuggest tests green again * fixes nimdata * makes nimpy green again * makes more important packages work