22886 Commits

Author SHA1 Message Date
Neelesh Chandola
f233b2fe8b Merge remote-tracking branch 'upstream/devel' into better-error-message 2018-12-14 09:34:46 +05:30
Ștefan Talpalaru
a96928968e testament: individual tests with more than a subdir in their path
e.g.: PATH="./bin:$PATH" ./koch tests r stdlib/nre/captures.nim
2018-12-13 22:06:03 +01:00
Araq
5b39c7aca9 fixes joinPath regressions 2018-12-13 16:19:00 +01:00
Araq
5d34dec97d fixes testament regression due to changed '/' operator 2018-12-13 16:19:00 +01:00
Neelesh Chandola
6bdf7fdbce enum types can now be assigned values from enum with holes (#9958)
* Fixes https://github.com/nim-lang/Nim/issues/9952

* Remove workaround from vccexe
2018-12-13 12:14:25 +01:00
Araq
9cc4a57768 os.nim: big refactoring, use the new pathnorm that was extracted by compiler/pathutils.nim; added os.relativePath 2018-12-13 12:05:50 +01:00
Alexander Ivanov
467f53512f Show lineinfo of for in yield (#9779) 2018-12-13 10:38:32 +01:00
Neelesh Chandola
31cff752e0 Better error messages in enums which don't have ordinal types 2018-12-13 15:07:36 +05:30
Neelesh Chandola
e6c510bbbd Check tyRange for exhaustiveness 2018-12-13 14:40:22 +05:30
Neelesh Chandola
fa4644006a Check for ordinal type 2018-12-13 14:12:22 +05:30
Neelesh Chandola
b2411db541 Merge remote-tracking branch 'upstream/devel' into record-case 2018-12-13 13:59:46 +05:30
Neelesh Chandola
a3c4791e9c Give error when case has an else branch even though all cases are already covered (#9930)
* Give error when case has an else branch even though all cases are already covered.
* Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError
* Remove unnecessary else in unittest.nim
* Fix sockets.nim
2018-12-13 09:08:10 +01:00
Neelesh Chandola
bb85869237 Undefine some symbols and globalOptions when processing nimscript (#9945) [backport]
* Undefine some symbols when processing nimscript
* Undefine taintMode when processing nimscript
* Reload .cfg configuration
2018-12-13 09:05:24 +01:00
Andreas Rumpf
8dfe7c0963 Merge pull request #9950 from nc-x/fix-nimsuggest-build
Fix nimsuggest build with clang on windows
2018-12-13 09:02:55 +01:00
Andreas Rumpf
52c7653556 Merge pull request #9956 from nc-x/fix-vccexe
Fix vccexe compilation
2018-12-13 09:02:24 +01:00
Neelesh Chandola
abcf4d8b5d Fix ftpclient.nim 2018-12-13 12:45:47 +05:30
Neelesh Chandola
9ebe52cdeb Fix vccexe compilation 2018-12-13 12:40:52 +05:30
Neelesh Chandola
1f1d7b1088 Fix semRecordCase 2018-12-13 12:11:56 +05:30
Dominik Picheta
76c214a2e9 Merge pull request #9915 from zevv/asyncnet-unix
Added basic AF_UNIX support to asyncnet.
2018-12-12 23:06:08 +00:00
Neelesh Chandola
b245b80e72 Fix nimsuggest build with clang on windows 2018-12-13 02:16:29 +05:30
Andreas Rumpf
e4ae7a8929 Merge pull request #8748 from LemonBoy/when-in-objects
Pervasive replacement of nkRecWhen in generic types
2018-12-12 18:19:52 +01:00
Araq
cc97453808 Merge branch 'couven92-devel' into devel 2018-12-12 18:17:29 +01:00
Araq
0ab1229c69 resolve merge conflicts 2018-12-12 18:16:53 +01:00
Araq
ac8274c60f fix merge conflict 2018-12-12 17:51:33 +01:00
Araq
eb8383cb28 move diff.nim to experimental 2018-12-12 17:48:30 +01:00
Andreas Rumpf
9f453592a4 Merge pull request #9552 from recloser/strmisc-doc
Add runnableExamples for strmisc procs and a better doc for expandTabs
2018-12-12 16:32:09 +01:00
Andreas Rumpf
9d81586879 Merge pull request #9879 from data-man/sorted_deduplicate
Add the parameter isSorted for the sequtils.deduplicate
2018-12-12 16:30:00 +01:00
Andreas Rumpf
a1bf9fd2b6 Merge branch 'devel' into sorted_deduplicate 2018-12-12 16:29:46 +01:00
Araq
070bcf4cea added diff.nim to the stdlib 2018-12-12 16:27:37 +01:00
Araq
afa2ca6a0b Merge branch 'krux02-std-diff' into devel 2018-12-12 16:17:56 +01:00
Araq
f080a15da1 diff.nim: massive code cleanups 2018-12-12 16:17:35 +01:00
Araq
9ce21bb8de Merge branch 'std-diff' of https://github.com/krux02/Nim into krux02-std-diff 2018-12-12 15:43:03 +01:00
Araq
f828e5da49 clean up the implementation of the new memfiles.resize 2018-12-12 12:10:17 +01:00
Araq
77a884f178 export every field of MemFile for more low level trickery; refs #9922 2018-12-12 12:03:57 +01:00
Araq
cc8ba356f9 advopt.txt: minor layouting change 2018-12-12 12:00:42 +01:00
Andreas Rumpf
cddc4be209 Merge pull request #9922 from c-blake/devel
Let handles be seen outside of `memfiles` module so that "updating"
2018-12-12 12:00:12 +01:00
Andreas Rumpf
d9ae9201c4 Merge pull request #9937 from cooldome/pragmablock_custom_pragma
Language feature: implement custom pragmas in pragma blocks
2018-12-12 10:15:25 +01:00
Andreas Rumpf
3a70d18b84 Merge pull request #9755 from flaviut/nre-missing-match
Fix for #9243, nre returns "" instead of nil for missing matches
2018-12-12 06:35:15 +01:00
Andrii Riabushenko
1d16676dd6 add test 2018-12-11 23:53:59 +00:00
Andrii Riabushenko
9becb41e04 Add changelog item 2018-12-11 23:37:48 +00:00
Andrii Riabushenko
df0f0f2858 custom pragmas in pragma blocks 2018-12-11 23:35:46 +00:00
Flaviu Tamas
c0a47f7e22 Rework nil/option for nre in light of ""==nil
Fixes #9243
2018-12-11 22:15:57 +00:00
Flaviu Tamas
22b3e9df27 Revert 7f49364fd0 for nre 2018-12-11 22:15:02 +00:00
Andreas Rumpf
c682671fea minor cleanups 2018-12-11 23:07:36 +01:00
Andreas Rumpf
5dc83d0c8f cleanup of excpt.nim 2018-12-11 23:04:49 +01:00
Andreas Rumpf
239846a528 Merge pull request #9805 from pacien/181126-list-append
add SinglyLinkedList.append procs
2018-12-11 22:18:40 +01:00
Andreas Rumpf
c58f430e2e Merge pull request #9916 from timotheecour/pr_ref_9906_errorMax
refs #9906; --errorMax:10 allows stopping after 10 errors (more robust than nim check)
2018-12-11 22:14:08 +01:00
Andreas Rumpf
e3d91a5b74 Merge pull request #9923 from stefantalpalaru/calldepth
replace misleading "stack overflow" message when reaching Nim's call depth limit
2018-12-11 22:07:44 +01:00
Andreas Rumpf
3695819018 cleanup main.nim's code style 2018-12-11 22:06:15 +01:00
Andreas Rumpf
5ffa9a8be6 destructors: defensive programming against wrong generated destructor for string/seq 2018-12-11 22:02:18 +01:00