Commit Graph

18917 Commits

Author SHA1 Message Date
cooldome
610e9b2fe9 fix #15756 (#15761)
* fix #15756

* simplify test
2020-10-28 13:24:38 +00:00
cooldome
0956a99537 ARC now capable of custom extra alignment. Ref, closure and seq support. (#15697) 2020-10-28 14:00:49 +01:00
narimiran
732ddc02da change/remove deprecated stuff 2020-10-28 10:20:18 +01:00
narimiran
b13fb9ddb8 fix #15750 2020-10-28 10:20:18 +01:00
cooldome
f8cac6bbbc fix #15752 (#15754) 2020-10-28 00:09:26 +01:00
Timothee Cour
0fb878324e honor --declaredLocs in more places, including type mismatch errors; also show kind with --declaredLocs (#15673)
* honor --declaredLocs in more places, including type mismatch errors
* fix tests
* show declaration location also when type mismatch names clash
2020-10-27 14:19:28 +01:00
shirleyquirk
218acfe367 fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)
* update c_malloc's to csize_t 

fix for broken --os:ios

* I'm an idiot sorry

* Create talgorithm.nim

* workaround for #10456

I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is.

* working test, use typeof rather than auto
2020-10-27 12:38:46 +00:00
Regis Caillaud
12143d90c8 Add C function dup and dup2 posix to system/io (#15675)
* * Add handle to dup and dup2 posix as duplicate and duplicateTo in std/ioutils.
* Added small test & changelog entry

* Fixed import in tioutils
removed when isMainModule

* * Nest test inside block. Rename proc var -> let in captureStdout
* Renamed tmpfile to iotuils.txt
* Added block: # duplicate, duplicateTo
* Improved docstring
* Clean non-idiomatic code
* Added runnable examples

* rm 2 trailing space in expected output

* Made syntax prettier

* Runnable example: file in getTempDir()

* Tmp -> Temp

* Fixed runnableExamples on windows
2020-10-27 08:52:40 +01:00
n5m
066f3ebc2a add tests for Testament "reject" action (#15709)
* add test for reject action

* highlight that a compilation failure is expected

* add the converse test for action=reject

* add trailing newline

* fix wording
2020-10-27 08:48:14 +01:00
Timothee Cour
58a1eec96a condsyms: add nimHasDeclaredLocs (#15735) 2020-10-27 07:53:45 +01:00
Timothee Cour
da476a8723 fix #15740 --hint:conf now works more reliably (#15741) 2020-10-27 07:35:10 +01:00
Xavier Noria
25955440df Document implicit return values from procedures (#15738) 2020-10-27 07:27:02 +01:00
Timothee Cour
3bdc000521 [backport] fix #15595 procvar == works in VM (#15724) 2020-10-26 22:19:05 +02:00
Andreas Rumpf
cf01945f54 ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] (#15737) 2020-10-26 21:08:57 +01:00
Juan Carlos
3a69f14621 Documentation only iup (#15732)
* ReSync with Devel

* ReSync

* Add Examples for IUP, based from official doc
2020-10-26 13:49:01 -04:00
Yanis Zafirópulos
ae8eb1ec3d Copy editing (#15733)
* Minor fixes

* Minor fixes

* Minor fixes

* Minor fixes
2020-10-26 13:47:33 -04:00
Andy Davidoff
ea6c28249a add criterion to important packages (#15604)
* add criterion to important packages

* use a special nimscript for criterion tests

* fix criterion speed differently

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-10-26 14:15:56 +01:00
Jason Beetham
a87617956f Fixed iteration limit hit from execproc (#15723) [backport:1.2] [backport:1.4]
When calling procs from Nim in Nimscript you could hit the VM iteration limit even though the code is functioning properly. This resolves that by making the iteration limit reset eachtime you call a proc.
2020-10-26 11:06:18 +01:00
Danil Yarantsev
b2740f5c63 Add support to the latest LibreSSL version (#15715) [backport:1.2] [backport:1.4] 2020-10-26 11:03:44 +01:00
Bo Lingen
2ebca5e87e Revert "workaround https://github.com/citycide/glob/issues/49 glob broken (#15647)" (#15728)
This reverts commit 4ab1bd7e33.
2020-10-26 10:54:15 +01:00
Juan Carlos
e284445e51 Fix Prelude (#15714)
* ReSync with Devel

* Fix prelude for JS target

* ReSync devel

* Fix prelude for JS target
2020-10-26 10:36:12 +01:00
Timothee Cour
86d7726fb8 workaround #15725 disable freebsd tblocking_channel.nim (#15726) 2020-10-26 10:53:39 +02:00
Timothee Cour
d4c2e2c53f fix #15704 #15597 wrong VM register was freed (#15705)
* fix #15704 #15597 wrong VM register was freed

* same treatment for nkCheckedFieldExpr

* note concerning HighRegisterPressure

* bump NimPatch

* Update lib/system.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-10-26 09:13:37 +01:00
Timothee Cour
b56a037183 workaround #15713 disable freebsd tssl.nim (#15718) 2020-10-26 03:10:38 +02:00
Andreas Rumpf
226595515c explicit ID generation for easier IC (#15559)
* refactoring: idents don't need inheritance
* refactoring: adding an IdGenerator (part 1)
* refactoring: adding an IdGenerator (part 2)
* refactoring: adding an IdGenerator (part 3)
* refactoring: adding an IdGenerator (part 4)
* refactoring: adding an IdGenerator (part 5)
* refactoring: adding an IdGenerator (part 5)
* IdGenerator must be a ref type; hello world works again
* make bootstrapping work again
* progress: add back the 'exactReplica' ideas
* added back the missing exactReplica hacks
* make tcompilerapi work again
* make important packages green
* attempt to fix the build for 32 bit machines (probably need a better solution here)
2020-10-25 08:50:47 +01:00
rockcavera
7252a50fef fix #15698 (#15699)
* fix in the net.`$` to print zeros that are not in the compressed group

* Update lib/pure/net.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

* Update net.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-10-25 08:29:57 +01:00
Timothee Cour
64eb62889a [minor] nimVMDebug: fix codeListing formatting for jump-to-file to work (#15711) 2020-10-25 01:56:07 +03:00
Clyybber
e18fc698ed Try to fix CI failures (#15701)
* Use cligens release version

* Rework important_packages main loop

* Fix

* Fix

* Create pkgs dir

* Don't use nimble develop
since it doesn't work for binary only packages, and always install head

* Use git to get the latest release/tag instead

* Tackle the root cause

* Reduce diff

* Cleanup
2020-10-24 17:02:42 +02:00
Clyybber
d4022ebe53 Revert "fixes #15280 [backport:1.2] (#15281)" (#15700)
This reverts commit 3f00a738db.
2020-10-24 11:45:18 +02:00
Timothee Cour
bf894ad3eb close #8007 (#15695) 2020-10-23 23:16:47 +02:00
cooldome
ae320b4e7d fix #15662 (#15678)
* fix #15662

* alternative fix

* fix spacing
2020-10-23 11:14:54 +02:00
Timothee Cour
275354709d make cgen header consistent with jsgen header (#15682) 2020-10-23 08:03:09 +02:00
Clyybber
01a62320f0 Fix #12410 (#15685)
* Fix #12410, big thanks to @pmetras for this fix

* Add testcase
2020-10-23 03:26:50 +02:00
Timothee Cour
2cb484cefb followup #15642: make source + edit also work with stdlib (which uses -d:boot) (#15684) 2020-10-22 12:02:18 -07:00
Andreas Rumpf
64016ddedc fixes view types for sizeof() and --gc:orc (#15680) 2020-10-22 18:52:05 +02:00
Andreas Rumpf
8358974b73 fixes #15652 [backport:1.4] (#15679) 2020-10-22 17:28:43 +02:00
Clyybber
7435d912ad Add testcase for #14601 (#15677) 2020-10-22 13:23:39 +02:00
Clyybber
7c359a062c Add testcase for #12252 (#15676) 2020-10-22 12:51:03 +02:00
Miran
d8a6b0b04e [backport: 1.4] Better linebreaks (#15658) 2020-10-22 12:16:19 +02:00
n5m
8da0e01769 expect valgrind test failure on memory leak (#15669)
* expect valgrind test failure on memory leak

* alloc 1 instead of 0
2020-10-22 11:25:11 +02:00
narimiran
e47c3987c1 small changelog cleanup [ci skip] 2020-10-22 11:16:15 +02:00
Clyybber
773643b47b Cleanup 2020-10-22 11:03:05 +02:00
Timothee Cour
0979524137 add Source+Edit links on top of every docgend file (#15642) 2020-10-22 10:44:28 +02:00
Gampol T
b2f51e2950 Fix #13609 (#15567)
* add documentation that discardable pragma cannot use on template

* Update doc/manual.rst

Co-authored-by: Euan <euantorano@users.noreply.github.com>

* Update doc/manual.rst

Co-authored-by: Euan <euantorano@users.noreply.github.com>

Co-authored-by: Euan <euantorano@users.noreply.github.com>
2020-10-21 23:40:45 -04:00
Timothee Cour
e09c259bf3 reuse existing toHumanStr (#15674) 2020-10-21 15:53:43 -07:00
Timothee Cour
ec6a1125a0 --declaredlocs => --declaredLocs (#15672) 2020-10-21 10:33:19 -07:00
Timothee Cour
05752cd5d0 add --declaredlocs (#15666) 2020-10-21 15:37:29 +02:00
Timothee Cour
4b0b3818c3 fix cgen header copyright (#15649)
* remove copyright Andreas Rumpf from cgen files
2020-10-21 11:49:59 +02:00
Andreas Rumpf
9a059657ca fixes bootstrapping for any machine that has a Nim already installed [backport:1.4] (#15660) 2020-10-20 21:07:24 +02:00
Timothee Cour
94a4b57280 make patchFile more discoverable (#15659) 2020-10-20 20:21:10 +02:00