ringabout
2e7c8a339f
newStringOfCap now won't initialize all elements anymore ( #22568 )
...
newStringOfCap nows won't initialize all elements anymore
2023-08-28 10:43:58 +02:00
ringabout
306b9aca48
initCandidate and friends now return values (#22570 )
...
* `initCandidate` and friends now return values
* fixes semexprs.nim
* fixes semcall.nim
* Update compiler/semcall.nim
2023-08-28 15:57:24 +08:00
Bung
094a29eb31
add test case for #19095 ( #22566 )
2023-08-28 12:31:16 +08:00
Bung
100eb6820c
close #9334 ( #22565 )
2023-08-27 22:56:50 +08:00
Bung
0b78b7f595
fix #22548;environment misses for type reference in iterator access n… ( #22559 )
...
* fix #22548;environment misses for type reference in iterator access nested in closure
* fix #21737
* Update lambdalifting.nim
* remove containsCallKinds
* simplify
2023-08-27 14:29:24 +02:00
metagn
c19fd69b69
test case haul for old generic/template/macro issues ( #22564 )
...
* test case haul for old generic/template/macro issues
closes #12582 , closes #19552 , closes #2465 , closes #4596 , closes #15246 ,
closes #12683 , closes #7889 , closes #4547 , closes #12415 , closes #2002 ,
closes #1771 , closes #5121
The test for #5648 is also moved into its own test
from `types/tissues_types` due to not being joinable.
* fix template gensym test
2023-08-27 11:27:47 +02:00
Juan Carlos
a108a451c5
Improve compiler cli args ( #22509 )
...
* .
* Fix cli args out of range with descriptive error instead of crash
* https://github.com/nim-lang/Nim/pull/22509#issuecomment-1692259451
2023-08-25 22:55:17 +02:00
metagn
1cc4d3f622
fix generic param substitution in templates ( #22535 )
...
* fix generic param substitution in templates
fixes #13527 , fixes #17240 , fixes #6340 , fixes #20033 , fixes #19576 , fixes #19076
* fix bare except in test, test updated packages in CI
2023-08-25 21:08:47 +02:00
ringabout
d677ed31e5
follow up #22549 ( #22551 )
2023-08-25 06:48:08 +02:00
Amjad Ben Hedhili
fc6a388780
Add cursor to lists iterator variables ( #22531 )
...
* followup #21507
2023-08-24 20:57:49 +02:00
ringabout
1013378854
fixes a strictdef ten years long vintage bug, which counts the same thing twice ( #22549 )
...
fixes a strictdef ten years long vintage bug
2023-08-24 20:56:58 +02:00
Jacek Sieka
bc9785c08d
Fix getAppFilename exception handling ( #22544 )
...
* Fix `getAppFilename` exception handling
avoid platform-dependendent error handling strategies
* more fixes
* space
2023-08-24 15:41:29 +02:00
ringabout
c56a712e7d
fixes #22541 ; peg matchLen can raise an unlisted exception: Exception ( #22545 )
...
The `mopProc` is a recursive function.
2023-08-24 12:59:45 +02:00
metagn
53d43e9671
round out tuple unpacking assignment, support underscores ( #22537 )
...
* round out tuple unpacking assignment, support underscores
fixes #18710
* fix test messages
* use discard instead of continue
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-24 06:11:48 +02:00
metagn
03f267c801
make jsffi properly gensym ( #22539 )
...
fixes #21208
2023-08-23 19:25:26 +02:00
metagn
4f891aa50c
don't render underscore identifiers with id ( #22538 )
2023-08-23 13:43:02 +02:00
SirOlaf
3de75ffc02
Fix #21532 : Check if template return is untyped ( #22517 )
...
* Don't ignore return in semTemplateDef
* Add test
---------
Co-authored-by: SirOlaf <>
2023-08-23 06:18:35 +02:00
Andreas Rumpf
6b04d0395a
allow tuples and procs in 'toTask' + minor things ( #22530 )
2023-08-22 21:01:08 +02:00
Hamid Bluri
a26ccb3476
fix #22492 ( #22511 )
...
* fix #22492
* Update nimdoc.css
remove scroll-y
* Update nimdoc.out.css
* Update nimdoc.css
* make it sticky again
* Update nimdoc.out.css
* danm sticky, use fixed
* Update nimdoc.out.css
* fix margin
* Update nimdoc.out.css
* make search input react to any change (not just keyboard events) according to https://github.com/nim-lang/Nim/pull/22511#issuecomment-1685218787
2023-08-22 18:31:21 +02:00
metagn
602f537eb2
allow non-pragma special words as user pragmas ( #22526 )
...
allow non-pragma special words as macro pragmas
fixes #22525
2023-08-21 20:08:57 +02:00
metagn
942f846f04
fix getNullValue for cstring in VM, make other VM code aware of nil cstring ( #22527 )
...
* fix getNullValue for cstring in VM
fixes #22524
* very ugly fixes, but fix #15730
* nil cstring len works, more test lines
* fix high
2023-08-21 20:08:00 +02:00
metagn
a4781dc4bc
use old typeinfo generation for hot code reloading ( #22518 )
...
* use old typeinfo generation for hot code reloading
* at least test hello world compilation on orc
2023-08-20 06:30:36 +02:00
SirOlaf
c0ecdb01a9
Fix #21722 ( #22512 )
...
* Keep return in mind for sink
* Keep track of return using bool instead of mode
* Update compiler/injectdestructors.nim
* Add back IsReturn
---------
Co-authored-by: SirOlaf <>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-19 21:04:25 +02:00
PhilippMDoerner
93407096db
#22514 expand testament option docs ( #22516 )
...
* #22514 Expand docs on testament spec options
The file, line and column options of testament are not in the docs,
but can be very important to know.
They allow you to specify where a compile-time error originated from.
Particularly given that testament assumes the origin to always be
the test-file, this is important to know.
* #22514 Specify nimout relevance a bit more
* #22514 Fix slightly erroneous doc-link
* #22514 Add example
* #22514 Add some docs on ccodecheck
2023-08-19 17:25:38 +02:00
Amjad Ben Hedhili
d77ada5bdf
Markdown code blocks migration part 9 ( #22506 )
...
* Markdown code blocks migration part 9
* fix [skip ci]
2023-08-19 15:14:56 +02:00
Nan Xiao
6eb722c47d
replace getOpt with getopt ( #22515 )
2023-08-19 15:05:17 +02:00
Juan Carlos
c44c8ddb44
Remove Deprecated Babel ( #22507 )
2023-08-19 07:05:06 +02:00
Alberto Torres
20cbdc2741
Fix #22366 by making nimlf_/nimln_ part of the same line ( #22503 )
...
Fix #22366 by making nimlf_/nimln_ part of the same line so the debugger doesn't advance to the next line before executing it
2023-08-18 21:13:27 +02:00
Tomohiro
eb83d20d0d
Add staticFileExists and staticDirExists ( #22278 )
2023-08-18 16:47:47 +02:00
ringabout
7fababd583
make float32 literals stringifying behave in JS the same as in C ( #22500 )
2023-08-17 18:52:38 +02:00
metagn
98c39e8e57
cascade tyFromExpr in type conversions in generic bodies ( #22499 )
...
fixes #22490 , fixes #22491 , adapts #22029 to type conversions
2023-08-17 18:52:28 +02:00
ringabout
fede757238
bump checksums ( #22497 )
2023-08-17 16:48:28 +02:00
Nan Xiao
019b488e1f
fixes syncio document ( #22498 )
2023-08-17 20:26:33 +08:00
ringabout
2e3d9cdbee
fixes #22441 ; build documentation for more modules in the checksums ( #22453 )
...
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2023-08-17 13:54:00 +02:00
ringabout
ee817557ec
close #22748 ; cursorinference + -d:nimNoLentIterators results in err… ( #22495 )
...
closed #22748 ; cursorinference + -d:nimNoLentIterators results in erroneous recursion
2023-08-17 13:33:19 +02:00
Juan M Gómez
60307cc373
updates manual with codegenDecl on params docs ( #22333 )
...
* documents member
* Update doc/manual_experimental.md
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2023-08-17 12:20:22 +02:00
Amjad Ben Hedhili
299394d21a
Fix seq.capacity ( #22488 )
2023-08-17 06:38:15 +02:00
ringabout
940b1607b8
fixes #22357 ; don't sink elements of var tuple cursors ( #22486 )
2023-08-16 13:46:44 +02:00
ringabout
ade75a1483
fixes #22481 ; fixes card undefined misalignment behavior ( #22484 )
...
* fixes `card` undefined misalignment behavior
* Update lib/system/sets.nim
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-15 23:31:44 +02:00
Jason Beetham
6c4e7835bf
When in object handles procedure call again, fixes #22474 ( #22480 )
...
Ping @narimiran please backport to the 2.0 line.
2023-08-15 17:48:31 +02:00
ringabout
9296b45de4
update test command of important packages ( #22485 )
2023-08-15 21:42:26 +08:00
Andrey Makarov
a660c17d30
Markdown code blocks migration part 8 ( #22478 )
2023-08-15 06:27:36 +02:00
Emery Hemingway
1927ae72d0
Add Linux constant SO_BINDTODEVICE ( #22468 )
2023-08-14 21:00:48 +02:00
ringabout
09d0fda7fd
fixes #22469 ; generates nimTestErrorFlag for top level statements ( #22472 )
...
fixes #22469 ; generates `nimTestErrorFlag` for top level statements
2023-08-14 13:08:01 +02:00
ringabout
7bb2462d06
fixes CI ( #22471 )
...
Revert "fixes bareExcept warnings; catch specific exceptions (#21119 )"
This reverts commit 9207d77848 .
2023-08-14 15:04:02 +08:00
Nan Xiao
9bf605cf98
fixes syncio document ( #22467 )
2023-08-14 08:44:50 +08:00
ringabout
9207d77848
fixes bareExcept warnings; catch specific exceptions ( #21119 )
...
* fixes bareExcept warnings; catch specific exceptions
* Update lib/pure/coro.nim
2023-08-13 00:02:36 +02:00
ringabout
4c89223171
relax the parameter of ensureMove; allow let statements ( #22466 )
...
* relax the parameter of `ensureMove`; allow let statements
* fixes the test
2023-08-12 13:23:54 +02:00
Juan M Gómez
f642c9dbf1
documents member ( #22460 )
...
* documents member
* Apply suggestions from code review
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
* Update doc/manual_experimental.md
* Update doc/manual_experimental.md
* Update doc/manual_experimental.md
* Update doc/manual_experimental.md
* Update doc/manual_experimental.md
* Update doc/manual_experimental.md
---------
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-12 10:37:52 +02:00
ringabout
23f3f9ae2c
better initialization patterns for seminst ( #22456 )
...
* better initialization patterns for seminst
* Update compiler/seminst.nim
* Update compiler/seminst.nim
2023-08-12 08:30:17 +08:00