summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* move {.injectStmt.} to experimental; add a test (#18300)Timothee Cour2021-06-206-15/+53
| | | | | * move {.injectStmt.} to experimental; add a test * undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
* docgen: move to shared RST state (fix #16990) (#18256)Andrey Makarov2021-06-208-193/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docgen: move to shared RST state (fix #16990) * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename `cmdDoc2` to `cmdDoc` * fix (P)RstSharedState convention * new style of initialization * misc suggestions * 1 more rename * fix a regression Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add `typetraits.pointerBase` to return `T` in `ref T|ptr T` (#18293)Timothee Cour2021-06-202-9/+16
| | | | | | | | | * add typetraits.deref to return T in ref T|ptr T * deref => refBase * refBase=>pointerBase * [skip ci] address comment
* testutils.assertAll: show correct location on assert failure (#18299)Timothee Cour2021-06-191-2/+4
|
* make privateAccess work with generic types and generic instantiations; fix a ↵Timothee Cour2021-06-195-15/+118
| | | | | SIGSEGV (#18260) Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* refs #18278: do not gag fatal msgs (#18290)Timothee Cour2021-06-184-12/+21
|
* strformat.fmt now supports non-literal const strings (#18274)Timothee Cour2021-06-183-27/+43
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add more APIs to compiler/debugutils; re-export it (#18243)Timothee Cour2021-06-184-0/+85
|
* Make the existence of high(type) clearer, especially near subranges (#18286)j-james2021-06-181-4/+7
| | | | | * Make the existence of high(type) clearer, especially around subranges * Use a better example and dry up the wording
* disable pkg manu (#18292)Timothee Cour2021-06-171-1/+1
|
* followup #17876: remove annoying enum name clashes in tests/enum/tenum.nim ↵Timothee Cour2021-06-171-12/+11
| | | | (#18291)
* fix for #18284 int32 should be int (#18285)Adrian Veith2021-06-171-1/+1
| | | the var exp was typed as int32 - it should be int since frep expects an int
* Renamed `-d:nimCompilerStackraceHints` to `-d:nimCompilerStacktraceHints`. ↵Timothee Cour2021-06-174-6/+7
| | | | (#18283)
* tests/exception/tsetexceptions.nim not joinable (#18264)Timothee Cour2021-06-171-0/+3
|
* Revert "system/excpt: check if the exception is not nil before pop (#18247)" ↵Andreas Rumpf2021-06-172-10/+2
| | | | | (#18265) This reverts commit 0adb47aa15e242983c8251d85367c0fe45fc5f12.
* PCRE, nimgrep: add limit for buffer size (#18280)Andrey Makarov2021-06-172-4/+14
|
* increase backoffDuration to avoid timeouts (#18281)Timothee Cour2021-06-161-1/+1
|
* followup #16400; use use -d:nimCompilerStackraceHints in more places (#18282)Timothee Cour2021-06-161-0/+5
|
* Fix doubly typed forward declarations (#18279)Clyybber2021-06-162-2/+27
| | | | | | | | | * Add testcase * Fix testcase * Fix doubly typed forward decls * Better fix
* fixes #17696 (#18276)flywind2021-06-162-13/+47
|
* Don't report unused hints for consumed AST (#18270)Clyybber2021-06-162-1/+18
| | | | | | | | | * Fix #18203 * Add testcase * Fix testcase * Fix test
* link stable and devel docs in nim docs (#18272) [backport:1.2]Timothee Cour2021-06-151-15/+6
|
* add test case for pure enum redefinition error within enum (fixed in recent ↵Timothee Cour2021-06-153-11/+20
| | | | | | | | | | | | | PR) (#18266) * add test case for pure enum redefinition error within enum (fixed in recent PR) * remove code duplication * Revert "remove code duplication" (would require bootstrap >= 1.4) This reverts commit 3f793874c231f847ef015e37a5fd6851f85d9675. * fixup
* httpclient.nim Fixes #14794 and an issue where content-header is not set on ↵Mark Pointing2021-06-142-3/+38
| | | | | | | | | | | | | | | | postContent (#18208) * Fixed missing newline after bound marker in mulipart post (#14794) and a problem where calling postContent with multipart data does not set content-length header. * Update lib/pure/httpclient.nim * Added comment outlining the reason for changes to httpclient.nim and added tests to ensure that multipart post has a newline at the end of the body, and that the content-length header is present. * Fixed typo in comments. * Removed redundant blank lines in thttpclient_standalone.nim. Co-authored-by: Mark Pointing <mark@futurepoint.com.au> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Small scope refactoring (#18263)Clyybber2021-06-144-24/+33
| | | | | | | * Small scope refactoring * Add test for #10251 * Add inline where appropriate
* system/excpt: check if the exception is not nil before pop (#18247)alaviss2021-06-142-2/+10
| | | | | | | | | | In CPS we would consume an exception in the except branch by stashing it into a local then remove the exception from Nim environment so as not to leak it to other code that would be running before the continuation continues However since popCurrentException() assumes that the exception always exist, removing the exception from an except branch will cause a SIGSEGV to happen. This commit fixes that.
* Enable parallel build in build.sh (#18195)Federico Ceratto2021-06-141-0/+24
| | | Add help
* fixes #18235 - proc annotation type macro sym leak (#18249)Saem Ghani2021-06-144-9/+86
| | | | | | | | | | | | | | | | | | | | | * fixes #18235 - proc annotation type macro sym leak - also fixed a typo - proc annotations guard symbol exports with shadow scopes - symbol handling is shadow scope aware * test for exporting an existing unexported sym this one is for my homie alaviss. * Special handling not needed in semProcAnnotation * Testcasing * [skip ci] clean-up and add some more comments * [skip ci] rm trailing whitespace Co-authored-by: Clyybber <darkmine956@gmail.com>
* merge BuildMode into SuccessX, remove code duplication w drnim, add useful ↵Timothee Cour2021-06-1410-66/+64
| | | | | | | | | | | info to successx, add gc to compilesettings (#18252) * merge BuildMode into SuccessX, add more info * refactor duplicated with drnim * fixup * address comment
* followup #17777: declaredloc field error msgs now work with generics (#18259)Timothee Cour2021-06-143-17/+33
| | | | | | | * followup #17777: declaredloc field error msgs now work with generics * fix tests * cleanup
* Improve httpClient docs on SSL cert verification (#15201)Federico Ceratto2021-06-131-3/+16
| | | | | | | | | * Improve httpClient docs on SSL cert verification Cert verification is enabled by default after CVE-2021-29495 * Update httpclient.nim Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #7717 roundtrip float to string; fix `parseFloat` for js (#18248)Timothee Cour2021-06-133-76/+125
| | | | | | | * refs #7717 roundtrip float to string * make parseFloat more correct * improve float tests * improve float tests * cleanup
* getType now works with tyInferred (arising from concepts); refs #18220 (#18241)Timothee Cour2021-06-122-23/+79
| | | | | | | * getType now works with tyInferred (concepts); refs #18220 * avoid cast * add more docs
* added a test case ensuring exception inference continues to workAraq2021-06-111-0/+32
|
* use more meaningful name than "workaround14447" (#18237)Miran2021-06-113-3/+3
|
* handle tyUserTypeClassInst in addDeclaredLoc (#18236)Timothee Cour2021-06-111-1/+1
|
* fix #9437(fix `re.replace` wrong behaviour) (#17546)flywind2021-06-102-5/+24
| | | | | * fix nim js cmp fails at CT * fix
* fixes #15884 (#18230)Andreas Rumpf2021-06-105-3/+18
| | | | | * fixes #15884 * micro optimization
* view types: spec changes (#18226)Andreas Rumpf2021-06-103-24/+21
| | | | | | | | | | | | | * view types: spec changes * Update doc/manual_experimental.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update doc/manual_experimental.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Update nims.rst to reflect that -d:release is now allowed in config.nims ↵Kaushal Modi2021-06-101-6/+6
| | | | | (#18221) `-d:release` and `-d:danger` started working in `config.nims` after https://github.com/nim-lang/Nim/commit/df429fa28772e077faa30dd6e3a701abf48c7669 .
* #18216 make moveDir work across partitions on windows (#18223)Fröhlich A2021-06-102-19/+70
| | | | | | | * return false if AccessDeniedError in tryMoveFSObject - fixes #18216 * add moveDir & moveFile tests * rename `isMoveDir` parameter to `isDir`
* update changelog for wrapnils (#18228)Timothee Cour2021-06-101-3/+0
|
* fixes #18220 (#18227)Andreas Rumpf2021-06-101-1/+1
|
* avoid re-exporting options from std/wrapnils (#18222)Timothee Cour2021-06-102-1/+2
|
* update .github/ISSUE_TEMPLATE/bug_report.md, mention PRs, contributing, ↵Timothee Cour2021-06-091-0/+2
| | | | devel branch (#18224)
* make strict funcs analysis smarter (#18219)Andreas Rumpf2021-06-093-36/+95
| | | | | | | * make strict funcs analysis smarter: varParam[i] = v is different from varParam[i][] = v * added a test case * Update compiler/varpartitions.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix JS error on index page and detect dark mode (#18191)drtheuns2021-06-077-28/+63
| | | | | | | | | | | | | | | | * Fix JS error on index page and detect dark mode The theindex.html page doesn't have a dark mode switch so the main function will error because `toggleSwitch` is not defined. Checks have been added to prevent this from happening. Also add automatic detection of system settings for dark-mode. This could also be done with pure css, but then the dark mode variable declarations would have to be duplicated to work with the switch so I went with this approach. * Fix nimdoc tests * Fix rst2html tests
* fixes #18088 (#18209)Andreas Rumpf2021-06-071-1/+1
|
* alternative to #18185 (#18206)flywind2021-06-071-1/+4
|
* change mimedb stroe stringtable to orderedtable (#18065)Bung2021-06-072-3/+5
| | | | | | | * change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>