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
Andreas Rumpf
8ccde68f13
closes #17085 ; boehm has problems with large allocations, that is expected and we don't care ( #17487 )
2021-03-24 01:01:31 +01:00
Andreas Rumpf
dbde97f649
fixes #16076 ( #17486 )
2021-03-23 23:46:19 +01:00
flywind
28221e8a33
followup #16182 ( #17472 )
...
* fix nim js cmp fails at CT
* followup #16182
2021-03-23 20:18:36 +01:00
Andrey Makarov
368422c219
update nimgrep documentation ( #17415 )
...
* update nimgrep documentation
* Update doc/nimgrep_cmdline.txt
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-23 18:12:27 +01:00
Clyybber
833084b671
Fixes #17450 ( #17477 )
...
* Fixes #17450
* Add missing test output
2021-03-23 16:30:49 +01:00
Clyybber
97f51ed7c2
Revert "Fixes #17450 ( #17474 )" ( #17476 )
...
This reverts commit 5f0c520489 .
2021-03-23 15:44:20 +01:00
Clyybber
5f0c520489
Fixes #17450 ( #17474 )
...
* Fixes #17450
* Add missing test output
2021-03-23 15:40:30 +01:00
Timothee Cour
c27cd83265
remove {.compileTime.} for procs with NimNode: redundant because of tfTriggersCompileTime ( #17463 )
2021-03-23 02:51:21 -07:00
flywind
c719d79d23
add algorithm.merge ( #16182 )
...
* add merge to algorithm
* Apply suggestions from code review
* Update lib/pure/algorithm.nim
* Apply suggestions from code review
* Update changelog.md
Co-authored-by: ee7 <45465154+ee7@users.noreply.github.com >
2021-03-23 10:49:02 +01:00
Timothee Cour
64e6670de4
fix #16973 ; nim doc now shows correct, canonical import name in title ( #16999 )
...
* nim doc now shows correct import name in title
2021-03-23 09:31:23 +01:00
Andreas Rumpf
d6a16020fe
IC: backend: remember produced type information ( #17440 )
2021-03-23 08:52:00 +01:00
Timothee Cour
1d19cd660f
fix #17458 tnetconnect.nim flaky ( #17459 )
...
* fix tests
* fix #17458
2021-03-23 08:37:15 +01:00
Timothee Cour
f3a6427109
refs #17292 fix repr with do: ( #17449 )
...
* refs #17292 fix `repr` with `do:`
* address comment
2021-03-23 08:34:04 +01:00
Timothee Cour
d78ebe4a0e
fix #17454 ( #17461 )
2021-03-23 08:33:09 +01:00
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