Timothee Cour
ed0cb7b85d
make config.nims behave like nim.cfg in terms of where these scripts are searched / run ( #8682 )
...
* run project config.nims if exists, then inputfile.nims if exists
* ~/.config/nim/config.nims can now be used
* also check in getSystemConfigPath for config.nims
* refactor handleCmdLine for nim and nimsuggest
2018-08-30 13:52:32 +02:00
Timothee Cour
01211ced1d
add nim c -r nimsuggest/tester to travis ( #8805 )
2018-08-29 16:03:16 +02:00
Dominik Picheta
9ad17091cc
Allow Nimble to override the `task` template in nimscript. ( #8798 )
2018-08-28 23:05:46 +02:00
LemonBoy
5cd152bfda
Allow hint and warning to specify its loc info ( #8771 )
...
Let's bring those to feature-parity with `error`.
2018-08-28 22:59:28 +02:00
Dominik Picheta
6e83746caa
Net module fixes ( #8597 )
...
* net.accept no longer needs an initialised socket. Fixes #7848 .
* Assert error when using sendTo/recvFrom on TCP socket.
* net.sendTo now raises OSError.
2018-08-28 15:52:28 +02:00
Araq
a42150f9a8
make parseopt work with DLLs on Unix
2018-08-28 15:41:55 +02:00
Araq
e02e057a70
make parsopt compile under --taintMode:on
2018-08-28 15:41:55 +02:00
Araq
6f16166c60
parseopt: keep the seq of arguments as given; fixes various command line parsing edge cases; refs #6818
2018-08-28 15:41:55 +02:00
Araq
9c3cba1c22
fixes #4766
2018-08-28 15:41:55 +02:00
Araq
dc5851e873
added a test to ensure that for-loop-variables cannot be mutated
2018-08-28 12:16:14 +02:00
Oscar Nihlgård
96363ecaf3
Fix nkImportAs regression ( #8796 )
2018-08-28 11:35:52 +02:00
Araq
7bb93c730e
show all mismatching overloads again
2018-08-27 17:07:12 +02:00
Araq
a60cf221e8
improve the error message for mutability problems that arise from implicit converter calls
2018-08-27 17:07:12 +02:00
Araq
c1df195b15
manual: document the order of evaluation
2018-08-27 17:07:12 +02:00
hlaaf
a270899502
Add escapeJsonUnquoted for json escaped strings without quotes ( #8785 )
...
* Add escapeJsonUnquoted
* Add tests for escapeJsonUnquoted
2018-08-27 12:22:55 +02:00
Araq
3999e3be5f
fixes #8776
2018-08-27 11:47:57 +02:00
Araq
08c105c4e5
added missing file to make tests green
2018-08-27 11:26:31 +02:00
Araq
c0c8828d9f
allow .experimental in a .push/pop environment; refs #8676
2018-08-27 11:20:30 +02:00
Araq
57a291db33
optimize away genericReset for result assignment; refs #8745
2018-08-27 09:10:40 +02:00
Vindaar
52f03fabc1
fixes #8781 by appending "_U" instead of 'U' ( #8787 )
2018-08-27 08:35:07 +02:00
Nathan Cahill
238809f506
Update html attrs to current html spec
2018-08-26 21:48:37 +01:00
awr1
50aa376e80
Added to docs: warning string for {.deprecated.} pragma ( #8783 )
2018-08-26 17:42:57 +02:00
Timothee Cour
b4edfa613b
[ospaths] simplify getConfigDir and introduce normalizePathEnd to make ( #8680 )
...
sure path endings are normalized with 0 or 1 trailing sep, taking care
of edge cases
2018-08-26 17:36:11 +02:00
awr1
96d44fdd0a
Deprecate xlen() for strings and seqs ( #8782 )
...
* deprecates xlen() for strings and seqs
* added docs
2018-08-26 17:15:19 +02:00
Timothee Cour
e9b665f338
gitignore html output of nim doc foo ( #8742 )
2018-08-25 21:49:18 +02:00
Timothee Cour
3a626179ee
doAssert, assert now print full path of failing line on error ( #8555 )
2018-08-25 21:48:37 +02:00
Dominik Picheta
81f920a4ee
Process timers before and after select. Fixes flaky #7758 test. ( #8750 )
2018-08-25 09:44:02 +02:00
LemonBoy
6f13184e40
More checks for custom pragmas placement ( #8765 )
...
We're not interested in custom pragmas attached to certain node kinds so
the compiler silently ignored them.
2018-08-25 07:56:05 +02:00
Timothee Cour
56de4c81b2
fixes #8739 ; allow --hint:foo:on --warning:bar:off ( #8757 )
2018-08-25 07:55:05 +02:00
hlaaf
9707b23258
Fixes #8766 ( #8769 )
2018-08-24 21:19:24 +02:00
gemath
f26ed1d540
Add interpreting event parser proc to pegs module. ( #8075 )
...
* Added simple interpreting event parser to pegs module.
* Has side-effects problem.
* Macro solution works.
* First flat callback test works.
* Fixed namespace pollution.
* Added handler for pkChar.
* Replaced event parser test.
* Started extensive docs.
* 'callback' to 'handler' renaming part 1.
* Renaming 'callback' to 'handler' part2, completed comments.
* Fixed exported API pollution.
* Added more event handler hooks, fixed comments.
* Changed event parser addition entry.
* Fixed variable names and comments.
* Enhanced comment.
* Leave handlers are not called for an unsuccessful match.
* The three varieties of back-reference matches are processed in separate
of-clauses now.
* Improved hygiene and (almost) eliminated exports.
* Trying to fix CI test breakage by eliminating export.
* Trying to fix CI test breakage by eliminating exports.
* Re-activated leave handler code execution for unsuccessful matches.
* Eliminated the last export statement (with a funny smelling hack).
* Make sure leave handler code is executed for all unsuccessful matcher
cases.
* Replaced local unicode.`==` with export.
2018-08-24 20:13:37 +02:00
cooldome
d5e1d102df
fixes 8754 ( #8755 )
...
* fixes 8754
* improve test
2018-08-24 09:57:38 +02:00
Andreas Rumpf
e9e0ff1b82
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-08-24 09:58:19 +02:00
Andreas Rumpf
effe2fd812
disables flaky test; fixes #8756
2018-08-24 09:58:03 +02:00
LemonBoy
b1c2416abd
Validate pragmas attached to for variables ( #8749 )
...
Fixes #8741
2018-08-24 09:40:17 +02:00
Andreas Rumpf
30621c4a89
improve error messages by filtering out highly unlikely mismatches
2018-08-24 00:09:08 +02:00
LemonBoy
25f5ea7000
Validate pragmas attached to for variables ( #8749 )
...
Fixes #8741
2018-08-23 21:43:10 +02:00
Andreas Rumpf
35e37fd8ec
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-08-23 20:39:47 +02:00
Dominik Picheta
07e1da8342
Adds test case for #6846 . ( #8729 )
2018-08-23 20:35:22 +02:00
Oscar Nihlgård
8aae5c9385
Don't assume utcOffset == +0 for old dates on Windows ( #8744 )
2018-08-23 20:35:22 +02:00
Dominik Picheta
1b1633991a
Don't skip poll() when no handles are present. ( #8727 )
...
Fixes #7886 .
Fixes #7758 .
Fixes #6929 .
Fixes #3909 .
Replaces #8209 .
2018-08-23 20:35:22 +02:00
Dominik Picheta
964f1ff7a7
Adds test case for #6846 . ( #8729 )
2018-08-23 18:38:33 +02:00
Oscar Nihlgård
42333d27d0
Don't assume utcOffset == +0 for old dates on Windows ( #8744 )
2018-08-23 17:55:53 +02:00
Andreas Rumpf
1c3cfd74ff
make ospaths compile; fixes ospaths.getConfigDir for Posix
2018-08-23 17:55:00 +02:00
Andreas Rumpf
361a2d830a
enforce the condition of a 'when' condition to be of type bool; refs #8603
2018-08-23 17:54:04 +02:00
Andreas Rumpf
1546826006
add nimHasWarningX and nimHasHintX defines for feature detection purposes
2018-08-23 17:37:23 +02:00
Andreas Rumpf
ae0255ea67
make nimsuggest compile again
2018-08-23 17:36:24 +02:00
Andreas Rumpf
b4ff01b507
make niminst compile again
2018-08-23 16:32:38 +02:00
Dominik Picheta
7532b37405
Don't skip poll() when no handles are present. ( #8727 )
...
Fixes #7886 .
Fixes #7758 .
Fixes #6929 .
Fixes #3909 .
Replaces #8209 .
2018-08-23 16:31:28 +02:00
Araq
30597e643f
fixes merge conflict
2018-08-23 11:30:55 +02:00