Commit Graph

13141 Commits

Author SHA1 Message Date
Andreas Rumpf
da41fc1801 put the new for loop macros under an experimental switch named 'forLoopMacros' 2018-08-15 17:45:57 +02:00
Andreas Rumpf
27e1fbe7db implement the --nilseqs switch properly 2018-08-15 16:56:32 +02:00
Andreas Rumpf
0da91aa744 changes how the now illegal 'string == nil' comparison is detected 2018-08-15 16:31:56 +02:00
Andreas Rumpf
94684488d6 make more tests green 2018-08-14 21:15:03 +02:00
Araq
18859cbaa1 make nimweb compile again 2018-08-14 01:36:02 +02:00
Araq
83c89197f3 renames threadpool.await to blockUntil; refs #7853 2018-08-14 01:28:04 +02:00
Araq
741f95e2d6 make dochack.nim compile again 2018-08-14 00:09:46 +02:00
Araq
f91a181f58 make tests green again 2018-08-13 23:16:03 +02:00
Araq
a0cde8cee6 Merge branch 'devel' into araq-misc 2018-08-13 20:16:18 +02:00
Araq
f960523b46 document the new --nilseqs:on switch 2018-08-13 20:12:13 +02:00
Araq
99384c0234 make NimInAction tests green 2018-08-13 20:12:00 +02:00
Araq
420ed0596b fixes more nil handling regressions 2018-08-13 17:27:44 +02:00
Araq
d60bb1b289 build Nimble with --nilseqs:on until Nimble is fixed 2018-08-13 16:07:23 +02:00
Araq
46204eba1f make the vccexe helper tool compile again 2018-08-13 15:42:20 +02:00
cooldome
aa1cdebdc2 Converters to take into account constraints. Fixes #7520 (#8593) 2018-08-13 15:02:20 +02:00
Andreas Rumpf
975114e114 make more tests green 2018-08-13 13:02:52 +02:00
Andreas Rumpf
96e0b56a55 make generic tests green again 2018-08-13 12:54:02 +02:00
Andreas Rumpf
9f31096870 make JS tests green 2018-08-13 12:51:31 +02:00
Andreas Rumpf
81645deb87 testament: change how JS tests are disable for travis on OSX 2018-08-13 12:51:19 +02:00
Andreas Rumpf
7f49364fd0 make more tests green 2018-08-13 12:29:03 +02:00
Iván Montes
ee29370f60 Fixed 7478: splitLines keepEol option (#8621) 2018-08-13 11:42:50 +02:00
Andreas Rumpf
dae5450947 WIP: disallow 'nil' for strings and seqs 2018-08-13 11:41:33 +02:00
Naveen Arunachalam
e839c01f5b Clarify usage of "Test" argument in Koch (#8613)
Minor change to help people (e.g. like myself) who are starting out :)
Currently, the readme mentions the use of `./koch tests cat async`, but
the help text for koch doesn't mention it. Helptexts are modified
accordingly.
2018-08-12 22:10:06 +02:00
LemonBoy
3cb963f114 Fixes 8616 (#8617)
* Don't leave dangling forward references to types

Fixes #8616

* Add a test case for #8616
2018-08-12 20:43:30 +02:00
LemonBoy
ba7c874a7d Mysterious fix for #8550 (#8561)
Replacing the `for` body with a nkEmpty node is not the right thing to
do.
2018-08-12 20:41:48 +02:00
LemonBoy
089529c16a Preliminary check for test category folder existence (#8579)
Warn the user if nothing is executed.
2018-08-10 23:03:42 -04:00
Andreas Rumpf
32afc1a562 make tests green again 2018-08-10 17:27:30 +02:00
Andreas Rumpf
60c7a0a08f Merge branch 'araq-misc' of github.com:nim-lang/Nim into araq-misc 2018-08-10 16:51:45 +02:00
Araq
4cf1e3eb4b rename SystemError to CatchableError in order to avoid breaking Nimble and probably lots of other code 2018-08-10 15:31:53 +02:00
Andreas Rumpf
ba6601b149 fixes #8599 2018-08-10 12:09:51 +02:00
Andreas Rumpf
404de2f23e Merge branch 'devel' into araq-misc 2018-08-10 12:06:16 +02:00
Andreas Rumpf
1d78ba64b4 rework the exception hierarchy; refs #8363 2018-08-10 11:40:01 +02:00
Andreas Rumpf
28c709fa84 cleanup nimsuggest tests a bit 2018-08-10 09:37:41 +02:00
Andreas Rumpf
7e2418bd22 make nimsuggest go up in the directory tree in order to determine the main .nim file 2018-08-10 09:37:17 +02:00
Andreas Rumpf
1d63a8fe4a update the 'float' spec; refs #8589 2018-08-10 09:21:46 +02:00
Timothee Cour
43f634db8d fixes #8519; implements T.distinctBase to reverse T = distinct A (#8531) 2018-08-10 09:20:14 +02:00
Andreas Rumpf
864d24d70e change the VM's max instruction count to 3_000_000 2018-08-10 08:42:13 +02:00
Araq
265003df1a deprecated regionized pointers 2018-08-10 01:20:14 +02:00
Araq
b4e5c9d075 deprecate the .this pragma 2018-08-09 20:31:40 +02:00
Timothee Cour
730ce53b71 save a backup of csources-built nim to bin/nim_csources to avoid recompiling from csources (#8582) 2018-08-09 10:56:05 +02:00
alaviss
a2c5ffba0c Uses XDG_CACHE_HOME if available (#8585)
* compiler/options: use XDG_CACHE_HOME if set

* doc/nimc: update documentation
2018-08-09 10:50:36 +02:00
Grant
98225ca207 Update channels.nim (#8583)
Fix typo in channels.nim
2018-08-09 09:40:21 +02:00
Araq
babd31360a fixes more nil string bugs 2018-08-08 18:22:48 +02:00
Mamy Ratsimbazafy
bccaa36aba Tests for v1 closed generics/static issues (#8572)
* Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed.

* Add test for closed https://github.com/nim-lang/Nim/issues/6137

* Add test for https://github.com/nim-lang/Nim/issues/7141
2018-08-08 17:49:33 +02:00
Timothee Cour
506418ef53 add build_all.sh to allow 1-liner to build development version of the compiler (#8546) 2018-08-08 16:47:17 +02:00
Araq
b07d1f1dc3 make async tests green for Linux 2018-08-08 16:18:30 +02:00
Araq
00ef2d6693 make test green again 2018-08-08 15:43:05 +02:00
LemonBoy
32b62097a2 Fix regression for mapIt (#8567)
Don't try to be too smart and limit the use of `evalOnce` where strictly
needed as not every value can be assigned with a `let`.

Fixes #8566
2018-08-08 15:34:21 +02:00
Dominik Picheta
af4f4425e2 Merge pull request #8559 from ehmry/fix_8109
AsyncHttpClient: return from requests before body completion
2018-08-08 12:27:20 +01:00
Araq
640b30a47f codegen improvement: map the empty string to 'nil' since it's now allowed to do that 2018-08-08 12:06:00 +02:00