Commit Graph

17987 Commits

Author SHA1 Message Date
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
Dominik Picheta
675cf5760f Fixes compilation for --os:any + --exception:setjmp (#15626) 2020-10-20 16:47:23 +02:00
Araq
877d520616 gc.rst: updated the docs to reflect reality 2020-10-20 15:00:36 +02:00
Timothee Cour
3cbe8d2c53 $(uint|uint64) now works with nimscript (#15644)
* $(uint|uint64) now works with nimscript

* fixup
2020-10-20 14:26:37 +02:00
RecruitMain707
ed0f8a4973 Fix compilation error for regions and memory profiling (#15641) (#15656)
Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com>
2020-10-20 14:22:02 +02:00
narimiran
b418c54ec4 even more "eg" fixes [ci skip] 2020-10-20 13:58:12 +02:00
Tomáš Hübelbauer
725c7caa02 Remove bit about opening files not raising (#15654)
Resolved #473 

I am removing this bit because this advice to not throw on recoverable-from cases like a file failing to open is actually not respected by Nim standard library. `readFile` and `readLines` both throw and exceptions must be used as a method of control flow for the recovery from that. There are alternatives, like opening a file handle instead of using these helpers, but that's less convenient than these helper methods for cases where you really want to just slurp up a file to memory and use a fallback value if it doesn't exist or is for whatever reason not readable.
2020-10-20 13:36:19 +02:00
narimiran
5e9dd81baa more "eg" fixes 2020-10-20 10:51:50 +02:00
narimiran
0a686659d2 it is not "eg", it is "e.g." 2020-10-20 10:47:43 +02:00
Timothee Cour
4ab1bd7e33 workaround https://github.com/citycide/glob/issues/49 glob broken (#15647) 2020-10-19 20:06:06 -07:00
Clyybber
f20e485827 Fix commentOffsetA for doc comments (#15643) 2020-10-20 01:19:49 +02:00
Clyybber
0f4b1ed270 Fix #15639 (#15640) 2020-10-19 22:39:50 +02:00
n5m
436e1fa5b1 fix #15631 (#15632)
* trigger valgrind failure on memory leak

* remove non-malloc tests

* remove ORC test

is redundant because we already have an ARC test

* only run valgrind tests on 64-bit Linux

* disable freebsd and openbsd

* Remove tleak_refc

As to not test implementation details (or bug)

* Fix test failures by removing redundant test

Since this tests/shoulfail/tvalgrind.nim was specified here to fail this test
itself fails since it will be skipped on non-linux CI

* Remove test, reason detailed in the previous commit

* Remove redundant disables

* Revert removing disables

* Add and use valgrind: leaks

* Fix

Co-authored-by: Clyybber <darkmine956@gmail.com>
Co-authored-by: n5m
2020-10-19 22:25:43 +02:00
cooldome
833035bacd arc allocation method aligned (#15588)
* progress

* fix typo
2020-10-19 14:50:06 +02:00
Timothee Cour
67afe72e9c contributing docs: add instructions for economically restarting failed CI jobs, debugging failed CI (#15576)
* contributing docs: add instructions for economically restarting failed CI jobs, debugging failed CI

* fixup
2020-10-19 14:49:06 +02:00
Timothee Cour
7526472a6e add a section on naming new stdlib module names (#15590) 2020-10-19 14:14:43 +02:00
cooldome
04f8fcfbd0 Tables, use sink val arguments more actively (#15625) 2020-10-19 14:13:26 +02:00
Danil Yarantsev
d22ab0fb96 Add tests to #15363 (#15633) 2020-10-19 13:16:56 +02:00
Danil Yarantsev
b4c3bcd037 Merge pull request #15635 from nim-lang/discord-blue
Change discord's badge color to be consistent with other badges
2020-10-19 14:03:20 +03:00
Danil Yarantsev
528069a967 Change discord's badge color to be consistent with other badges 2020-10-19 14:02:51 +03:00
Danil Yarantsev
9c34d6ee09 Add discord to the README (#15634) 2020-10-19 12:58:33 +02:00
n5m
78cbb52fa0 add tests for #15584 (#15619)
* add test for #15584

* Rename userlocks.nim to trlocks.nim

* add bug comment

* improve cmd

* reference bugfix, not bug

* add test that runs rlocks

* disallow joining

joining with other test cases (e.g., a test case that invokes `RLock.initRLock()`) may cause this test to compile, when the goal is to test if these lines can be compiled in isolation
2020-10-18 12:57:13 -04:00
Euan
ba2a477e64 Fix FreeBSD build failures (#15613)
The FreeBSD is/was failing, due to a conflict with installing Git.

Git is guaranteed to be in the base image, so this removes that package from the package list. It also reverts back to the built-in `packages` tag since it's officially supported.

Should the build fail in the future, the best place to go is the #sr.ht channel on freenode.
2020-10-18 05:26:36 -04:00
n5m
b16b2eb06f document that Nim executable must be included (#15611) 2020-10-17 20:30:12 +02:00
Clyybber
66cd9c2e57 Fix #15599 (#15601)
* Fix #15599

* Add test
2020-10-16 18:03:01 +02:00
narimiran
6b8baab536 cosmetic fixes for the 1.4 changelog [ci skip] 2020-10-16 13:18:31 +02:00
narimiran
091ec916fd add bufixes for 1.4 in its changelog 2020-10-16 08:13:23 +02:00
narimiran
f8890a0804 change NimVersion to 1.5.1 2020-10-16 07:36:09 +02:00
narimiran
6349001879 create a changelog for 1.4.0 2020-10-16 07:16:46 +02:00
n5m
b50a0ee95c fix option formatting (#15591) 2020-10-15 16:43:20 -07:00
Andreas Rumpf
a43202ea57 fixes #15560 (#15587) 2020-10-15 15:49:00 +02:00