Antonis Geralis
c522f7f33c
Add entry ( #18434 )
2021-07-06 07:21:50 +02:00
Antonis Geralis
36654fd577
Cleanup interval and timeout procs ( #18431 )
...
clear/setTimeout procs were using ref ref Timeout. Added more interval overloads. Corrections.
2021-07-05 19:55:46 +01:00
pyautogui
927a832dde
deprecate std/mersenne ( #18395 )
...
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 >
2021-07-05 10:12:58 -07:00
Andreas Rumpf
1bed777314
fixes #18411 ( #18432 ) [backport:1.4]
2021-07-05 18:04:07 +02:00
Timothee Cour
ffa638ed50
std/net: show addr+port on address already in use error; code-block => runnableExamples ( #18428 )
...
* std/net: show addr+port on address already in use error; code-block => runnableExamples
* var=>let
2021-07-05 14:26:40 +02:00
Antonis Geralis
d1d2498c7b
Add lent annotation to avoid extra copies in sample ( #18404 )
...
* Add lent annotation to avoid extra copies in sample
* Remove lent
* Update random.nim
2021-07-02 23:20:59 +02:00
flywind
60eac79f7f
[minor]remove unnecessary stringify ( #18419 )
2021-07-02 14:38:01 +02:00
Andreas Rumpf
3ceaf5c130
fixes #18030 ( #18415 )
2021-07-01 17:35:04 +02:00
Timothee Cour
779b4e307b
don't use {.rtl.} for generics, otherwise -d:useNimRtl gives ambiguous identifier nimrtl error ( #18406 )
2021-07-01 11:14:01 +02:00
Andreas Rumpf
41c29cb3a1
fixes #18130 ( #18407 )
2021-07-01 06:51:08 +02:00
Mark Pointing
17911a116d
Removed hard coded ports from thttpclient_standalone.nim. ( #18374 )
...
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
Co-authored-by: Mark Pointing <mark@futurepoint.com.au >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-06-30 10:22:38 -07:00
Endeg
28a4814019
Missing spaces when compiling testament and nim_dbg. ( #18403 )
2021-06-30 10:19:22 -07:00
Andreas Rumpf
19263f2775
fixes #18400 ( #18402 )
2021-06-30 12:36:24 +02:00
Ștefan Talpalaru
eaa1c3a377
genDepend: fix for module names that are reserved DOT keywords ( #18392 )
...
(like "node" and "edge")
2021-06-30 07:29:10 +02:00
Bung
16f0b55664
remove isKeywordIgnoreCase from highlite, not used , can't even compile with -d:useNimRtl ( #18399 )
2021-06-30 07:28:41 +02:00
Timothee Cour
0483a5ffaf
improvements to hint:processing: show import stack, distinguish nims, show includes etc ( #18372 )
...
* improvements to hint:processing
* fix tests; do not show hintProcessing for nimscript unless given -d:nimHintProcessingNims
* fix trunner and avoid need for -d:nimHintProcessingNims
* fix some tests
2021-06-30 07:16:31 +02:00
Elliot Waite
afe5eb569b
Add commas to docs for clarity ( #18398 )
2021-06-29 19:21:30 -07:00
Timothee Cour
36d24846b6
typo: enmRange => enumElementsAsSet ( #18394 )
2021-06-29 18:08:50 -07:00
Andreas Rumpf
97fc95012d
fixes #16270 ( #18388 )
2021-06-29 15:34:39 +02:00
Timothee Cour
6387e28963
simplify rdstdin ( #18382 )
2021-06-28 13:09:14 -07:00
Clyybber
808db3b284
Fix unused warning for $ on empty object ( #18381 )
2021-06-28 22:01:06 +02:00
Clyybber
dd2cbe3164
Cleanup lookups.nim again.. ( #18379 )
2021-06-28 19:25:30 +02:00
Clyybber
72d6a9c885
Fix #16426 ( #18377 )
2021-06-28 17:41:37 +02:00
Timothee Cour
cb9496693a
./koch tools now builds bin/nim_dbg, a debug version of nim (#18289 )
2021-06-28 17:15:20 +02:00
Andreas Rumpf
0be17f5d9c
fixes #18319 ( #18375 )
2021-06-28 17:08:45 +02:00
Clyybber
6e74fecb42
Simplify addInt, remove digits10 ( #18356 )
...
* Simplify addInt, remove digits10
Co-authored-by: Charles Blake <charlechaud@gmail.com >
* Fix bootstrapping
* Add noInit to tmp array
* noInit -> noinit
Co-authored-by: Charles Blake <charlechaud@gmail.com >
2021-06-28 15:00:14 +02:00
gemath
e720bbdd76
Peg captures get stack-like behavior ( #18369 )
...
* Implements reverse capture indexing.
* Now works for modified backrefs too.
* Changed reverse indexing syntax prefix for back-references to '$^'.
2021-06-28 12:33:20 +02:00
Federico Ceratto
908b2cc2e4
Switch IRC links to Libera Chat ( #18370 )
2021-06-27 21:12:12 +01:00
Federico Ceratto
0804b4b37d
Switch packaging.rst to use makefile
...
Minor cleanup
2021-06-27 19:51:28 +01:00
Timothee Cour
0b7361e938
followup #18362 : make UnusedImport work robustly ( #18366 )
...
* warnDuplicateModuleImport => hintDuplicateModuleImport
* improve DuplicateModuleImport msg, add test
2021-06-27 20:39:16 +02:00
Andrey Makarov
1b9b806007
rst: fix bug 20 from #17340 ( #18360 )
...
and a leftover bug: priority of option list inside definition list
2021-06-26 18:10:46 +02:00
Timothee Cour
b8f761b7e2
even lighter version of #17938 : fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511 , #17510 , #14246 (without realModule) ( #18362 )
...
* {.used: symbol}
* add tests
* fix tests with --import
* --import works without giving spurious unused warnings
* new warning warnDuplicateModuleImport for `import foo; import foo`
* fix test, add resolveModuleAlias, use proper line info for module aliases
* fix spurious warnings
* fix deprecation msg for deprecated modules even with `import foo as bar`
* disable a test for i386 pending sorting XDeclaredButNotUsed errors
* UnusedImport now works with re-exported symbols
* fix typo [skip ci]
* ic support
* add genPNode to allow writing PNode-based compiler code similarly to `genAst`
* fix DuplicateModuleImport warning
* adjust test
* fixup
* fixup
* fixup
* fix after rebase
* fix for IC
* keep the proc inline, move the const out
* [skip ci] fix changelog
* experiment: remove calls to resolveModuleAlias
* followup
* fixup
* fix tests/modules/tselfimport.nim
* workaround tests/deprecated/tmodule1.nim
* fix properly
* simplify
2021-06-26 15:21:46 +02:00
Andreas Rumpf
39fbf3c84b
ensure 'koch boot --gc:orc' stays green ( #18353 )
...
* ensure 'koch boot --gc:orc' stays green
* disable for C++ code generator for now
2021-06-25 21:39:52 -04:00
tomc1998
f6bea08eac
Add sink annotation to option some() ( #18358 )
2021-06-25 22:06:24 +02:00
Timothee Cour
8535b26a75
docs now show nimExperimentalX APIs ( #18345 )
...
* docs now show nimExperimentalX APIs
* fix for windows
2021-06-25 16:47:10 +02:00
Andreas Rumpf
ceb9e3efc9
fixes #18240 ( #18354 )
...
* ORC: track escaping parameters properly
* fixes #18240
2021-06-25 14:12:23 +02:00
Andreas Rumpf
0d194cdbf9
fixes #18287 ( #18346 )
2021-06-25 06:22:52 +02:00
Smooth Operator
6be8a66833
couple tiny typo fixes ( #18344 )
2021-06-24 18:48:57 +01:00
Kaushal Modi
f128f7971f
float parsing: Add test for a fixed issue ( #18232 )
...
Fixes https://github.com/nim-lang/Nim/issues/14407 .
This issue was fixed by https://github.com/nim-lang/Nim/pull/18139 .
2021-06-24 19:19:50 +02:00
Andreas Rumpf
16038d44f6
fixes #18320 ( #18343 )
...
* TSymFlag has 47 flags already
* fixes #18320
2021-06-24 18:37:04 +02:00
Timothee Cour
565e07a993
enable VM tracing in user code via {.define(nimVmTrace).} ( #18244 )
...
* enable VM tracing in user code via `{.define(nimVmTrace).}`
* add vmutils.vmTrace
* add vmTrace
2021-06-24 11:55:31 +02:00
Andrey Makarov
0c8d3ae985
rst: allow comment to continue on second line ( #18338 )
2021-06-24 10:28:28 +02:00
Timothee Cour
55c1953f63
fix #18334 : handle path with spaces on windows during bootstrap ( #18337 )
2021-06-24 00:58:11 -07:00
Timothee Cour
f258e4e70c
fix #18332 : XDeclaredButNotUsed hints now in deterministic order ( #18336 )
2021-06-24 08:31:55 +02:00
Andreas Rumpf
0f91b67f5c
fixes #18326 ( #18335 )
...
* fixes #18326
* make tests green again
2021-06-23 23:31:17 +02:00
flywind
496bd790e1
[std/times]getTime now uses high resolution API on windows ( #17901 )
2021-06-23 12:33:19 -07:00
Antonis Geralis
63456c6d7f
Add some tests ( #18333 )
2021-06-23 17:56:20 +02:00
Andreas Rumpf
0eee7f5727
OS.nim: style changes ( #18331 )
2021-06-23 14:39:10 +02:00
Andrey Makarov
9c43f05099
Markdown: allow to end URL with balanced parenthesis ( #18321 )
...
* Markdown: allow to end URL with balanced parenthesis
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* apply suggestion
* remove unnecessary if
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-06-23 07:50:05 +02:00
Timothee Cour
5badeea170
followup #18318 : simplify dollarImpl and add a test ( #18330 )
2021-06-22 21:42:39 -07:00