summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-0814-23/+113
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766)Timothee Cour2019-01-089-31/+129
| | | | | | | | | | | | | | | | | | | * fixes #8794 : `Error: undeclared field: 'foo'` should show type (+ where type is defined) (hard to guess in generic code) * fixes #9270: `--listFullPaths` not honored by `declared in foo.nim` messages * fixes #9767: VM stacktrace doesn't honor --excessiveStackTrace:on * fixes #9768: VM stacktrace misses column info, can lead to ambiguous or harder to read stacktraces * refactors some col+1 code to col + ColOffset (self documents code) * make getProcHeader show declared info location also for types and all routine kinds (including macros,templates) instead of just (rather arbitrarily) for iterator,proc,func,method * --listFullPaths now is honored in more places * fix typo system/except.nim => lib/system/excpt.nim * remove substr(foo, 0) hack in compiler/vm.nim which seems old and not applicable anymore
* {.deprecated: msg.} now works for vars and lets (#10234)Neelesh Chandola2019-01-084-10/+16
|
* update issue templates [ci skip]narimiran2019-01-082-16/+25
|
* [CI] fixes #10041 move bulk of `travis` and `appveyor` logic to koch.nim ↵Timothee Cour2019-01-084-38/+53
| | | | (#10183)
* os.execShellCmd: fixes #10231 (#10232)alaviss2019-01-082-1/+16
| | | | | | | Darwin has long deprecated the wait union, but their macros still assume it unless you define _POSIX_C_SOURCE. This trips up C++ compilers. This commit duplicates the behavior of WEXITSTATUS when _POSIX_C_SOURCE is defined.
* [nimpretty] fix #10211; fix #10199 (#10212)Timothee Cour2019-01-082-8/+18
| | | | | | * [nimpretty] fix #10211; fix #10199 * address comments * un-document --backup and set its default to false
* Don't use deprecated pragma syntax (#10187)Clyybber2019-01-081-1/+1
| | | | | | * Don't use deprecated pragma syntax * Remove pure pragma, since it's a noop now
* Better LibSSL search order. (#10230)treeform2019-01-081-1/+1
|
* system/strmantle: avoid leaking docs to system.nim [ci skip] (#10233)alaviss2019-01-081-1/+1
| | | thanks @timotheecour for spotting this
* Fix for sizeof bitsize combination (#10227)Arne Döring2019-01-072-3/+20
| | | | | | | | * fix #10082 * added test
* Show error when trying to export individual enum field (#10109)Neelesh Chandola2019-01-071-1/+3
|
* add custom pragma support for var and let symbols (#9582)jcosborn2019-01-079-20/+77
| | | | | | * add custom pragma support for var and let symbols * updated changelog for custom pragmas on var and let symbols * add oldast switch for backwards compatibility
* os.execShellCmd: use WEXITSTATUS to retrieve exit code (#10222)alaviss2019-01-071-1/+1
| | | | | | | According to POSIX, system() shall returns the termination status in the format specified by waitpid(), which means WEXITSTATUS should be used to retrieve the exit code portably. This fixes execShellCmd on Haiku.
* Fix #10073 (#10218)zah2019-01-072-1/+24
|
* remove deprecated modules (#10215)Miran2019-01-0719-1194/+5
| | | | | | | | | | | | | | | | | | * removed from `compiler`: * lists (deprecated 2 years ago) * removed from `lib` (all deprecated 3 years ago): * ssl * matchers * httpserver * removed from `lib/deprecated`: * unsigned * actors (and three accompanying tests) * parseurl * moved to `lib/deprecated`: * securehash (the reason for not directly removing - it was deprecated (only) one year ago)
* Added examples to strtabs module (#10160)Ico Doornekamp2019-01-071-0/+31
|
* Fix defer not not-working at top level (#10191)Neelesh Chandola2019-01-074-13/+4
|
* Add changelog for the isNil JavaScript change (#10184)Alexander Ivanov2019-01-071-0/+2
| | | Forgot to add an item, breaking change
* Fix ODBC SQL Error string decoding (#10207) [backport]Leonardo Cecchi2019-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | ODBC Errors were presented to the users as a sequence of characters. I.e.: >test_oracle.exe Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...] test_oracle.nim(15) test_oracle test_oracle.nim(8) test_oracle db_odbc.nim(534) open db_odbc.nim(168) dbError Error: unhandled exception: ODBC Error [DbError] This patch fix the string decoding, creating a real string: >test_oracle.exe Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener test_oracle.nim(15) test_oracle test_oracle.nim(8) test_oracle db_odbc.nim(534) open db_odbc.nim(168) dbError Error: unhandled exception: ODBC Error [DbError]
* Remove totally unneeded import of hashes. (#10221)c-blake2019-01-073-3/+3
|
* Fix getAddrInfo, add IPPROTO_ICMPV6 Closes #10198Federico Ceratto2019-01-065-2/+44
|
* Minor Fixes to Manual Wording (#10214)Tristano Ajmone2019-01-061-3/+3
|
* testament megatest: we can now tell which test failed; helps debugging and ↵Timothee Cour2019-01-053-20/+50
| | | | | | | | prevents certain bugs, plus other fixes (#10089) * [testament] --verboseMegatest flag to make megatest compilation verbose * replace "tests" by testsDir * megatest's nimcache is now in same dir as other tests to avoid clobbering (eg when running tests from multiple Nim repos)
* * move up runnableExamples definition so can be used more in system.nim (#10196)Timothee Cour2019-01-051-28/+30
| | | | * document that toInt, toBiggestInt round towards 0 and add runnableExamples * minor doc fixes
* Fix the tuple returned by `os.splitFile()` in documentation (#10197)Hugo Locurcio2019-01-051-1/+1
|
* fix system.nim documentations (#10168)alaviss2019-01-042-4/+4
| | | | | * system: fix nimGC_getStackBottom doc * system/helpers: avoid leaking docs to system
* expandFilename on windows is now consistent with other platforms (#10154)Neelesh Chandola2019-01-042-52/+49
|
* Guard against null exception (#10162)rec2019-01-042-1/+4
|
* Fix Typo in Compiler Guide (#10189)Tristano Ajmone2019-01-041-1/+1
| | | Change 'ableit' to 'albeit'.
* fix bug in doAssertRaises when exception==Exception (#10172)Timothee Cour2019-01-042-11/+31
| | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises
* fixes #10188Araq2019-01-041-0/+1
|
* [backport] improve unicode docs, fixes #2353 (#10174)Miran2019-01-041-85/+122
| | | | | | | | * as instructed in #2353, provides a short description why there are no specialized procs for seq[Rune] * adds several examples to better explain what some functions do * small fixes (double backticks, add missing dots, etc.) * use `rune` instead of "unicode characer"
* Undocument --genmapping (#10175)Neelesh Chandola2019-01-041-2/+0
|
* runnableExamples: compile and test them as a single file; fixes #9300Araq2019-01-041-2/+10
|
* [backport] correctly document `toInt`, fixes #2764 [ci skip] (#10176)Miran2019-01-041-4/+6
|
* koch.nim: speed up tests for the 'testinstall' target for the nightly builds ↵Araq2019-01-031-2/+1
| | | | (these tests are also covered by the other CIs)
* exportc is now not allowed for type aliases (#9979)Neelesh Chandola2019-01-022-0/+14
|
* Add {.noReturn.} to system.raiseAssert (#10161)Oscar Nihlgård2019-01-021-1/+1
|
* [cleanup] remove dead code compiler.options.mergeConfigs (#10165)Timothee Cour2019-01-021-78/+0
|
* Add link to tutorial part III to docs.rst (#10157) [ci skip]Ico Doornekamp2019-01-011-0/+3
|
* Show field not initialized warning only when `notnil` used (#10155)Neelesh Chandola2019-01-011-1/+1
|
* Deprecate gc v2 (#10151)Neelesh Chandola2019-01-0112-21/+21
| | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages
* Add Example code to Documentation comment of wordWrap proc. (#10146)jiro2019-01-011-0/+5
|
* fixes #10148 (#10149)cooldome2018-12-312-13/+47
| | | | | * fixes #10148 * fix a typo
* fix off by 1 error in `col` shown by toFileLineCol (#10138)Timothee Cour2018-12-314-4/+4
| | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures
* Resolve things raised in https://github.com/nim-lang/Nim/issues/10081 ? (#10084)c-blake2018-12-313-30/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Resolve things raised in https://github.com/nim-lang/Nim/issues/10081 ? CDF is a standard ident in all things related to random numbers/sampling, and full words "cumulativeDistributionFunction" would be silly long, in this case, IMO. We use lowercase `cdf` to make it not look like a type, remove all looping from `sample` letting callers do it. Besides just side-stepping any `sampleSize` name choice, callers may want to filter out samples anyway which this makes slightly simpler. Also add two variants of `cumsum`, value return and in-place update distinguished by the var-ness of the first argument. Add tests for `int` and `float` for both `cumsum` and the new `sample`. (The sample tests exercise the value return mode of `cumsum`.) Functionality pre-this-PR `sample(a, w)` is now the almost as simple `for i in 0..<n: sample(a, w.cumsum)`, but this new code factoring is almost surely better. The statistical tests pass, as before. * Address Araq comment in https://github.com/nim-lang/Nim/pull/10084 We can always add in some `var` version later if desired to save memory, but this change now at least firms up the `sample` interface. * Rename `cumsum` -> `cumsummed` to honor NEP1 style. Re-instate `cumsum` as the in-place transformation. Test both in `tests/stdlib/tmath.nim` and use `cumsummed` in the example code for sample since that's a simpler example. * Fix requests from https://github.com/nim-lang/Nim/pull/10084 : example in lib/pure/math.nim and comment whitespace in lib/pure/random.nim
* Check there are no side effects before optimizing away compile time ↵deech2018-12-313-8/+56
| | | | expressions. (#9934)
* Before showing deprecated warning, check whether enum field was marked ↵Neelesh Chandola2018-12-301-2/+2
| | | | deprecated or the whole enum type (#10135)
* help Nim optimize intsets.initIntSetAndreas Rumpf2018-12-301-8/+7
|