Jacek Sieka
63cca93ea9
testament: include extra options in test name ( #19801 )
...
there's currently no (simple) way to disambiguate which option failed
2022-05-19 17:11:53 +02:00
Yardanico
06f02bb771
Always use httpclient in nimgrab ( #19767 )
2022-05-17 09:56:39 +02:00
flywind
33888a7384
[manual] TLock => Lock ( #19785 )
...
* [manual] TLock => Lock
* minor
2022-05-17 07:37:26 +02:00
Anthony Dario
19001c070b
Fix typo in sequtils documentation ( #19789 )
...
Found another small typo.
2022-05-13 11:19:42 +08:00
flywind
c61eb5df32
disable polypbren ( #19787 )
...
* disable polypbren
* Update important_packages.nim
2022-05-13 01:03:30 +08:00
Alfred Morgan
b9f243eb2a
string is missing formatting when calling fmt ( #19780 )
...
it appears the documentation intends to compare & with .fmt but there is no formatting in the string. even though the assert is true it doesn't quite prove that .fmt is an equivalent formatter.
2022-05-10 17:45:57 +02:00
Alfred Morgan
85bc8326ac
varargs example erroneously transformed "abc" to "def" ( #19781 )
2022-05-10 20:21:35 +08:00
Juan Carlos
b2b878f4d6
Remove deprecated posix proc ( #19774 )
...
* Remove deprecated posix proc that takes wrong argument types
* Remove deprecated posix proc that takes wrong argument types
2022-05-08 11:56:46 +02:00
huantian
61c1142667
Update nimscript withDir doc example ( #19776 )
2022-05-08 11:54:25 +02:00
kraptor
8c100a37b9
Add new self-signed 4096 bit certificate to testdata ( #19758 )
...
The test tasyncssl may fail on modern linux versions
as they require at least 2048 bit certificates.
A new certificate and private key with default values
has been added to meet this new requirement.
2022-05-08 11:54:04 +02:00
kraptor
2c73e84436
"ip" protocol as id 0 is long gone ( #19760 )
...
IANA is using id 0 for "HOPOPT" instead of "ip"
for some time now and those systems that still
support the old mapping will stop doing so at
some point in the future.
Some BSDs and openSUSE are already following this
change as per IANA list here:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
As new unixes (and maybe Windows, who knows) start
to adopt the updated IANA list, this will keep
failing from time to time, so it's better to
remove the "ip" check altogether.
2022-05-07 20:46:45 +02:00
Zoom
0455d24d55
Fix questionable suggestion in strutils docs ( #19765 )
...
* Fix questionable suggestion in `stutils` docs
- Removes the recommendation to pass a string slice for getting a relative
index for `find` and `rfind` functions, as this currently makes a string
copy, while a simple subtraction is enough.
- Docstring for `SkipTable` type.
* Doc layout fixup
2022-05-06 11:19:27 +02:00
Anthony Dario
a4401054cc
Fix broken link in sets documentation. ( #19769 )
2022-05-06 17:16:00 +08:00
Zoom
278ecad973
Add 'usages' option to the --stylechecks error msg ( #19759 )
2022-05-04 15:24:52 +01:00
flywind
2ecae20c43
switch to mainline bigints ( #19756 )
2022-05-03 18:35:16 +08:00
Jake Leahy
832b8c5034
Fix link to experimental manual in macro pragmas section [skip ci] ( #19753 )
2022-05-03 10:08:39 +08:00
huantian
927978345b
Rework discarding futures documentation in asyncdispatch ( #19738 )
...
* Rework discarding futures docs in asyncdispatch
* Fix typos
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Use rst note::
Co-authored-by: flywind <xzsflywind@gmail.com >
* Split discarding and handling futures.
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2022-05-02 17:06:57 +01:00
nc-x
4680ab61c0
Fix fixAbstractType for user defined typeclasses, fixes #19730 & #18409 ( #19732 )
2022-04-30 15:58:58 +02:00
Ivan Yonchovski
e4a2c2d474
Make sure that field usage preserves the original line info ( #19751 )
...
Currently `struct.field` will generate a node with `info` that points to the
symbol definition instead of having the actual node location.
2022-04-29 11:16:07 +02:00
flywind
8bfc396a4d
fixes #18612 ; apply cache and memcmp for methods in arc/orc ( #19749 )
...
* try using endsWith
* use memcmp
* add cache
* cleanup
* better
* minor
* fix
* improve test coverage for methods with ARC
2022-04-26 20:14:39 +02:00
Andreas Rumpf
ef4ac5a0d2
use signed comparisons for the index checking in the hope it improves the code generation ( #19712 )
2022-04-26 08:58:15 +02:00
ehmry
82680a12a7
macros: make hasCustomPragma more permissive ( #19747 )
...
Make hasCustomPragma return false rather than fail for invalid
parameters.
2022-04-25 22:16:11 +02:00
flywind
42ac50e988
fixes #19662 ; Indent level errored for first line ( #19718 )
2022-04-25 12:00:23 +02:00
Andreas Rumpf
ee0a470294
Revert "fix db_sqlite.tryInsertID does raise exceptions in 1.6.0 #19743 ( #19744 )" ( #19745 )
...
This reverts commit b10f0e7bca .
2022-04-25 11:59:37 +02:00
flywind
15ae9323e8
fix NimNode comment repr() regression [backport: 1.2] ( #19726 )
2022-04-25 11:19:21 +02:00
flywind
465fd06d50
add warnings for gc:option ( #19722 )
2022-04-25 11:18:26 +02:00
Danil Yarantsev
2f32b450d3
Really fix StringStream with ARC at compile-time, improve streams test ( #19739 )
...
* Fix compile-time StringStream with ARC
* make readDataStr work with ARC, improve test
2022-04-25 11:15:03 +02:00
flywind
efaa6777a4
fix #19435 ; don't create TypeBoundOps for tyOpenArray, tyVarargs [backport: 1.6] ( #19723 )
...
* fix #19435 ; openArray wronyly registers typebounds
* add testcase
* don't create TypeBoundOps for tyOpenArray, tyVarargs
2022-04-25 11:07:55 +02:00
tersec
8e6136dd59
document localPassC consistently with compiler; fix ANSI capitalization ( #19721 )
2022-04-25 11:06:53 +02:00
flywind
b10f0e7bca
fix db_sqlite.tryInsertID does raise exceptions in 1.6.0 #19743 ( #19744 )
2022-04-24 14:20:18 -04:00
huantian
02e8aa9660
Fix doc: list of async backends ( #19741 )
2022-04-24 10:47:39 +01:00
Andrey Makarov
bb839029d5
Move common Latex code into class nimdoc.cls ( #19734 )
2022-04-21 15:06:09 -04:00
Jason Beetham
dc4cc2dca5
Fix string stream crashing when created on nimscript due to last fix ( #19717 )
2022-04-14 11:30:59 +02:00
huantian
ef7d7f2459
Better error message and tests for bad await ( #19622 )
...
* Better error message and tests for bad await
* Use compiles to check if await is valid
* temp: disable windows noasync test
* Better error report, simplify test
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-13 23:03:46 +02:00
flywind
98cebad7de
enable style:usages for stdlib tests [backport: 1.6] ( #19715 )
...
* enable style:usages for stdlib tests
* freeAddrInfo
* more tests
* importc
* bufSize
* fix more
* => parseSql and renderSql
2022-04-13 11:53:02 +02:00
flywind
26bcf18f91
fix #19680 ; check if stderr is static ( #19709 )
2022-04-12 09:48:48 +02:00
Jason Beetham
26acc97864
StringStreams no longer errors when intialized with literals on arc/orc ( #19708 )
2022-04-11 14:27:12 +02:00
flywind
a77ffdb7ea
fix #17286 nim check -b:js works ( #19704 )
...
* fix #17286 nim check -b:js works
* fix
2022-04-09 17:52:11 +02:00
Leon
152dab0983
fix: Fix introductory macro examples ( #19706 )
...
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com >
2022-04-09 17:51:44 +02:00
flywind
ded8b0e541
rewrite docs JS in Nim ( #19701 )
...
* rewrite docs JS in Nim
* fixup
* fix nimdoc/rsttester
2022-04-09 17:50:57 +02:00
flywind
00775f6880
fix stylecheck bug with nre ( #19356 )
...
* stylecheck usages part two: stdlib cleanup
typeinfo.nim: importCompilerProc => importcompilerproc
nre.nim: newLineFlags => newlineFlags
system.nim: JSRoot => JsRoot
ref #19319
* prefer importCompilerProc
* fix stylecheck error with asyncdispatch
it is a partial regression since #12842
* add tests
* don't use echo in tests
* fix stylecheck bug with nre
* Update compiler/linter.nim
* no need to check dotexpr again
* neither did let/var/const
2022-04-08 08:04:46 +02:00
Timothee Cour
e78ef57c93
typetraits: add toSigned, toUnsigned ( #18445 )
...
* typetraits: add toSigned, toUnsigned
* improve and add tests
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-07 17:38:01 -04:00
flywind
1807de38e5
add testcase for #16462 ( #19692 )
2022-04-07 20:57:50 +02:00
flywind
c8aeea9d62
improve the error messages for std/tasks [backport: 1.6] ( #19695 )
2022-04-07 20:56:34 +02:00
Ivan Yonchovski
810d5e91e4
[nimsuggest] return the type when on symbol in let/var ( #19639 )
...
- make sure `suggestSym` is called after `PSym.typ` is set.
2022-04-07 13:39:27 +02:00
flywind
0978276ed9
use two spaces indentation ( #19696 )
2022-04-07 13:07:39 +08:00
flywind
e1929deac7
remove useless compilation condition ( #19690 )
...
ref https://github.com/nim-lang/Nim/pull/18546
2022-04-07 07:11:25 +08:00
Nan Xiao
065f568470
No need to export pos from OptParser ( #19688 )
...
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-06 20:28:58 +02:00
Jacek Sieka
cb6ce80cb8
std/tasks: fix spelling ( #19691 ) [backport]
...
why aren't these not being caught by style check options?
--styleCheck:usages finds it.
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-06 20:28:37 +02:00
flywind
e649ddd09b
Revert "Load Google Fonts last ( #19683 )" ( #19693 )
...
This reverts commit abe3b0eb64 .
2022-04-06 20:27:51 +02:00