Commits on Nov 26, 2022

  1. bump NimVersion to 1.6.11

    narimiran committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    ca0757d View commit details
    Browse the repository at this point in the history
  2. fixes broken importc for vcc [backport] (#20909)

    fixes broken imports for vcc
    
    (cherry picked from commit b7d96cd)
    ringabout authored and narimiran committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    871e90a View commit details
    Browse the repository at this point in the history
  3. fixes #20914; fixes the alignment of big sets (#20918)

    * fixes #20914; fixes the align of bug sets
    
    * add a test for alignof
    
    (cherry picked from commit b57a963)
    ringabout authored and narimiran committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    224319f View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. Fix several memory leaks in the Postgres wrapper. (#20940)

    (cherry picked from commit 5a848a0)
    jfilby authored and narimiran committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    d2de2e7 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. fix bugs with dot & call operators [backport] (#20931)

    * better error messages for dot operators [backport]
    
    fixes #13063
    
    * also fixes #7777
    
    * fix #6981 and #9831 too
    
    * fix
    
    * minor improvement
    
    * sus test fixes
    
    * make test multiplatform lol
    
    * fix nimsuggest test, extra improvements
    
    (cherry picked from commit 555c5ed)
    metagn authored and narimiran committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    0683e8f View commit details
    Browse the repository at this point in the history
  2. allow proc expressions in place of statements (#20935)

    properly fixes #18714
    
    (cherry picked from commit 15d00ca)
    metagn authored and narimiran committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    5cfa367 View commit details
    Browse the repository at this point in the history
  3. dom: remove X* = ref XObj [backport] (#20910)

    dom: remove X* = ref XObj
    (cherry picked from commit ce97140)
    metagn authored and narimiran committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    3e677a6 View commit details
    Browse the repository at this point in the history
  4. fix failing CIs

    narimiran committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    27732a4 View commit details
    Browse the repository at this point in the history
  5. one more fix

    narimiran committed Nov 30, 2022
    Configuration menu
    Copy the full SHA
    d81484b View commit details
    Browse the repository at this point in the history
  6. and one more missed error

    narimiran committed Nov 30, 2022
    2 Configuration menu
    Copy the full SHA
    7f90bcf View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2022

  1. Configuration menu
    Copy the full SHA
    76c3475 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. fixes #20954; bounchecks for len(toOpenArray()) [backport] (#20956)

    * bounchecks for len(toOpenArray())
    
    * add a testcase
    
    (cherry picked from commit b83bd28)
    ringabout authored and narimiran committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    0da50ce View commit details
    Browse the repository at this point in the history
  2. fix #19580; add warning for bare except: clause (#21099)

    * 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>
    (cherry picked from commit 91ce8c3)
    2 people authored and narimiran committed Dec 15, 2022
    2 Configuration menu
    Copy the full SHA
    f01ffbf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    babd80b View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Revert "fix bare exceptions in excpt.nim"

    This reverts commit babd80b.
    narimiran committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    a1165c8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ec13574 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0d8c95 View commit details
    Browse the repository at this point in the history
  4. Check file exists in {.compile.} pragma (#21105)

    * 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`
    
    (cherry picked from commit d00477d)
    ire4ever1190 authored and narimiran committed Dec 16, 2022
    Configuration menu
    Copy the full SHA
    8c0f2f0 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2023

  1. fixes #20906; update copyright year [backport 1.6] (#21210)

    (cherry picked from commit 4032eb4)
    ringabout authored and narimiran committed Jan 18, 2023
    Configuration menu
    Copy the full SHA
    213a9f9 View commit details
    Browse the repository at this point in the history
  2. Allow std/macros.params to work with nnkProcTy (#19563)

    * Allow std/macros.params to work with nnkProcTy
    
    * Add tests for proc params & pragma
    
    (cherry picked from commit ef3f343)
    Menduist authored and narimiran committed Jan 18, 2023
    Configuration menu
    Copy the full SHA
    9ee9b42 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Implement setLineInfo (#21153)

    * Implement setLineInfo
    
    * Add tests
    
    (cherry picked from commit 613829f)
    PMunch authored and narimiran committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    ebf0e7e View commit details
    Browse the repository at this point in the history
  2. Implicitly set noNimblePath when nimble.lock is present (#21266)

    Fixes nim-lang/nimble#1004
    
    (cherry picked from commit 7c6dcfd)
    yyoncho authored and narimiran committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    320a820 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. Add nkFastAsgn into semExpr (#20939)

    * Add nkFastAsgn into case statement
    
    * Add test case
    
    (cherry picked from commit d26b123)
    ire4ever1190 authored and narimiran committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    0cdbf5e View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2023

  1. fixes #21278; deques.shrink off by one bug (#21284)

    fixes #21278; deques.shrink off ny one bug
    
    (cherry picked from commit b82b5d4)
    ringabout authored and narimiran committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    7a43d00 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Add osx support for ODBC driver when linking libodbc (#21291)

    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    ghais and Varriount authored Jan 24, 2023
    Configuration menu
    Copy the full SHA
    2c24ac1 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. fixes #21273; fixes an io.readLine off by one bug [backport 1.0] (#21276

    )
    
    fixes #21273; io.readLine off by one
    
    (cherry picked from commit c4d3d65)
    ringabout authored and narimiran committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    b1a0467 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. Always use httpclient in nimgrab (#19767)

    (cherry picked from commit 06f02bb)
    Yardanico authored and narimiran committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f7c79db View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Implemented basic macro expand functionality (#20579)

    * Implemented level based macro expand functionality
    
    - it can handle single macro call or expand whole function/proc/etc and it
    
    - In addition, I have altered the parser to provide the endInfo for the node.
    The usefulness of the `endInfo` is not limited to the `expandMacro`
    functionality but also it is useful for `ideOutline` functionality and I have
    altered the ideOutline functionality to use `endInfo`. Note `endInfo` most of
    the time is lost during the AST transformation thus in `nimsuggest.nim` I am
    using freshly parsed tree to get the location information.
    
    * Make sure we stop expanding correctly
    
    * Test CI
    
    * Fix tv3_outline.nim
    
    (cherry picked from commit 7031ea6)
    yyoncho authored and narimiran committed Jan 31, 2023
    2 Configuration menu
    Copy the full SHA
    17d45df View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    afdbfd2 View commit details
    Browse the repository at this point in the history
  3. more fixes

    narimiran committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    e0328e2 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. Change nim's nimble files to make it installable (#20179)

    - needs #20168 to make the stuff working
    
    I went for this minimal solution because it seems like `compiler.nimble` and
    `nimsuggest.nimble` are not in use
    
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    (cherry picked from commit fb27734)
    2 people authored and narimiran committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    5e1bffb View commit details
    Browse the repository at this point in the history
  2. Fix the nimble build on Windows (#21314)

    Fix the build on Windows
    
    - `nimble install` fails on Windows, the `./` is not needed.
    
    (cherry picked from commit 43b1b9d)
    yyoncho authored and narimiran committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    032512c View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2023

  1. Configuration menu
    Copy the full SHA
    f9b95d1 View commit details
    Browse the repository at this point in the history
  2. fixes #21317; 1.6.4 regression; etyBaseIndex should return fat pointe…

    …rs [backport 1.6] (#21320)
    
    fixes #21317; regression; etyBaseIndex should return fat pointers
    
    (cherry picked from commit cbf3ed9)
    ringabout authored and narimiran committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    2898568 View commit details
    Browse the repository at this point in the history
  3. fixes SSL version check logic [backport] (#21324)

    * fixed version check logic [backport]
    
    * add ciphersuites
    
    * debug nimble
    
    * fixes returns omission
    
    * finally
    
    * remove debug message
    
    * add ciphersuites
    
    ---------
    
    Co-authored-by: Araq <rumpf_a@web.de>
    (cherry picked from commit 17115cb)
    2 people authored and narimiran committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    b93edcd View commit details
    Browse the repository at this point in the history
  4. fixes #21333; bad codegen for the at operator; [backport:1.6] (#21344)

    (cherry picked from commit 9fb4c2b)
    Araq authored and narimiran committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    7fa782e View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. This adds parseutils.parseSize, an inverse to strutils.formatSize (

    …#21349)
    
    * This adds `parseutils.parseSize`, an inverse to `strutils.formatSize`
    which has existed since 2017.
    
    It is useful for parsing the compiler's own output logs (like SuccessX)
    or many other scenarios where "human readable" units have been chosen.
    The doc comment and tests explain accepted syntax in detail.
    
    Big units lead to small numbers, often with a fractional part, but we
    parse into an `int64` since that is what `formatSize` stringifies and
    this is an inverse over partial function slots.  Although metric
    prefixes z & y for zettabyte & yottabyte are accepted, these will
    saturate the result at `int64.high` unless the qualified number is a
    small fraction.  This should not be much of a problem until such sizes
    are common (at which point another overload with the parse result
    either `float64` or `int128` could be added).
    
    Tests avoids `test()` because of a weakly related static: test() failure
    as mentioned in #21325. This is a
    more elemental VM failure.  As such, it needs its own failure exhibition
    issue that is a smaller test case.  (I am working on that, but unless
    there is a burning need to `parseSize` at compile-time before run-time
    it need not hold up this PR.)
    
    * This worked with `int` but fails with `int64`.  Try for green tests.
    
    * Lift 2-result matching into a `checkParseSize` template and format as a
    table of input & 2 expected outputs which seems nicer and to address
    #21349 (review)
    
    * Fix (probably) the i386 trouble by using `int64` consistently.
    
    * Improve documentation by mentioning saturation.
    
    * Improve documentation with `runnableExamples` and a little more detail in
    the main doc comment based on excellent code review by @juancarlospaco:
    #21349 (review)
    
    * Address some more @juancarlospaco code review concerns.
    
    * Remove a stray space.
    
    * Mention milli-bytes in docs to maybe help clarify why wild conventions
    are so prone to going case-insensitive-metric.
    
    * Add some parens.
    
    (cherry picked from commit 1d06c2b)
    c-blake authored and narimiran committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    c546ba5 View commit details
    Browse the repository at this point in the history
  2. fix func param

    narimiran committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    fca6a0b View commit details
    Browse the repository at this point in the history
  3. Fix closeHandle bug, add setFileSize, make resize work on Windo…

    …ws (#21375)
    
    * Add general purpose `setFileSize` (unexported for now).  Use to simplify
    `memfiles.open` as well as make robust (via hard allocation, not merely
    `ftruncate` address space allocation) on systems with `posix_fallocate`.
    
    As part of this, fix a bad `closeHandle` return check bug on Windows and
    add `MemFile.resize` for Windows now that setFileSize makes that easier.
    
    * Adapt existing test to exercise newly portable `MemFile.resize`.
    
    * Since Apple has never provided `posix_fallocate`, provide a fallback.
    This is presently written in terms of `ftruncate`, but it can be
    improved to use `F_PREALLOCATE` instead, as mentioned in a comment.
    
    (cherry picked from commit c91ef1a)
    c-blake authored and narimiran committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    d070ccb View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2023

  1. fix memfiles

    narimiran committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    6af6818 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2023

  1. fixes #1027; disallow templates to use ambiguous identifiers (#21405)

    * Add `nkFastAsgn` into `semExpr` (#20939)
    
    * Add nkFastAsgn into case statement
    
    * Add test case
    
    * fixes #1027; disallow templates to use ambiguous identifiers (#20631)
    
    * test qualifiedLookUp in templates
    
    * check later
    
    * add testcase
    
    * add 4errormsg
    
    * Update tests/template/m1027a.nim
    
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    
    * Update tests/template/m1027b.nim
    
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    
    Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Jake Leahy <jake@leahy.dev>
    Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    4 people authored Feb 20, 2023
    Configuration menu
    Copy the full SHA
    60350ec View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Fix the TODO portion of recently added posix_fallocate on OS X. (#2…

    …1387)
    
    (cherry picked from commit fdd7520)
    c-blake authored and narimiran committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    69d4e49 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    4fbd28a View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    a67f89e View commit details
    Browse the repository at this point in the history
  2. fixes #20422; emit nimPrepareStrMutationV2 for toOpenArray to keep th… (

    #21459)
    
    fixes #20422; emit nimPrepareStrMutationV2 for toOpenArray to keep the abstraction of mutable strings which have immutable string literals
    
    (cherry picked from commit 50baf21)
    Araq authored and narimiran committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    1cdce31 View commit details
    Browse the repository at this point in the history
  3. Backport #20466 - macOS use SecRandomCopyBytes instead of getentropy (#…

    …21389)
    
    * On macOS use SecRandomCopyBytes instead of getentropy (which is only available on macOS 10.12+)
    
    * Change passL to passl
    
    ---------
    
    Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
    Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
    3 people authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    5c36f24 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Define the version of nim package without using system module (#21415)

    This is follow up from #21313
    
    (cherry picked from commit 9b5ae2b)
    yyoncho authored and narimiran committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    cdbcada View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Configuration menu
    Copy the full SHA
    d723d5f View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. disable 'norm' package

    narimiran committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    b6333c4 View commit details
    Browse the repository at this point in the history
  2. fixes #20139; hash types based on its path relative to its package pa…

    …th (#21274) [backport:1.6]
    
    * fixes #20139; hash types based on its path relative its project
    
    * add a test case
    
    * fixes procs
    
    * better implementation and test case
    
    ---------
    
    Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
    (cherry picked from commit 38d299d)
    2 people authored and narimiran committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    19dd56f View commit details
    Browse the repository at this point in the history