Commit Graph

14345 Commits

Author SHA1 Message Date
Andreas Rumpf
cd65e5328d GC: avoid pathological behaviour; fixes #10040 [backport] (#10052) 2018-12-20 08:20:32 +01:00
Timothee Cour
6cbe1d48d7 [json] document fact that key ordering is preserved (#10020) 2018-12-20 01:13:25 +01:00
Timothee Cour
fc7df3283c fix test failure 2018-12-19 16:11:23 -08:00
Timothee Cour
8fbe3b3b7d add to changelog 2018-12-19 16:11:23 -08:00
Timothee Cour
656770402c fix #8255 numerous issues with splitFile 2018-12-19 16:11:23 -08:00
Araq
c129107b32 make nimrtl.dll compile for the C++ target 2018-12-19 18:06:28 +01:00
Araq
f7d0e5c1d1 strutils: minor code cleanup 2018-12-19 18:06:13 +01:00
Neelesh Chandola
730b1b2b87 proc does not take untyped/typed as argument (#9981)
* proc does not take untyped/typed as argument

* Add TODO
2018-12-19 16:18:57 +01:00
Timothee Cour
37cb5e8f53 Update osproc.nim (#10043) 2018-12-19 11:25:50 +01:00
Andreas Rumpf
3300c8a500 much simpler implementation of constant tuple declarations 2018-12-19 11:11:33 +01:00
Neelesh Chandola
8e90ed0618 Const tuple unpacking (#9964)
* tuple unpacking is now supported for consts

* Move nkConstTuple to the end of TNodeKind

* Add nnkConstTuple in macros.nim

* Fix Formatting
2018-12-19 10:52:41 +01:00
Andreas Rumpf
3f917c8d91 Merge pull request #9959 from nc-x/better-error-message
Better error messages in enums which don't have ordinal types
2018-12-19 10:03:55 +01:00
Andreas Rumpf
72500420d3 Fixes #3060 and adds error checking for invalid else branches in object variants (#9957)
* Fix semRecordCase

* Fix ftpclient.nim

* Check for ordinal type

* Check tyRange for exhaustiveness
2018-12-19 10:03:22 +01:00
Neelesh Chandola
48437d0a84 Give better error message when profiler and memProfiler used at same time (#9948)
* Give better error message when profiler and memProfiler used at same time

* Move to profiler.nim
2018-12-19 10:02:20 +01:00
Neelesh Chandola
642ce799ec Add support for clang-cl (#9977) 2018-12-19 09:35:25 +01:00
Timothee Cour
2d404a5a24 undo last commit (meant to send a PR instead) 2018-12-18 22:42:19 -08:00
Timothee Cour
7b9ba71b47 Update osproc.nim 2018-12-18 22:39:08 -08:00
Yuriy Glukhov
264627a657 Add nimsuggest to installDirs (#10035) 2018-12-18 22:31:01 +01:00
Neelesh Chandola
2acefee044 Nimsuggest now shows gotodef for y in from x import y (#10023) 2018-12-18 19:51:14 +01:00
alaviss
8f4befe368 Testament fixes (#10034)
* testament/htmlgen: add support for disabled and joined tests

* testament/tester: respect --targets
2018-12-18 19:49:43 +01:00
Timothee Cour
25d3539da7 [os] fix #10017 regression, fix #10025 regression (#10018)
* [os] fix #10017 regression
* [os] fix #10025 regression
2018-12-18 12:43:25 +01:00
Andreas Rumpf
d7d17d5ab0 see what breaks with a global config.nims (#10016)
* see what breaks with a global config.nims

* make tests green with a global config.nims file
2018-12-18 09:29:15 +01:00
Timothee Cour
dd5812546f [pathutils] add AnyPath; add $; lift arbitrary API restrictions (#10021) 2018-12-18 09:28:26 +01:00
Timothee Cour
e1098fa01a document NIM_EXTERNC for emit (#10022) 2018-12-18 09:20:09 +01:00
Timothee Cour
c4e3c4ca2d add getCurrentCompilerExe to vmops (eg allows to get nim compiler at CT); add tests for vmops (#9925) 2018-12-18 09:07:12 +01:00
Araq
09b9a54418 make tests green with a global config.nims file 2018-12-17 23:03:54 +01:00
Andreas Rumpf
bb1160b73c Merge pull request #10029 from LambdaInsight/more-logging-doc
Adding more documentation to logging.nim
2018-12-17 20:56:14 +01:00
Istvan
915a9ec082 Adding more documentation to logging.nim
Just minor addition to the documentation with the use of operators
2018-12-17 19:29:08 +01:00
Araq
86c3ac6a61 see what breaks with a global config.nims 2018-12-16 20:53:50 +01:00
Andreas Rumpf
0409f2348e Merge pull request #10012 from nc-x/header-path
Add project directory to include path
2018-12-16 20:51:41 +01:00
Araq
9526009e0e fixes #9120 2018-12-16 20:34:07 +01:00
Araq
d91d1865b8 fixes #9420 2018-12-16 20:11:04 +01:00
Araq
d66eb04ce9 fixes #8991, fixes #4446 2018-12-16 19:22:49 +01:00
Araq
7ec77684e9 fixes #9153 2018-12-16 19:17:09 +01:00
Araq
bae662fa8a restore the old .nims processing behaviour; fixes #9989; fixes #9995 2018-12-16 18:44:29 +01:00
Araq
6e5c2af203 fixes #9991 2018-12-16 18:01:59 +01:00
Neelesh Chandola
e70c6af188 escape the include path 2018-12-16 14:42:57 +05:30
Andreas Rumpf
20d9dd1ac6 Merge pull request #10003 from nc-x/fix-enum-internal-error
Fix internal error when casting to invalid enum value
2018-12-16 09:15:56 +01:00
Andreas Rumpf
4222b551ed Merge pull request #10006 from recloser/issue10005
Fixes #10005
2018-12-16 09:15:29 +01:00
Andreas Rumpf
442e12ebb1 testament: individual tests with more than a subdir in their path (#9971)
e.g.: PATH="./bin:$PATH" ./koch tests r stdlib/nre/captures.nim
2018-12-16 09:12:16 +01:00
Neelesh Chandola
303ef57b15 Fix clang not producing debug info in cpp mode (#9976)
* Fix clang on windows to produce debug info

* Fix clang not producing debug info in cpp mode
2018-12-16 09:08:31 +01:00
Neelesh Chandola
c99407b07a Add project directory to include path 2018-12-16 11:39:29 +05:30
recloser
19f5835d5c Fixes #10005 2018-12-15 22:57:18 +01:00
Neelesh Chandola
c673607d36 Fix internal error when casting to invalid enum value 2018-12-15 22:19:39 +05:30
Andreas Rumpf
b53327c92a fixes #9994 2018-12-15 14:30:21 +01:00
alaviss
50193b95ea fix experimental/diff documentation rendering (#9983)
also remove references to non-existant parameters
2018-12-15 14:10:44 +01:00
Andreas Rumpf
a87be40339 fixes #9985 2018-12-15 14:09:06 +01:00
Andreas Rumpf
39ae55e6e4 fixes #9995 2018-12-15 14:01:18 +01:00
Andreas Rumpf
e3a668a33b --gc:destructors: baby steps 2018-12-15 13:54:41 +01:00
Andreas Rumpf
446f911a17 better error message for 'proc' that is not intended to be used as a typeclass 2018-12-15 09:09:46 +01:00