2.0 branch fixes: no LineTooLong, update macos CI (#23184)
Adapts #23108 to the version-2-0 branch and makes the 2.0 compiler define `nimHasNoLineTooLong` as the devel compiler depends on it to not turn off `hint[LineTooLong]`, which means the 2.0 compiler errors on the devel compiler config (as mentioned in #23178 (comment)). Would have these as separate PRs but the macos CI PR would have to be merged first, then the second PR would have to be rebased.
makes nimsuggest con work under v3 [backport 2.0.2] (#23159)
Co-authored-by: Jake Leahy <jake@leahy.dev>
+ show the inferred exception list (as part of the type) for function…
don't render underscore identifiers with id (#22538)
(cherry picked from commit 4f891aa)
Fix reset code gen for range types (#22462, #23214) (#23215)
This PR modifies `specializeResetT` so that it generates the proper reset code for range types. I've tested it in the examples for issues issues I had been experiencing. (cherry picked from commit 473f259)
give typedesc param nodes type T not typedesc[T] [backport:2.0] (#23115)
Fix system.currentSourcePath() documentation [backport 2.0] (#23243)
The documentation links for `parentDir()` and `getCurrentDir()` are broken as they are no longer part of `std/os`. Link changed to `std/private/ospaths2`. (cherry picked from commit 9c155ea)
fixes #22753; Nimsuggest segfault with invalid assignment to table (#…
…22781) (#23313) fixes #22753 ## Future work We should turn all the error nodes into nodes of a nkError kind, which could be a industrious task. But perhaps we can add a special treatment for error nodes to make the transition smooth. (cherry picked from commit 642ac0c) Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
improve error messages [backport] (#23345)
ref https://forum.nim-lang.org/t/11052  (cherry picked from commit 1e7ca2d)
[backport v2.0] Converted the 'invalid kind for firstOrd/lastOrd(XXX)…
…' messages from internal errors to fatal errors. (#23443) (#23446) This fixes a nimsuggest crash when opening: beacon_chain/consensus_object_pools/blockchain_dag.nim from the nimbus-eth2 project and many other .nim files (44 files, to be precise) in the same project. Replaces: #23402 (cherry picked from commit c934d59)