summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* FTP client is now able to connect to server over TLS by set `useTls =… ↵Huy Doan2022-10-091-10/+75
| | | | | | | | | | | | | | | | | (#17219) * FTP client is now able to connect to server over TLS by set `useTls = true` in newAsyncFtpClient proc * Update asyncftpclient.nim * fix CI * shouldn't use {.error.} * Update lib/pure/asyncftpclient.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #20516; system.create doesn't work with bitfield objects (#20518)ringabout2022-10-082-6/+7
| | | | | | | * Revert "fixes #19000 (#19032)" This reverts commit 2bda4a30a6b12dd0840dc347e454e54fe26721e7. * fixes #20516; add testcase
* out parameters: enforce that 'out' is only used as a parameter (#20510)Andreas Rumpf2022-10-075-3/+47
| | | | | | | * out parameters: enforce that 'out' is only used as a parameter * make tables.nim use 'out' parameters * better backwards compat
* closes #12994; add testcase (#20511)ringabout2022-10-081-0/+23
|
* fixes devel CI (#20512)ringabout2022-10-071-1/+1
|
* remove implicit let/var default initialization (#20508)ringabout2022-10-072-27/+16
|
* DAA and 'out' parameters (#20506)Andreas Rumpf2022-10-0617-53/+289
| | | | | | | | | | | * DAA and 'out' parameters * progress * documented strictDefs and out parameters * docs, tests and a bugfix * fixes silly regression
* correct grammar (ref #20199) and add check for grammar.txt (#20494)ringabout2022-10-063-12/+35
| | | | | | | * correct grammar; ref #20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
* closes #9401; add testcase (#20507)ringabout2022-10-061-0/+49
|
* Add no-math-errno for GCC when build for Release (#20503)Juan Carlos2022-10-062-4/+9
| | | | * gcc matherrno * changelog
* Fix/improve handling of forward declarations in nimsuggest (#20493)Ivan Yonchovski2022-10-066-13/+119
| | | | | | | | | | | | | | | | | * Fix/improve handling of forward declarations in nimsuggest - ideUse now works fine when invoked on the implementation - implemented ideDeclaration to make cover lsp feature textDocument/declaration - fixed performance issue related to deduplicating symbols. Now the deduplication happens after the symbols are filtered. As a alternative we might change the way cached symbols are stored(e. g. use set). - I also fixed the way globalSymbols work. Now it will sort the responses based on the match location to make sure that the results are sorted in user friendly way. * Update nimsuggest/nimsuggest.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* follow up #20109; remove `shallow` seqs/strings for ORC (#20502)ringabout2022-10-069-45/+36
| | | | | | | * remove `shallow` seqs/strings for ORC * add a changelog item * change url of DelaunayNim
* Make output assertion deterministic for test for #7172 (#20495)Matt Haggard2022-10-051-2/+2
| | | Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* closes #11267; closes #11259; closes #11085; add testcases (#20505)ringabout2022-10-062-0/+36
| | | | | | | * closes #11267; add testcase * closes #11259 * closes #11085
* Markdown indented code blocks (#20473)Andrey Makarov2022-10-0533-616/+710
| | | | | | | | | | | | | | | | | | | | | | | * Implement Markdown indented code blocks Additional indentation of 4 spaces makes a block an "indented code block" (monospaced text without syntax highlighting). Also `::` RST syntax for code blocks is disabled. So instead of ```rst see:: Some code ``` the code block should be written as ```markdown see: Some code ``` * Migrate RST literal blocks :: to Markdown's ones
* macOS use SecRandomCopyBytes instead of getentropy (#20466)Matt Haggard2022-10-051-17/+4
| | | | | * On macOS use SecRandomCopyBytes instead of getentropy (which is only available on macOS 10.12+) * Change passL to passl
* strutils, rstgen: avoid deprecated `strutils.delete` (#20488)ee72022-10-053-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The strutils `delete` func with signature func delete*(s: var string, first, last: int) was deprecated in adba5eb45e0a, in favor of one with signature func delete*(s: var string, slice: Slice[int]) However, a few procedures still used the deprecated form. This commit updates them, resolving these deprecation warnings: rstgen.nim(766, 12) Warning: use `delete(s, first..last)`; delete is deprecated [Deprecated] strutils.nim(1651, 19) Warning: use `delete(s, first..last)`; delete is deprecated [Deprecated] strutils.nim(1679, 7) Warning: use `delete(s, first..last)`; delete is deprecated [Deprecated] strutils.nim(2472, 7) Warning: use `delete(s, first..last)`; delete is deprecated [Deprecated] Before this commit: - `trimZeros` called `s.delete(i+1, i)` for an input that lacks a trailing zero (like "1.23"). - `removePrefix*(s: var string, prefix: string)` called `s.delete(0, -1)` when the prefix was the empty string. which did not modify `s`, nor raise an error. But the newer slice `delete` raises an `IndexDefect` when the start of the slice is greater than the end, so we avoid calling the new `delete` for such a case. Recall that exceptions inheriting from `system.Defect` are not tracked with the `.raises: []` exception tracking mechanism [1], so this commit does not break existing code like: proc foo {.raises: [].} = var s = "abc1.20" s.removePrefix("abc") s.trimZeros() doAssert s == "1.2" The `strutils.delete` deprecation was motivated by a problem with `system.delete` [2][3]: `system.delete` had surprising behavior when the index passed to it was out of bounds (it would delete the last entry then). Compile with `-d:nimStrictDelete` so that an index error is produced instead. Be aware however that your code might depend on this quirky behavior so a review process is required on your part before you can use `-d:nimStrictDelete`. To make this review easier, use the `-d:nimAuditDelete` switch, which pretends that `system.delete` is deprecated so that it is easier to see where it was used in your code. `-d:nimStrictDelete` will become the default in upcoming versions. A similar deprecation happened with `sequtils.delete` [4], but that deprecated form is already not used in this repo. [1] https://github.com/nim-lang/Nim/blob/2dec69fe5aa6/doc/manual.md#exception-tracking [2] https://github.com/nim-lang/Nim/blob/2dec69fe5aa6/changelogs/changelog_1_6_0.md#system [3] https://github.com/nim-lang/Nim/commit/92cb76571432 [4] https://github.com/nim-lang/Nim/commit/1d6863a7899f
* Add proxy basic auth documentation (#20498)TerrorTrace2022-10-051-0/+8
|
* enable important packages which pass tests (#20501)ringabout2022-10-051-2/+2
|
* cleanup nfFirstWrite flags (#20500)Andreas Rumpf2022-10-055-6/+5
|
* fixes #19231; newFinalize doesn't work with ORC (#20291)ringabout2022-10-052-31/+46
| | | | | | | | | | | | | | | * fixes #19231; newFinalize doesn't work with ORC first make it pass tests * remove the tables dep creates a binding for finalized procs in order to handle the same symbols. It used to wrongly generat a new symbol id for the same symbol as the encountered one before * refactor and revert #14257 * de indentation * fixes tests; uses instantiated types
* enable ORC tests for nimsl (#20497)ringabout2022-10-041-1/+1
|
* remove deprecation messages for `unsafeAddr`; add warnings to docs (#20496)ringabout2022-10-041-13/+3
|
* add default field support for object in ARC/ORC (#20480)ringabout2022-10-0423-80/+727
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fresh start * add cpp target * add result support * add nimPreviewRangeDefault * reduce * use orc * refactor common parts * add tuple support * add testcase for tuple * cleanup; fixes nimsuggest tests * there is something wrong with cpp * remove * add support for seqs * fixes style * addd initial distinct support * remove links * typo * fixes tuple defaults * add rangedefault * add cpp support * fixes one more bugs * add more hasDefaults * fixes ordinal types * add testcase for #16744 * add testcase for #3608 * fixes docgen * small fix * recursive * fixes * cleanup and remove tuple support * fixes nimsuggest * fixes generics procs * refactor * increases timeout * refactor hasDefault * zero default; disable i386 * add tuples back * fixes bugs * fixes tuple * add more tests * fix one more bug regarding tuples * more tests and cleanup * remove messy distinct types which must be initialized by original types * add tests * fixes zero default * fixes grammar * fixes tests * fixes tests * fixes tests * fixes comments * fixes and add testcase * undo default values for results Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* decrease iteration count of btree test (#20491)Bung2022-10-041-1/+1
| | | disable btree test
* allocator: disable unnecessary stuff for ORC [backport] (#20489)Andreas Rumpf2022-10-031-95/+44
|
* [ARC] fixes #18645; C Compiler error when initializing {.global.} with a ↵ringabout2022-10-032-12/+35
| | | | | | | | | | block (#19953) * fixes #18645; C Compiler error when initializing {.global.} with a block: * arguably cleaner solution Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Araq <rumpf_a@web.de>
* close #11415; add testcase (#20486)ringabout2022-10-031-0/+25
|
* pragma for sfCallsite instead of name check + better semantics, test (#20464)metagn2022-10-0313-25/+73
| | | | | | | | | | | * pragma for sfCallsite instead of name check at every template definition Not documented because it seems to be for internal use? Should also make it possible to make comparisons and setops imports, but this doesn't have to be done. I can reuse a name like `cursor` for the pragma as well, added a new name just to be safe. * make sfCallsite recursive, add tests
* fixes nim check with orc (#20456)ringabout2022-10-025-1/+27
| | | | | | | | | | | * fixes nim check with orc * fixes tests * add tests * fixes tests * Update tests/arc/t20456.nim
* less test time costs (#20479)Bung2022-10-023-12/+8
|
* disable threads when booting the compiler (#20478)ringabout2022-10-021-0/+1
|
* Fix #19224 For loops over a hardcoded empty array crash the compiler (#20476)Bung2022-10-012-0/+15
| | | | | * Fix #11684 For loops over a hardcoded empty array crash the compiler * Update t19224.nim
* move widestrs out of system (#20462)metagn2022-10-0129-8/+64
| | | | | * move widestrs out of system * fix osproc
* fix #19678 Broken behavior with string ranges in case labels (#20475)Bung2022-10-012-0/+19
| | | | | | | | | * fix #19678 Broken behavior with string ranges in case labels * Update compiler/semtypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* new move analyser2 (#20471)Andreas Rumpf2022-10-0119-687/+475
| | | | | | | | * produce better code for closure environment creation * new 'first write' analysis; * scope based move analyser * code cleanup Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* closed ambiguous enum defaults to first overload (#20457)metagn2022-10-018-8/+37
| | | | | | | | | * closed ambiguous enum defaults to first overload * add warning * turn to hint * work around config
* remove hack for deprecated csize in compiler (#20463)metagn2022-10-012-7/+2
| | | | | * remove hack for deprecated csize in compiler * remove test
* add plausibleAnalytics support for koch docs[backport:1.6] (#20454)ringabout2022-09-303-4/+10
| | | add plausibleAnalytics to koch docs[backport:1.6]
* koch boot compiler with orc (#20467)ringabout2022-09-305-11/+6
| | | | | | | | | | | * koch boot compiler with orc * use orc * workaround bugs * move it * move the data
* make koch and tools work with `nimPreviewSlimSystem` (#20459)ringabout2022-09-308-4/+28
|
* fixes postgres with `nimPreviewSlimSystem` (#20455)ringabout2022-09-291-0/+4
|
* Undeprecate isvalidfilename (#19643)Juan Carlos2022-09-293-33/+60
| | | | | | | | | | * Remove deprecated isvalidfilename * https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314 * https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314 * https://github.com/nim-lang/Nim/pull/19643#issuecomment-1235102314 * Add unittests * Add more Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* refactor dbFormat (#19746)ringabout2022-09-295-34/+34
| | | | | * refactor dbFormat * add simple tests
* fixed tstrimpl (#20452)Andreas Rumpf2022-09-291-0/+2
|
* Unicode Operators are no longer experimental (#20444)ringabout2022-09-286-30/+23
| | | | | | | | | * Unicode Operators are no longer experimental * fixes tests * Update doc/manual.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #19500; remove find optimization [backport: 1.6] (#19714)ringabout2022-09-284-20/+49
| | | | | | | | | | | | | | | | * remove find optimization close #19500 * save find to std * add simple tests * Apply suggestions from code review Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* moderate system cleanup & refactor (#20355)metagn2022-09-2837-1079/+1144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system refactor, move out 600 lines * compilation, slice, backwardsindex, misc_num moved out of system * some procs/types moved into arithmetics, basic_types * system no longer depends on syncio * some procs moved around to fit with their surroundings * make exceptions an import, old ops to misc_num * move instantiationInfo back * move back nim version, fix windows echo * include compilation * better docs for imported modules, fix unsigned ops also remove ze, ze64, toU8, toU16, toU32 with nimPreviewSlimSystem * fix terminal * workaround IC test & weird csize bug, changelog * move NimMajor etc back to compilation, rebase for CI * try ic fix * form single `indices`, slim out TaintedString, try fix IC * fix CI, update changelog, addQuitProc * fix CI * try fix CI * actually fix CI finally hopefully * Update lib/system/compilation.nim Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> * update kochdocs * hopefully fix csize uses for slimsystem * fix tquit Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* fixes changelog links (#20446)ringabout2022-09-281-1/+1
|
* Use vccexe when generating static lib with vcc (#19843)Tomohiro2022-09-281-2/+3
|