nepeckman
7920dc2898
Added support for --genDeps on JS backend ( #10320 )
2019-01-15 22:58:44 +01:00
Timothee Cour
beed27b75d
improve vmgen.codeListing formatting ( #10306 )
...
* improve vmgen.codeListing formatting
* address comments
2019-01-15 19:02:01 +01:00
Timothee Cour
4355f23ee5
fix #10305 nim cpp is now nan-correct at CT ( #10310 )
...
* fix #10305 nim cpp is now nan-correct at CT
* add example where simply `nim cpp -d:release` would exhibit nan bug
2019-01-15 14:50:28 +01:00
Andreas Rumpf
05c52ff34f
fixes #10203 ( #10290 )
...
* fixes #10203
* make typredef test green again
* fixes the regressions differently
2019-01-15 10:15:27 +01:00
Neelesh Chandola
8922063bd8
typed/untyped return type is invalid for everything except templates and macros ( #10275 )
2019-01-15 08:08:12 +01:00
Timothee Cour
0a8762eb7b
fix #9842 #9951 : nim -r and parseopt.cmdLineRest are now correct
2019-01-14 17:00:54 -08:00
Timothee Cour
e17321aa24
improve formatting in assertEquals
2019-01-14 17:00:54 -08:00
Araq
d69a7842fa
fixes #7878
2019-01-14 12:36:34 +01:00
Araq
825e08b046
fixes #7524
2019-01-14 12:15:40 +01:00
genotrance
c707267212
Add stdin read support to nimscrit #3983 ( #10292 )
2019-01-14 09:26:10 +01:00
Araq
aa7ad88978
fixes #10075 [backport]
2019-01-13 15:52:50 +01:00
Araq
ab99bdfc40
fixes #10136
2019-01-13 14:56:50 +01:00
Araq
0c10fc67eb
fixes #10104
2019-01-13 14:09:13 +01:00
Araq
40115cd645
improve error messages quality for '.push: raises []'
2019-01-13 13:30:01 +01:00
rec
f5cc2e2de5
Fixes 10202 ( #10283 )
...
* Add a test case for #10202
* Fix asgn for object tyVars; fixes #10202
* Check the variant kind before accessing the sym field
2019-01-12 19:49:31 +01:00
Araq
5ef5dc86c5
docgen: support markdown link syntax; enable markdown extensions
2019-01-11 22:17:43 +01:00
Neelesh Chandola
b0979c8b1c
Cleanup comesFromPush logic ( #10278 )
2019-01-11 19:16:03 +01:00
Andreas Rumpf
5397c5d31d
fixes #10216 ( #10270 )
2019-01-11 16:34:22 +01:00
Andreas Rumpf
d1b7aa28e7
fixes #10240 ( #10269 )
...
* kochdocs.nim: code cleanup
* fixes #10420
2019-01-11 15:55:16 +01:00
Neelesh Chandola
d998cb58dd
void object fields are now ignored by codegen and fields/fieldPairs iterator ( #10144 )
...
* Codegen now ignores object fields of type void
* Fix `$` bug for objects/tuples where it does not add a comma
* fields/fieldPairs iterators now ignore void types
* Use `isEmptyType` instead of checking for `tyVoid` directly
2019-01-10 12:49:35 +01:00
Arne Döring
f55c8d4d54
fixes #10251 ( #10255 )
2019-01-10 09:27:01 +01:00
cooldome
44b4e289d6
destructors: lift type bound operations for case and distinct objects ( #10238 )
2019-01-10 09:25:35 +01:00
Timothee Cour
23c1ee982e
add alignTable, parseTableCells to align/format a tab(etc) delimited table ( #10182 )
...
* add compiler/unittest_light.nim for easy diffing: assertEquals and mismatch
* fixup
* add alignTable, parseTableCells
2019-01-09 09:46:44 +01:00
Timothee Cour
fc7fcca9df
fix leftover comment from #9766
2019-01-08 17:07:46 -08:00
Timothee Cour
bf3a308e86
[error messages, stacktraces] fix #8794 #9270 #9767 #9768 ( #9766 )
...
* 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
2019-01-08 15:58:47 -08:00
Neelesh Chandola
fb26b95f81
{.deprecated: msg.} now works for vars and lets ( #10234 )
2019-01-08 19:44:47 +01:00
Clyybber
427435a814
Don't use deprecated pragma syntax ( #10187 )
...
* Don't use deprecated pragma syntax
* Remove pure pragma, since it's a noop now
2019-01-08 10:13:39 +01:00
Arne Döring
abad758a7e
Fix for sizeof bitsize combination ( #10227 )
...
* fix #10082
* added test
2019-01-07 18:09:57 +01:00
Neelesh Chandola
387831d657
Show error when trying to export individual enum field ( #10109 )
2019-01-07 16:02:47 +01:00
jcosborn
044cef152f
add custom pragma support for var and let symbols ( #9582 )
...
* 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
2019-01-07 12:36:06 +01:00
zah
87f8ec5b92
Fix #10073 ( #10218 )
2019-01-07 12:10:54 +01:00
Miran
5345c5b130
remove deprecated modules ( #10215 )
...
* 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)
2019-01-07 10:37:49 +01:00
Neelesh Chandola
e77dd683eb
Fix defer not not-working at top level ( #10191 )
2019-01-07 00:51:17 +01:00
Neelesh Chandola
e9a192c36f
expandFilename on windows is now consistent with other platforms ( #10154 )
2019-01-04 15:11:48 +01:00
Araq
5101b6befd
fixes #10188
2019-01-04 13:39:54 +01:00
Araq
086229459a
runnableExamples: compile and test them as a single file; fixes #9300
2019-01-04 09:52:22 +01:00
Neelesh Chandola
7c5ae00887
exportc is now not allowed for type aliases ( #9979 )
2019-01-02 20:01:06 +01:00
Timothee Cour
a1e268e3dc
[cleanup] remove dead code compiler.options.mergeConfigs ( #10165 )
2019-01-02 10:26:40 +01:00
Neelesh Chandola
6ed9676af5
Show field not initialized warning only when notnil used ( #10155 )
2019-01-01 18:49:44 +01:00
Neelesh Chandola
9faad7591e
Deprecate gc v2 ( #10151 )
...
* Deprecate gc v2
* warnDeprecated now has custom messages
2019-01-01 13:50:48 +01:00
cooldome
7c90e22ddd
fixes #10148 ( #10149 )
...
* fixes #10148
* fix a typo
2018-12-31 22:57:09 +01:00
Timothee Cour
ab72d68ec8
fix off by 1 error in col shown by toFileLineCol ( #10138 )
...
* fix off by 1 error in `col` shown by toFileLineCol
* fix test failures
2018-12-31 15:42:01 +01:00
deech
e87910197a
Check there are no side effects before optimizing away compile time expressions. ( #9934 )
2018-12-31 14:41:24 +01:00
Neelesh Chandola
bcbe317d17
Before showing deprecated warning, check whether enum field was marked deprecated or the whole enum type ( #10135 )
2018-12-30 18:34:41 +01:00
cooldome
82c009a2cb
Dead code elimination for entire modules and their init procs if empty ( #10032 )
...
* fixes #9798
* Change order of write modules
* Move datInit calls ahead of initStackBottom
2018-12-30 11:28:12 +01:00
Neelesh Chandola
cbbdcb2669
Show deprecation warning for fields of a deprecated enum ( #10112 )
...
* Show deprecation warning for fields of a deprecated enum
* Add test
2018-12-30 09:45:39 +01:00
Neelesh Chandola
c5ad4c10cb
Deprecated pragma is now supported on enum fields ( #10113 )
...
* {.deprecated.} pragma is now supported for enum fields
* Add tests
* Simplify code
2018-12-30 09:43:59 +01:00
Timothee Cour
a6633b9658
fix typetraits.$ regression https://github.com/c-blake/cligen/issues/84 ( #10131 )
...
* fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84
* add test
2018-12-30 09:40:21 +01:00
Alexander Ivanov
aadbdd6b06
Support undefined in isNil ( #9960 )
2018-12-30 02:48:37 +01:00
Andreas Rumpf
062d7e3a39
fixes #10082
2018-12-30 02:45:43 +01:00