summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* [JS] Fix casting to ints (#22327)konsumlamm2023-07-252-19/+28
| | | | | * [JS] Fix casting to ints * Simplify `genCast` by using `asUintN`/`asIntN`
* fixes #22301; fixes #22324; rejects branch initialization with a runtime ↵ringabout2023-07-256-21/+64
| | | | | | | | | | | discriminator with defaults (#22303) * fixes #22301; rejects branch initialization with a runtime discriminator with defaults * undefault nimPreviewRangeDefault * fixes tests * use oldCheckDefault
* Fix grammar top rule (#22325)Khaled Hammouda2023-07-242-2/+2
| | | change stmt to complexOrSimpleStmt in the top grammar rule
* fixes #22321; fixes building DLL with --noMain still produces a DllMain (#22323)ringabout2023-07-242-2/+1
| | | | | * fixes #22321; Building DLL with --noMain produces an unexpected DllMain on devel branch * remove implicit nomain
* Expands codegenDecl to work in function params. fixes #22306 (#22307)Juan M Gómez2023-07-237-18/+47
| | | | | | | * Expands codegenDecl to work in function params. fixes #22306 * makes the test more concrete so T{lit} params dont match * adds sfCodegenDecl
* Testcase for #22008 (#22320)SirOlaf2023-07-231-0/+8
| | | | | Testcase Co-authored-by: SirOlaf <>
* implemented 'push quirky' switch for fine grained control over the ex… ↵Andreas Rumpf2023-07-2310-31/+102
| | | | | | | (#22318) * implemented 'push quirky' switch for fine grained control over the exception handling overhead * documentation
* Check try block for endsInNoReturn (#22314)SirOlaf2023-07-221-2/+3
| | | Co-authored-by: SirOlaf <>
* Update 2.0 changelog (#22311)konsumlamm2023-07-222-100/+110
|
* Document `cast` zeroing memory (#22313)konsumlamm2023-07-221-14/+17
|
* Add test for #22309 (#22316)konsumlamm2023-07-221-0/+11
|
* Fix doc comment rendering for concepts (#22312)konsumlamm2023-07-222-2/+2
|
* Open scope for defer (#22315)SirOlaf2023-07-221-0/+2
| | | Co-authored-by: SirOlaf <>
* fixes #22297; return in the finally in the closure iterators (#22300)ringabout2023-07-222-1/+14
| | | ref #22297; return in the finally in the closure iterators
* fixes CI; disable SSL tests on osx for now (#22304)ringabout2023-07-222-0/+2
| | | | | * test CI * disable osx
* fixes #22210; transform return future in try/finally properly (#22249)ringabout2023-07-213-9/+162
| | | | | | | | | | | * wip; fixes #22210; transform return future in try/finally properly * add a test case for #22210 * minor * inserts a needsCompletion flag * uses copyNimNode
* `infixArgument` fail in `renderer.nim` sometimes (#22264)Ryan McConnell2023-07-201-1/+5
| | | | | * fixing minor typo * Adding err msg
* fix `jsondoc` not getting `showNonExports` flag (#22267)Jake Leahy2023-07-202-8/+11
| | | Pass the config down so we can check if the `--showNonExports` flag is used
* minor code improvement (#22293)Andreas Rumpf2023-07-191-6/+7
|
* fixes #22254; fixes #22253; stricteffects bugs on recursive calls (#22294)ringabout2023-07-192-2/+14
|
* Adding info to manual (#22252)Ryan McConnell2023-07-191-3/+57
| | | | | | | | | | | * Adjustments * Moving example * typo * adding code example back and fix terms * Condensing
* fixes #22268; fixes `move` codegen (#22288)ringabout2023-07-194-34/+20
|
* fixes #6499; disallow built-in procs used as procvars (#22291)ringabout2023-07-193-4/+7
|
* Fix #22281 (#22289)Anna2023-07-181-1/+1
| | | Respect `--gcc.exe` and similar options when `--genScript:on` is used.
* extend the skipAddr for potential types for destructors (#22265)ringabout2023-07-181-2/+1
| | | extend the skipAddr for potential types
* Fix non-toplevel fields in objects not getting rendered (#22266)Jake Leahy2023-07-165-25/+106
| | | | | | | | | | | | | * Add example object into testproject The proc is there to check the case of an identDef being inside an identDef (We do want to render those even if they are not exported) * Add `inside` set to `TSrcGen` which allows us to see what context we are in This is done instead of adding another inXyz bool parameter We then use this to know if we are inside an object when rendering an nkIdentDefs (To know if we need to skip rendering it) * Update test files
* Fixes Naive virtual crash the compiler fixes #22269 (#22271)Juan M Gómez2023-07-162-1/+5
| | | | | * Fixes Naive virtual crash the compiler fixes #22269 * adds type specific test
* fixes idx properly (#22280)ringabout2023-07-142-10/+13
|
* Fix #22273 (#22275)Juan Carlos2023-07-141-1/+1
| | | * Fix #22273
* gendepends now supports pkgs2 (#22277)ringabout2023-07-141-6/+10
|
* fixes #22256; fixes GC_disableOrc overflow (#22257)ringabout2023-07-112-1/+10
|
* Rename `seq.add` parameter to be consistent with `refc` (#22244)Solitude2023-07-101-2/+2
|
* fixes #22237; fixes #21160; wrong cursor on unowned parameters in the for ↵ringabout2023-07-102-2/+70
| | | | | loop in ORC (#22240) fixes #22237; fixes #21160; wrong cursor on unowned parameters
* Fix nimsuggest not showing suggestions for imported tuples (#22241)Jake Leahy2023-07-104-1/+31
| | | | | | | | | | | * Add tests Also test if exported all tuple fields works. This seems like a hacky solution so will try and dive further to find a better solution * Always suggest tuple fields if it passes the filter If the tuple we are accessing is in scope then all the fields will also be in scope * Update tests so line numbers are correct
* fixes #21730; adds pkgs2 as well when nimbleDir is set (#22234)ringabout2023-07-071-0/+2
|
* Fix #21595 (#22233)Juan Carlos2023-07-071-2/+1
| | | | | * . * Fix #21595
* Tolerate markup errors for doc comments (#19607) (#22235)Andrey Makarov2023-07-072-5/+17
| | | | | | | | | | | | | | | | | Follow-up to #21576 (for solving #19607). 1) errors in Markdown mode for `.nim` doc comments are reported with red color but allow to generate `.html` with the comment represented by literate block (monospaced text). We suppose that it's what people want for (supposedly) small doc comments. And this behavior is also a bit more Markdown-ish in the sense that Markdown generally does not have the concept of parsing error. - However, for standalone `.md` it's **not** applied because for large files the consequences are way bigger. (In {.doctype: rst.} mode the behavior is the same as before -- report the error and stop.) In future, when our parser can handle Markdown without errors according to the spec, this code will most probably be not needed.
* Fix #21401 (#22232)Juan Carlos2023-07-071-0/+8
|
* fixes #22175 (#22229)Andreas Rumpf2023-07-062-2/+17
|
* alternative to #22219; adds a pointer wrapper for T destructor (#22225)ringabout2023-07-062-6/+53
| | | | | | | | | | | | | | | * alternative to #22219; adds a pointer wrapper for T destructor * clean up and add comments * Update compiler/ccgtypes.nim * tidy up * fixes comments * fixes cpp * fixes cpp
* Fix concepts with doc comments (#22228)Jake Leahy2023-07-062-1/+14
| | | | | | | | | | | | | | | * Add testcase This tries to use a concept with a doc comment which currently leads to a segfault * Ignore nil nodes which happen when there are doc comments in new style concept This was done instead of semming the comments since `semConceptDecl` says it only supports lists of actual statements * Go with alternative fix: Sem comments but ignore them Since `nil` could mean anything it is best to not silently ignore it (In case another nil problem happens in future Also fix test case so it isn't an infinite loop
* fixes #22132; hoisted openArray params result in erroneous code (#22224)ringabout2023-07-052-1/+22
|
* fixes #22138 (#22221)Andreas Rumpf2023-07-042-2/+27
|
* add a test case for #22190 in case of regression (#22217)ringabout2023-07-041-0/+21
|
* fixes #22212; Compile error when running a Nimscript that compares se… ↵ringabout2023-07-032-4/+16
| | | | | (#22213) fixes #22212; Compile error when running a Nimscript that compares seq with switch("mm", "arc")
* fixes #22208; Ambiguous error when import modules with same names but… ↵ringabout2023-07-036-4/+13
| | | | | (#22211) fixes #22208; Ambiguous error when import modules with same names but different aliases
* clean up the documentation (#22196)ringabout2023-07-0212-34/+28
|
* fixes #22197; Distinct ref objects + destructor cause C++ codegen error (#22207)ringabout2023-07-022-1/+34
|
* fixes #22200 (#22206)Andreas Rumpf2023-07-021-0/+4
| | | | | * fixes #22200 * typo
* Bisect Bugs (#22157)Juan Carlos2023-07-011-0/+20
| | | | | * Add Git bisect like for bug repro code on issue comments against Nim versions >1.0 * Add Git bisect like for bug repro code on issue comments against Nim versions >1.0 * Add Git bisect like for bug repro code on issue comments against Nim versions >1.0