Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [error messages, stacktraces] fix #8794 #9270 #9767 #9768 (#9766) | Timothee Cour | 2019-01-08 | 6 | -31/+58 |
| | | | | | | | | | | | | | | | | | | | * 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 Chandola | 2019-01-08 | 2 | -3/+7 |
| | |||||
* | Don't use deprecated pragma syntax (#10187) | Clyybber | 2019-01-08 | 1 | -1/+1 |
| | | | | | | * Don't use deprecated pragma syntax * Remove pure pragma, since it's a noop now | ||||
* | Fix for sizeof bitsize combination (#10227) | Arne Döring | 2019-01-07 | 1 | -3/+8 |
| | | | | | | | | * fix #10082 * added test | ||||
* | Show error when trying to export individual enum field (#10109) | Neelesh Chandola | 2019-01-07 | 1 | -1/+3 |
| | |||||
* | add custom pragma support for var and let symbols (#9582) | jcosborn | 2019-01-07 | 5 | -9/+34 |
| | | | | | | * 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 | ||||
* | Fix #10073 (#10218) | zah | 2019-01-07 | 1 | -1/+8 |
| | |||||
* | remove deprecated modules (#10215) | Miran | 2019-01-07 | 1 | -28/+0 |
| | | | | | | | | | | | | | | | | | | * 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) | ||||
* | Fix defer not not-working at top level (#10191) | Neelesh Chandola | 2019-01-07 | 2 | -2/+2 |
| | |||||
* | expandFilename on windows is now consistent with other platforms (#10154) | Neelesh Chandola | 2019-01-04 | 1 | -10/+1 |
| | |||||
* | fixes #10188 | Araq | 2019-01-04 | 1 | -0/+1 |
| | |||||
* | runnableExamples: compile and test them as a single file; fixes #9300 | Araq | 2019-01-04 | 1 | -2/+10 |
| | |||||
* | exportc is now not allowed for type aliases (#9979) | Neelesh Chandola | 2019-01-02 | 1 | -0/+2 |
| | |||||
* | [cleanup] remove dead code compiler.options.mergeConfigs (#10165) | Timothee Cour | 2019-01-02 | 1 | -78/+0 |
| | |||||
* | Show field not initialized warning only when `notnil` used (#10155) | Neelesh Chandola | 2019-01-01 | 1 | -1/+1 |
| | |||||
* | Deprecate gc v2 (#10151) | Neelesh Chandola | 2019-01-01 | 11 | -20/+20 |
| | | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages | ||||
* | fixes #10148 (#10149) | cooldome | 2018-12-31 | 1 | -13/+18 |
| | | | | | * fixes #10148 * fix a typo | ||||
* | fix off by 1 error in `col` shown by toFileLineCol (#10138) | Timothee Cour | 2018-12-31 | 1 | -1/+1 |
| | | | | | * fix off by 1 error in `col` shown by toFileLineCol * fix test failures | ||||
* | Check there are no side effects before optimizing away compile time ↵ | deech | 2018-12-31 | 2 | -8/+14 |
| | | | | expressions. (#9934) | ||||
* | Before showing deprecated warning, check whether enum field was marked ↵ | Neelesh Chandola | 2018-12-30 | 1 | -2/+2 |
| | | | | deprecated or the whole enum type (#10135) | ||||
* | Dead code elimination for entire modules and their init procs if empty (#10032) | cooldome | 2018-12-30 | 3 | -92/+166 |
| | | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom | ||||
* | Show deprecation warning for fields of a deprecated enum (#10112) | Neelesh Chandola | 2018-12-30 | 1 | -3/+8 |
| | | | | | | * Show deprecation warning for fields of a deprecated enum * Add test | ||||
* | Deprecated pragma is now supported on enum fields (#10113) | Neelesh Chandola | 2018-12-30 | 3 | -12/+31 |
| | | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code | ||||
* | fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 ↵ | Timothee Cour | 2018-12-30 | 1 | -2/+3 |
| | | | | | | | (#10131) * fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84 * add test | ||||
* | Support undefined in isNil (#9960) | Alexander Ivanov | 2018-12-30 | 1 | -3/+4 |
| | |||||
* | fixes #10082 | Andreas Rumpf | 2018-12-30 | 1 | -25/+11 |
| | |||||
* | {.push raises: [].} is now ignored for vars/lets/consts (#10026) | Neelesh Chandola | 2018-12-30 | 1 | -6/+13 |
| | |||||
* | nim dump: add nimcache entry (#10122) | Timothee Cour | 2018-12-30 | 1 | -0/+1 |
| | |||||
* | `nim c` now allows: when defined(c) (#10130) | Timothee Cour | 2018-12-30 | 1 | -0/+1 |
| | |||||
* | revives: Move typetraits.`$` to system. Fixes #5827 (#10071) | Timothee Cour | 2018-12-30 | 1 | -1/+1 |
| | | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments | ||||
* | fixes #10101 (#10103) | Timothee Cour | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | Pragma syntax is now consistent (#9993) | Neelesh Chandola | 2018-12-27 | 1 | -3/+34 |
| | | | | | | | | | | * Give deprecation warning when type pragmas do not follow the type name * pragma before generic parameter list in type definition is now deprecated * Update changelog * Fix bug where deprecated warning was being shown even though no generic param list was present * Fix bug * Use errGenerated * Best attempt at writing the grammar | ||||
* | Fix const tuple unpacking not working for variables > 2 (#10099) | Neelesh Chandola | 2018-12-27 | 1 | -1/+1 |
| | |||||
* | fixes nim-lang/nimsuggest#76 (#10093) | alaviss | 2018-12-25 | 1 | -1/+11 |
| | | | | | | | | * nimsuggest: prevent out-of-bound access * fixes nim-lang/nimsuggest#76 * undo tester changes | ||||
* | fixes #10024 | Araq | 2018-12-22 | 1 | -1/+1 |
| | |||||
* | fixes #10033 [backport] | Araq | 2018-12-22 | 1 | -2/+2 |
| | |||||
* | C++ tests: make DLL test green | Araq | 2018-12-21 | 1 | -1/+7 |
| | |||||
* | C++: make async tests green on Windows | Araq | 2018-12-21 | 1 | -5/+5 |
| | |||||
* | fix #9933 (#10067) | Timothee Cour | 2018-12-21 | 1 | -0/+2 |
| | |||||
* | fixes #10058 [backport] | Araq | 2018-12-21 | 1 | -2/+3 |
| | |||||
* | use anon structs and unions for a much better debug experience (#10055) | Andreas Rumpf | 2018-12-20 | 1 | -16/+9 |
| | |||||
* | Make copies for params which are captured in closures. Fixes #7048 (#10050) | rec | 2018-12-20 | 1 | -1/+19 |
| | | | | | * Copy params which are captured in closures. Fixes #7048 * Forgot to emit a newline; minor adjustments to the test | ||||
* | make nimrtl.dll compile for the C++ target | Araq | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | proc does not take untyped/typed as argument (#9981) | Neelesh Chandola | 2018-12-19 | 1 | -0/+5 |
| | | | | | | * proc does not take untyped/typed as argument * Add TODO | ||||
* | much simpler implementation of constant tuple declarations | Andreas Rumpf | 2018-12-19 | 3 | -51/+30 |
| | |||||
* | Const tuple unpacking (#9964) | Neelesh Chandola | 2018-12-19 | 3 | -29/+74 |
| | | | | | | | | | | * tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting | ||||
* | Merge pull request #9959 from nc-x/better-error-message | Andreas Rumpf | 2018-12-19 | 1 | -2/+2 |
|\ | | | | | Better error messages in enums which don't have ordinal types | ||||
| * | Merge remote-tracking branch 'upstream/devel' into better-error-message | Neelesh Chandola | 2018-12-14 | 6 | -165/+33 |
| |\ | |||||
| * | | Better error messages in enums which don't have ordinal types | Neelesh Chandola | 2018-12-13 | 1 | -2/+2 |
| | | | |||||
* | | | Fixes #3060 and adds error checking for invalid else branches in object ↵ | Andreas Rumpf | 2018-12-19 | 2 | -17/+20 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants (#9957) * Fix semRecordCase * Fix ftpclient.nim * Check for ordinal type * Check tyRange for exhaustiveness |