Commit graph

19,043 commits

Author SHA1 Message Date
Andreas Rumpf
cfff27529e
added nkError to the AST (#17567)
* added nkError to the AST

* Update lib/core/macros.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

* Update compiler/ast.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-03-29 16:23:19 +02:00
Clyybber
1a407402a4
Typo in vm.nim 2021-03-29 16:03:54 +02:00
flywind
e2269f9216
[docs]fix #17473 (#17565)
* fix nim js cmp fails at CT

* Add `hasClosure` to `std/effecttraits`

* type

* Update changelog.md

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* fix #14011

* Delete ttypetraits.nim

* Apply suggestions from code review

* fix #17473

* Revert "fix #14011"

This reverts commit 0eed97a84b172b198bf4e6de69c04b84ef9d9f93.

* Update lib/system.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-03-29 14:39:49 +02:00
flywind
81e54c1d30
Add hasClosure to std/typetraits (#17501)
* fix nim js cmp fails at CT

* Add `hasClosure` to `std/effecttraits`

* type

* Update changelog.md

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Update lib/std/effecttraits.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-03-29 14:22:29 +02:00
Timothee Cour
04520c0ce4
remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs (#17543)
* remove std/ prefix from doc/lib.rst now that canonical import is shown in module docs

* cleanup top docs for std/sha1
2021-03-29 13:07:14 +02:00
Danil Yarantsev
89e0e0f27f
Small doc fixes in net (#17566) 2021-03-29 13:06:23 +02:00
Saem Ghani
c6dc9c0255
fixes #17437 - crash where error reporting > 1 (#17547)
* fixes #17437

* Fix bug reference comment

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* [skip ci] describe why we have hasError

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-03-29 12:48:00 +02:00
Timothee Cour
8b26b3ad0d
remove docutils.nimble (not a real nimble package, and affected canonical imports) (#17544)
* remove docutils.nimble (not a real nimble package, and affected canonical imports)

* cleanup redundant references
2021-03-29 12:46:53 +02:00
konsumlamm
9e3960e83d
Small doc improvements for std/with (#17556) 2021-03-29 12:44:31 +02:00
Andreas Rumpf
ab57e7f244
added a simple 'koch branchdone' command to speed up my workflow (#17563) 2021-03-29 12:42:34 +02:00
ben
e45b1e3f36
Fix net.readLine infine loop #17534 (#17535)
* Fix net.readLine infine loop #17534

* fix #17534 add return to template
2021-03-29 11:24:15 +02:00
flywind
085580a2c8
fix #14010(fix std/registry + arc) (#17551)
* fix nim js cmp fails at CT

* fix #14010

* Update tests/stdlib/tregistry.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Update tregistry.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-03-29 10:50:58 +02:00
Danil Yarantsev
b36182b0a4
Free the certificate after checking in checkCertName (#17558) [backport:1.2]
* Fix small leak in checkCertName
* Size is not needed either
* Free the certificate after checking
2021-03-29 10:49:19 +02:00
flywind
e5be216ccb
[docs]close #12580 (#17549) 2021-03-28 20:21:27 -07:00
flywind
a36816fc04
follow up #17539 (#17548)
* fix nim js cmp fails at CT

* follow up #17539
2021-03-29 09:11:07 +08:00
flywind
a5600e49df
close #9622 add testcase (#17557)
* fix nim js cmp fails at CT

* close #9622 add testcase
2021-03-29 01:40:37 +02:00
Ardek Romak
207bcabdf2
Add a getter for all defined Sections in parsecfg (#15450) 2021-03-28 09:57:40 -07:00
ee7
eb3ed44009
system: fix link in delete proc (#17550)
The `delete` proc had a "See also" link that linked to itself.
2021-03-28 12:44:16 +02:00
flywind
c86fdfa1ee
add testcase for #9466 (#17538) 2021-03-28 00:57:22 -07:00
Timothee Cour
6a355a4db0
nim: unbreak CI; testament: add allowedFailure logic for tests that may fail but should still run (#17513) 2021-03-28 00:29:06 -07:00
rockcavera
b77a420d3e
set const arch64 to fix compiling with vcc/icc (#17539) 2021-03-28 13:11:51 +08:00
Jason Beetham
d96469037e
Fixed embedded nimscript imports (#17425) 2021-03-28 01:43:24 +01:00
Timothee Cour
bbe4cf4703
followup custom literals (#17500) 2021-03-27 12:03:14 -07:00
flywind
d3705b253c
close #5792 with testcase (#17536) 2021-03-27 10:18:35 -07:00
flywind
9c52009de6
close #7012 add testcase (#17537) 2021-03-27 10:12:11 -07:00
Andreas Rumpf
cf5ce7616b
IC: bugfix (#17533)
* cleanups
* IC: bugfix
2021-03-27 12:21:57 +01:00
Federico Ceratto
30959e24bd
Update security policy (#17522)
* Update security policy

* Update security.md

Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
2021-03-27 10:36:39 +01:00
Timothee Cour
a65189a739
nnkArglist => nnkArgList + special case stylecheck:error (#17529)
* nnkArglist => nnkArgList

* special case stylecheck:error
2021-03-27 10:28:11 +01:00
Timothee Cour
8ed6de4fe6
fix flaky tnetconnect which sometimes failed with: No route to host [OSError] (#17526) 2021-03-27 10:22:42 +01:00
flywind
b1b767ed0d
close #17157 add testcase (#17531) 2021-03-27 01:51:57 -07:00
Andreas Rumpf
3e03f67335
cleaned up the internal documentation (#17524) 2021-03-26 16:27:55 +01:00
narimiran
add771b051 disable package 'chronicles' until 'chronos' is fixed 2021-03-26 13:41:43 +01:00
Clyybber
bb3769975b
Fix #17199 (#17348)
* don't zero out in a move in the VM

* Add testcases for #17199

* Update tests/arc/tarcmisc.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Update tests/vm/tissues.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Fix test failures

* Fix test

* Fix tests

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-03-26 13:05:51 +01:00
Andreas Rumpf
e3e9742143
added a 'koch ic' command for easier adhoc testing of IC (#17508)
* added a 'koch ic' command for easier adhoc testing of IC
* IC: progress
* IC: enable generics test
* make tests green
2021-03-26 08:52:26 +01:00
Timothee Cour
8049d0befc
testament: remove unused tfile,tline,tcolumn (#17515) 2021-03-26 07:07:33 +01:00
flywind
42e895feb1
close #15696 (#17518) 2021-03-25 21:20:58 -07:00
flywind
8573160a44
lent support for tables (#17505) 2021-03-25 14:05:50 +01:00
flywind
6e0a293dab
re-enable fidget (#17229) 2021-03-25 08:28:06 +01:00
Andrey Makarov
46364e63cd
fix RST parsing after option lists (#17442) 2021-03-25 08:15:05 +01:00
flywind
045400ad92
ref https://github.com/nim-lang/Nim/pull/17333 (#17495) 2021-03-25 07:07:29 +01:00
flywind
76d391a512
remove unnecessary check (#17502) 2021-03-25 07:06:30 +01:00
Andreas Rumpf
355985ac89
custom integer literals bugfixes (#17499)
* custom integer literals bugfixes

* make nimsuggest compile again
2021-03-24 22:29:42 +01:00
Andreas Rumpf
5f5a92379f
custom integer literals (#17489)
* user defined integer literals; refs #17020
* updated renderer.nim
* use mlexerutils helper
* imported all test cases from https://github.com/nim-lang/Nim/pull/17020
* final grammar updated
2021-03-24 14:46:19 +01:00
Saem Ghani
7366a3da37
potential fix for semgeneric formal params (#17494)
marked locations where analysis of return formal param is done prior to
args. This might fix some subtle bugs.
2021-03-24 11:55:58 +01:00
Timothee Cour
1590d14575
fix #17260 render \ properly in nim doc, rst2html (#17315) 2021-03-24 10:58:29 +01:00
Timothee Cour
e94aec20da
fix #17325 linux 32bit CI; fix #17085 flaky test (#17469) 2021-03-24 10:36:15 +01:00
Andreas Rumpf
86af2f7b50
make unary minus part of number literals, refs #17020 (#17488)
* make unary minus part of number literals, refs #17020
* fixes regression
2021-03-24 09:47:11 +01:00
flywind
465a41c308
[isolation]fix empty ref object bug (#17471)
* fix nim js cmp fails at CT

* [Minor]fix empty ref object for isolation

* Update compiler/isolation_check.nim

* Update compiler/isolation_check.nim

Co-authored-by: Clyybber <darkmine956@gmail.com>

Co-authored-by: Clyybber <darkmine956@gmail.com>
2021-03-24 09:44:24 +01:00
flywind
13a2030014
follow up #17486 (#17492)
* fix nim js cmp fails at CT

* follow up #17486

* test more branches

* better
2021-03-24 08:49:05 +01:00
flywind
c015ecdc37
fix #17490 (#17491) 2021-03-24 08:16:41 +01:00