summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* the devel branch now uses csources_v2 (#21108)ringabout2022-12-164-6/+7
| | | | | | | * the devel branch now uses csources_v2 * fixes hash * bump csources_v2
* fixes chronicles (#21114)ringabout2022-12-161-1/+1
|
* Check file exists in `{.compile.}` pragma (#21105)Jake Leahy2022-12-152-2/+10
| | | | | | | | | * Add test * Check file exists before adding it into compilation * Make error message look like other error messages i.e. following the format `error msg: file`
* fix #20588 (#21104)Bung2022-12-152-0/+24
|
* Make async stacktraces less verbose (#21091)Jake Leahy2022-12-156-63/+33
| | | | | | | | | | | | | | | | | | | | | | | * Name iterators something human readable Remove intermediate async procs from stacktraces Clean async traceback message from reraises message * Remove unused import/variable * Fix failing tests Don't add {.stackTrace: off.} to anonymous procs (They already don't appear in stacktrace) * Fix failing tests in pragma category Now check that the nim is a routine type first so we don't run into any assertion defects * Hide stack trace pragma in docs and update doc tests User doesn't need to know if something won't appear so this more becomes verbose noise If this is a bad idea we can always add a `when defined(nimdoc)` switch so we don't add {.stackTrace: off.} to the Future[T] returning proc for docs
* fix #19580; add warning for bare except: clause (#21099)ringabout2022-12-1514-26/+50
| | | | | | | | | | | | | | | | | | | | | * fix #19580; add warning for bare except: clause * fixes some easy ones * Update doc/manual.md * fixes docs * Update changelog.md * addition * Apply suggestions from code review Co-authored-by: Jacek Sieka <arnetheduck@gmail.com> * Update doc/tut2.md Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
* generic `define` pragma + string alias (#20979)metagn2022-12-138-53/+218
| | | | | | | | | * generic `define` pragma + string alias * clean * add tests and document * remove char/float, minimize changelog
* Fix #20416. Enable the recursion limit for ref/ptr types. (#21092)Aditya Siram2022-12-132-4/+34
|
* Document that system:pop() may raise IndexDefect (#21070)Xavier Noria2022-12-132-3/+5
| | | | | * Document system:pop() may raise IndexDefect * Add backticks to KeyError
* JS backend properly extends string with `setLen` (#21087)Jake Leahy2022-12-132-1/+14
| | | | | * Add test case * Extend string with '0' when setting length to be longer
* Refactor JS sourcemap generator (#21053)Jake Leahy2022-12-133-373/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Parse the new line format * Fix pattern Didn't have space after the path * Remove duplicate sources Sources would sometimes double up with a new line at the end * Remove unused variable * Refactor sourcemap.nim Removes the multiple translations needed, now goes from single high level type to the final SourceMap Adds documentation for procs * Line numbers line up properly now Files aren't linking correctly though * Files now link up correctly Lines are sometimes off but overall seems pretty good Just need to implement parser * Add column info to output Add sourceMappingURL to rope directly to prevent copy * Properly handle columns * Remove debug lines * Add testcase * Finish testcase * Use the outdir folder instead of the folder the test is in to find the sourcemap Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* add CI for version-2-0 branch (#21084)ringabout2022-12-131-0/+1
|
* Nimsuggest now defines the backends symbol (#21083)Jake Leahy2022-12-123-2/+13
| | | | | | | * Add testcase * Define the backend symbol * Remove unneeded whitespace
* fixes #21043; fixes a named exception in the infixAs expression which ↵ringabout2022-12-123-1/+27
| | | | | | | | | | | generate an implicit uninitialized let statement (#21081) * fixes #21043; fixes a named exception in the infixAs expression which generate an implicit uninitialized let statement * Update compiler/sempass2.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove implicitDeref feature enum (#21075)ringabout2022-12-121-2/+1
| | | remove implicitDeref feature
* add a changelog for nimble (#21078)ringabout2022-12-121-3/+1
|
* work around chronos (#21079)ringabout2022-12-121-1/+1
| | | | | | | | | * work around chronos chronos has tests against the devel branch, it will be eventually fine. * Apply suggestions from code review * Update testament/important_packages.nim
* closes #20808 (#21077)Andreas Rumpf2022-12-121-0/+35
|
* Docs expand `using` parameters (#21076)Jake Leahy2022-12-126-10/+52
| | | | | | | | | | | | | | | * Trying to fix by changing renderer * add renderExpandUsing flag This flag makes the renderer expand parameters that use using statement to have their full type * Update docs * Make comment better explain why checking for nkSym * Fix nil access when macro/template has parameter with no type * Fix nil access when node is not semmed yet
* ship a modern nimble with lock files support (#21061)ringabout2022-12-124-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * change `include genode/env` to an import ref https://github.com/nim-lang/Nim/commit/0b262e9496387d5e8adc0c5f6020b3f3300e8f79#diff-8718bd20d8f61d6638d3d64b19efc31bcd40a6d5be8215b2a1f0b75ed93e8d56 * fixes comments * ship a modern nimble with lock files support * not sure whether the latest nimble has a regression now I'm trying 0.14.0 * change `pkgs` to `pkgs2` (#21073) * overwrite problematic packages * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review
* fix #15836 proc arg return type auto unexpectly match proc with concr… ↵Bung2022-12-1212-12/+74
| | | | | | | | | (#21065) * fix #15836 proc arg return type auto unexpectly match proc with concrete type * fix #16244 * add test case for #12869
* alternative, much simpler algorithm for strict func checking (#21066)Andreas Rumpf2022-12-1114-78/+187
| | | | | | | | | | | | | * alternative, much simpler algorithm for strict func checking * forgot to git add new compiler module * new spec is incredibly simple to describe * fixes bigints regression * typos * closes #16305; closes #17387; closes #20863
* `multisync` now allows tuples in return type (#21074)Jake Leahy2022-12-112-2/+21
| | | | | | | * Add test case * Use .toStrLit() on param node first This means that more complex types are fully rendered
* fix #16758 Nim crashes in fixAbstractType (#20855)Bung2022-12-112-0/+41
| | | | | | | | | * fix #16758 Nim crashes in fixAbstractType * Update compiler/semexprs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #21045; getTime with vmopsDanger is broken; alternative to #21054 (#21056)ringabout2022-12-105-22/+51
| | | | | * fix #21045 getTime with vmopsDanger is broken; alternative to #21054 * typo
* clean up the documentation of threads (#21067)ringabout2022-12-102-18/+1
| | | | | * clean up the documentation of threads * cleanup
* fixes #21062 (#21068)Andreas Rumpf2022-12-101-2/+3
|
* tiny refactoring related to sink parameter inference logic (#21064)Andreas Rumpf2022-12-102-2/+1
| | | | | * tiny refactoring related to sink parameter inference logic * Update compiler/sempass2.nim
* Use a unique name for template in async macro return (#21058)Jake Leahy2022-12-101-3/+3
| | | Use unique template name
* Revert "fix #15836 proc arg return type auto unexpectly match proc with ↵ringabout2022-12-099-23/+12
| | | | | | | concr…" (#21057) Revert "fix #15836 proc arg return type auto unexpectly match proc with concr… (#21044)" This reverts commit 0cd9bdcf9f6802421e0d8e4c28fc732012af605e.
* Implicit return working for async proc (#20933)Jake Leahy2022-12-092-2/+24
| | | | | | | | | | | | | * Implicit return working for asyncdispatch proc Closes #11558 * Test case * Test that return value is actually used * Update tests/async/t11558.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #15836 proc arg return type auto unexpectly match proc with concr… ↵Bung2022-12-099-12/+23
| | | | | (#21044) fix #15836 proc arg return type auto unexpectly match proc with concrete type
* remove duplicate assignment (#21050)ringabout2022-12-091-1/+0
| | | `newNodeIT` has already assigned `n.typ` to x.
* Remove deprecated rightSize (#21011)Juan Carlos2022-12-082-10/+2
| | | | | * Remove deprecated rightSize nop * Remove deprecated rightSize nop
* fix issue #20922 by handling missing expr in `exprList` for `tkOf` (#20930)Vindaar2022-12-083-8/+73
| | | | | | | | | | | | | | | | | | * fix issue #20922 by handling missing expr in `exprList` for `tkOf` * fix line numbers in test case * rewrite exprList requiring expr, add optionalExprList for except As suggested by @metagn. * update test case to reflect new code * update grammar.txt * update line numbers in test case taking into account nimout Given the number of errors that are produced it seems easier to do it this way instead of using `tt.Error`.
* Mention toSet in the docs of the set type (#21037)Xavier Noria2022-12-081-0/+8
|
* macros.customPragmaNode: walk brackets on brackets (#21040)Emery Hemingway2022-12-081-5/+3
|
* fixes #9839; fixes noReturn pragma doesn't work for non-simple templates ↵ringabout2022-12-082-3/+38
| | | | (#21048)
* fixes #16656; add nre to lib.md (#21042)ringabout2022-12-081-0/+4
|
* fixes `strictnotnil` documentation; comment unfinished sections (#21041)ringabout2022-12-081-6/+9
| | | fixes documentation; comment unfinished sections
* add a changelog for `std/cmdline` (#21039)ringabout2022-12-081-0/+1
| | | for a changelog for `std/cmdline`
* switch to the official URL of nimquery (#21038)ringabout2022-12-071-1/+1
| | | ref https://github.com/GULPF/nimquery/commit/3f728fb48082b4977b87103654d02f21c24cb0ba
* build the documentation of official packages (#20986)ringabout2022-12-0631-6358/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove db stuffs * remove punycode * remove * fixes script * add cloner * patches * disable * patch * fixes external packages * disable two packages * preview documentation build * try again * fixes URL * fixes a bug * simplify * fixes documentaion * fixes * Apply suggestions from code review
* Named arguments in commands + many grammar fixes (#20994)metagn2022-12-0618-147/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442 Types are separated from expressions and better reflected in the grammar. * add test * more accurate grammar * fix keyword typedescs * accept expressions in proc argument lists * CI "fixes" * fixes * allow full ref expressions again, adapt old tests * cleanup, fix some tests * improve grammar, try and revert semtypes change * restrict sigil binding to identOrLiteral * fix, should have caught this immediately * add changelog entry, fix double not nil bug * correct grammar * change section * fix * real fix hopefully * fix test * support LL(1) for tuples * make grammar.txt too
* fixes #21027; cast expressions need a type (#21029)ringabout2022-12-062-0/+7
| | | | | | | * fixes #21027; cast expressions need a type * Apply suggestions from code review Thanks to @beef331
* definite assignment analysis for let (#21024)ringabout2022-12-069-30/+144
| | | | | | | | | | | | | | | | | | | * draft for let daa * patch * fixes bugs * errors for global let variable reassignments * checkpoint * out param accepts let * add more tests * add documentation * merge tests
* deprecate `do:` meaning `do ():` + misc cleanup (#20927)metagn2022-12-0613-65/+42
| | | | | | | | | | | | | | | | | * test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
* stdlib organization & documentation improvements (#20971)metagn2022-12-0626-53/+167
| | | | | | | | | | | | | | | | | * stdlib organization & documentation improvements * fix CI * Update doc/lib.md Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * fix ci, remove jshttpcore, export in jsfetch instead * fix alphabetical order violations * add cmdline, db_odbc Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix #20829 Regression in int64 type matching since (#21019)Bung2022-12-062-2/+16
| | | fix #20829 Regression in int64 type matching
* Revert "fixes #20883; Unspecified generic on default value segfaults the ↵ringabout2022-12-062-7/+2
| | | | | | | compiler" (#21028) Revert "fixes #20883; Unspecified generic on default value segfaults the compiler (#20917)" This reverts commit 10b6e4f5b4a119a8fa42f82a24ae7e4b08b2c103.