Timothee Cour
b50776dd2f
refs #16338 make thttpclient_ssl_remotenetwork.nim less flaky ( #17457 )
2021-03-23 08:30:41 +01:00
Timothee Cour
4f9aaee1d9
remove redundant void return in stdlib ( #17464 )
2021-03-23 08:28:53 +01:00
Timothee Cour
a75c4b70e8
hint:cc goes to stderr (like all other hints) instead of stdout ( #17465 )
...
Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com >
2021-03-22 18:24:28 -07:00
Saem Ghani
e5873b3a93
semTemplateDef and t17433 clean-ups ( #17448 )
...
- use `doAssert` in t17433
- use setGenericParamsMisc in semTemplateDef akin to semProcAux
- pragma handling in semTemplateDef inline with semProcAux
2021-03-22 12:46:34 +01:00
flywind
c8dda867f2
close #11330 sets uses optimized countSetBits ( #17334 )
...
* Update lib/pure/bitops.nim
* Update lib/system/sets.nim
* Apply suggestions from code review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-22 00:36:48 +01:00
Saem Ghani
23fd098428
Fixes #17433 ; gensym callDef return in templ body ( #17445 )
2021-03-22 00:33:37 +01:00
AFaurholt
5bed7d282a
added more modules to docs lib ( #17430 )
...
* added more modules
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* listed alphabetically + link to json module
* Added suggestion #17430
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-21 18:35:22 +01:00
Derek 呆
fd09ace557
prevent bitmasks double included in mmdist if -d:nimArcDebug added ( #17436 )
2021-03-21 14:29:39 +01:00
Juan Carlos
fb38d906a2
Improve jsre ( #17365 )
...
* Add dollar for regex
* Add dollar for regex
* Peer review feedbacks
* Peer review feedbacks
* Update lib/js/jsre.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/js/jsre.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/js/jsre.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Pear review
* Beer review
* Beer review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-21 10:35:55 +01:00
Timothee Cour
05743bc9f7
improve jsutils docs ( #17421 )
...
* improve jsutils docs
* address comments
2021-03-21 10:35:00 +01:00
Danil Yarantsev
c5b109233a
Add documentation to the macrocache module ( #17431 )
...
* Add docs to macrocache
* use hint
* Use incl in the incl example
* add macrocache to lib
* consistency
* Update doc/lib.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* apply suggestions
* clarify the warning
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-21 10:34:10 +01:00
konsumlamm
eca0b87544
Close #8545 by add a test case ( #17432 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-20 18:30:57 -07:00
ee7
b70e33f5bb
strutils: improve doc comments for replace funcs ( #17427 )
...
This commit fixes mispellings of "occurrence" introduced by:
- 76a3b350ce (#17337 )
- 8e8bea9044 (#17339 )
and adds the same "every occurrence of" in the `replaceWord` func.
Other changes:
- Prefer "replace with" to "replace by".
- Be more consistent with "the" - prefer "of the character" given that
we wrote "by the character".
- Try to be more consistent with writing the types - add
"the string `sub`" given that we wrote "the character `sub`".
2021-03-20 13:22:50 +01:00
konsumlamm
9997b42c35
Use importjs ( #17422 )
2021-03-19 14:22:48 -07:00
haxscramper
430c30299f
[FIX] use mixin for strscans.scanp ( #17371 )
2021-03-19 20:16:52 +01:00
Héctor M. Monacci
8e8bea9044
Clarify behaviour of char replace ( #17339 )
...
Clarify behaviour of char replace by adding ```every ocurrence of character```
2021-03-19 11:19:41 -07:00
flywind
e332c20ba7
follow up #17276 ( #17355 )
...
* improve test coverage for isolation
* a bit better
* rename channels to channels_builtin
* follow up #17276
* fix
* Update lib/std/private/jsutils.nim
2021-03-19 16:54:10 +01:00
Andreas Rumpf
6c1c8f51b3
IC: green tests ( #17311 )
...
* IC: renamed to_packed_ast module to ic module
* IC: don't store the --forceBuild flag, makes it easier to test
* IC: enable hello world test
* Codegen: refactorings for IC; changed the name mangling algorithm
* fixed the HCR regressions
* life is too short for HCR
* tconvexhull is now allowed to use deepCopy
* IC exposed a stdlib bug, required a refactoring
* codegen: code cleanups
* IC: even if a module is outdated, its dependencies might come from disk
* IC: progress
* IC: better name mangling, module IDs are not stable
* IC: another refactoring helping with --ic:on --gc:arc
* disable arraymancer on Windows for the time being
* disable arraymancer altogether
* IC: make basic test work with 'nim cpp'
* IC: progress on --ic:on --gc:arc
* wip; name mangling for type info
2021-03-19 16:53:38 +01:00
flywind
60fc7e986b
fix a typo ( #17417 )
...
* Revert "make system random work in VM"
* fix #17380
* attempt to fix bug
* fix
* better
* fix
* a bit
* fix the leaks
* revert
* fix
* better
* follow up #17391
* fix
* Update tchannels.nim
* Update tests/stdlib/tchannels.nim
* Update tchannels.nim
* fix a typo
2021-03-19 21:44:13 +08:00
flywind
83e002a318
follow up #17391 add testcase ( #17404 )
...
* Revert "make system random work in VM"
* fix #17380
* attempt to fix bug
* fix
* better
* fix
* a bit
* fix the leaks
* revert
* fix
* better
* follow up #17391
* fix
* Update tchannels.nim
* Update tests/stdlib/tchannels.nim
* Update tchannels.nim
2021-03-19 14:48:31 +08:00
Timothee Cour
452366982d
fix #16901 : sidebar groups now works with all routines, not just proc,func ( #17416 )
...
* fix #16901 : sidebar groups now works with all routines, not just proc,func
* fix tests
2021-03-19 07:17:09 +01:00
Juan Carlos
9e1a2e9b63
improve jsconsole ( #17414 )
...
* Add jsconsole.dir
* Update lib/js/jsconsole.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-19 07:15:37 +01:00
quantimnot
83ae70cb54
RST backtick refactor (all *.rst except manual.rst and rst_examples.rst) ( #17258 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-03-18 20:37:55 -07:00
quantimnot
15586c7a7a
RST backtick refactor manual.rst ( #17259 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-03-18 16:59:01 -07:00
narimiran
de5a826538
disable i386 CI until we figure out how to fix it
2021-03-18 16:52:46 +01:00
Timothee Cour
4dd34feb08
doc times: do not use now (and also epochTime) for benchmarking ( #17405 )
...
* doc times: do not use now for benchmarking
* Update lib/pure/times.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update lib/pure/times.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-18 15:17:20 +01:00
Timothee Cour
9d4d27a3ce
adjust spellSuggestSecretSauce logic to avoid too many matches for small symbols ( #17410 )
2021-03-18 13:26:45 +01:00
Timothee Cour
2356d0603f
followup #17398 : getTempDir, getConfigDir now do not have trailing DirSep ( #17402 )
...
* followup #17398 : `getTempDir`, `getConfigDir` now do not have trailing DirSep
* fix test
2021-03-18 13:25:56 +01:00
Timothee Cour
b755060f9c
docs contributing: mention https://man.sr.ht/builds.sr.ht/build-ssh.md for ssh to CI machines ( #17409 )
2021-03-18 02:35:08 -07:00
Andrey Makarov
4bfc5a9551
Rst test check messages ( fix #17280 ) ( #17338 )
2021-03-17 20:13:04 +01:00
Saem Ghani
72b89eff82
semLambda removed, semProcAux reworked ( #17379 )
...
* simplified proc-like name ident to symbol code
* wip - reworking generic param sem
* wip - closer to removing nkEmpty generic params
* it's hacky but tests pass
* slowly tweaking semProcAux to take on semLambda
* fix pragma superset check proto vs current
* Set the symbol owner earlier
* partial progress reworking proto
found bug where default values between forward and impl lead to overload
resolution issues.
* simplified pragma handling and callConv checks
Co-authored-by: Clyybber <Clyybber@users.noreply.github.com >
* partially working
* cgexprs issue
* It works!
* comment clean-up
* clean-up asserts, comments, and other bits
* add isGenericParams, inline isGeneric queries
* seeing if this is sufficiently consistent
* can use this approach or continue it in a further PR
* commentary about nullary generics and clean-ups
* fixed a mistake in PNode isGenericRoutine
* Some small cleanups
* Small cleanup
* for func lambdas ensure we use lambda pragmas
* add some basic compileTime func tests
* [ci skip] remove comments
Co-authored-by: Clyybber <Clyybber@users.noreply.github.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-03-17 19:51:50 +01:00
Andrey Makarov
144e338abb
allow short-style rst references with symbols ( #17372 )
2021-03-17 18:08:13 +01:00
flywind
e9b5543bd5
[std/channels]fix recv leaks(Part One) ( #17394 )
2021-03-17 10:08:54 +01:00
Timothee Cour
bebf2ce24a
fix #17393 getHomeDir and expandTilde should not include trailing / ( #17398 )
...
* fix #17393 getHomeDir and expandTilde should not include trailing `/`
* changelog
2021-03-17 08:25:28 +01:00
Timothee Cour
4d3f3513e2
followup #16067 --spellSuggest ( #17401 )
...
* followup #16067 --spellSuggest
* enable --spellSuggest by default
* fixup
2021-03-17 07:40:29 +01:00
Timothee Cour
5fe5f47033
followup #17389 ; add see also in std/json ( #17400 )
...
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-03-16 19:21:32 -07:00
Igor Ribeiro de Assis
9bb0e55749
Fix FutureStream memory usage ( #17395 ) [backport:1.2]
2021-03-16 21:46:22 +01:00
Timothee Cour
895a40d1ac
fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64 ( #17389 ) [backport:1.2]
...
* fix #17383 : json.%,to and jsonutils.formJson,toJson now works with uint|uint64
* fixup
* fix for js
2021-03-16 21:44:54 +01:00
Juan Carlos
cfe2f126e5
Documentation only jsconsole ( #17384 )
...
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-16 13:16:20 -07:00
Timothee Cour
48eab5370a
fix #2844 #3911 ; add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol error ( #16067 )
...
* add --spellsuggest to suggest symbols in scope with similar spellings on undefined symbol errors
* implement --spellsuggest with 0 arguments
2021-03-16 10:41:30 +01:00
flywind
d5eb658034
fix #17380 ( #17391 )
2021-03-16 07:14:56 +01:00
Clyybber
da83b992ed
Let koch temp -u:leanCompiler work ( #17388 )
2021-03-15 21:40:40 +01:00
Miran
40a5d6537a
fix #17385 , len must be declared before items ( #17386 )
2021-03-15 10:45:10 -07:00
flywind
51a04a3674
make std/sysrand better ( #17360 )
2021-03-15 14:07:27 +01:00
Clyybber
283d9abc84
Make add work in the destructors example ( #17354 )
2021-03-15 13:03:00 +01:00
jiro
5c49480d8c
remove 'stats' from help document of testament tool ( #17364 )
2021-03-15 12:08:47 +01:00
flywind
84cf3e5fca
Revert "make system random work in VM" ( #17378 )
2021-03-15 10:21:25 +01:00
xioren
7937abab44
Clean up imports in httpclient.nim ( #17367 )
...
* Clean up imports
Fix duplicate 'streams' import.
* Update lib/pure/httpclient.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-14 11:14:44 +08:00
flywind
95697d00fa
Update issue template adding more links ( #17284 )
...
* more links
* rename
* Update .github/ISSUE_TEMPLATE/config.yml
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2021-03-12 15:47:01 +01:00
Timothee Cour
c6f9c38892
use NIM_TESTAMENT_BATCH for important_packages, improve formatting, code cleanups ( #17301 )
...
* use NIM_TESTAMENT_BATCH for important_packages, improve formatting, code cleanups
* workaround for nimcrypto not having `--path:.`; remove workaround "two are special snowflakes"
* add comment explaining why nimcrypto fails and what packages need to be testable
2021-03-12 15:45:51 +01:00