cooldome
2d7ccf0928
fix #14312
2020-05-12 10:23:05 +01:00
Avahe Kellenberger
55446c05a4
Added a reference to ternary operators. ( #14309 )
...
`if expressions` are similar to ternary operators in other languages.
In order to make this easier to find in the manual, I've added a
sentence about it.
2020-05-12 08:28:10 +02:00
Timothee Cour
b8ec07f19e
properly fixes #13758 so that import std/macros stays legal ( #14291 )
...
* properly fix https://github.com/nim-lang/Nim/issues/12389
* use --lib:lib in koch.nim.cfg instead
* third time is the charm
2020-05-12 08:27:47 +02:00
cooldome
a39123c93c
fix #14219 ( #14225 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-11 23:11:20 +02:00
Kaushal Modi
86669ef5b4
Make --backend:cpp|js work for :test: code-blocks as well ( #14306 )
...
Continues 9502e39b63
Ref:
- 9502e39b63 (commitcomment-39087584)
- https://github.com/nim-lang/Nim/pull/14278
Fixes https://github.com/nim-lang/Nim/issues/13129 .
2020-05-11 20:45:35 +02:00
slangmgh
76f7e95814
Fix #14289 ( #14304 ) [backport]
2020-05-11 19:17:37 +02:00
Andreas Rumpf
0f344a70c9
fixes #13946 ( #14302 )
2020-05-11 19:12:40 +02:00
b3liever
a081b10b54
small refactoring ( #14303 )
...
Co-authored-by: Antonis <b3liever@yandex.com >
2020-05-11 19:12:25 +02:00
cooldome
fee71d466c
fix #14294 ( #14301 )
...
* fix #14294
* fix orc as well
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-11 19:10:54 +02:00
Andreas Rumpf
03c146cd93
do not track 'raise Defect' in the .raises: [] clause anymore ( #14298 )
...
* do not track 'raise Defect' in the .raises: [] clause anymore
* --panics:on maps 'raise Defect' to an unrecoverable fatal error
* make tests green again
* update the documentation too
2020-05-11 16:25:56 +02:00
Antonis
517dd800f8
better error message
2020-05-11 15:39:44 +02:00
Antonis
3616b0698b
fix closure env check
2020-05-11 15:39:44 +02:00
Antonis
73c9d2c9d7
Fix for --styleCheck:error
2020-05-11 15:39:44 +02:00
Jovial Joe Jayarson
14f76f721d
refactor: renamed readme to readme.md ( #14283 )
2020-05-11 13:50:40 +02:00
Timothee Cour
9502e39b63
nim doc --backend:js, nim doc --doccmd:-d:foo, nim r --backend:js, --doccmd:skip + other improvements (#14278 )
...
* `nim doc --backend:js|cpp...`
`nim doc --doccmd:'-d:foo --threads:on'`
`nim r --backend:cpp...` (implies --run --usenimcache)
* --usenimcache works with all targets
* --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
2020-05-11 12:01:18 +02:00
Timothee Cour
d11cb9d495
fix a critical bug in windows.osproc leading to resource leaks and blocking IO [backport] ( #14296 )
2020-05-11 11:14:21 +02:00
Andy Davidoff
8018449319
simple typo in locks.nim ( #14297 )
2020-05-11 02:59:31 -04:00
Timothee Cour
7c24250a57
diable nimx (CI failure) refs https://github.com/timotheecour/Nim/issues/167 ( #14293 )
2020-05-10 18:56:00 -04:00
Timothee Cour
dda6f3f6d4
nim doc -r main and nim rst2html -r main now call openDefaultBrowser (#14285 )
2020-05-10 09:23:01 +02:00
Clyybber
8e93105606
Fix #14269 ( #14286 )
2020-05-09 18:22:25 +02:00
Timothee Cour
411be506a3
--hint:processing (+friends) is now supported and means --hint:processing:on, like all other bool flags ( #14271 )
2020-05-08 18:54:16 +02:00
Andreas Rumpf
ce16115e79
Merge pull request #14265 from alaviss/quickfix
...
nativesockets: add missing inheritable pass-through
2020-05-08 17:33:38 +02:00
Andreas Rumpf
bae8e95b73
fix root cause of https://github.com/dom96/choosenim/issues/193 ; config/config.nims should get installed ( #14267 )
2020-05-08 16:14:10 +02:00
Clyybber
4bd77cf045
Fix typo
2020-05-08 16:13:53 +02:00
Timothee Cour
363b7ff3b8
fix https://github.com/nim-lang/Nim/issues/14275 querySetting(nimcacheDir) works even if implicitly set ( #14277 )
2020-05-08 16:13:07 +02:00
Clyybber
120ea906fb
Fix #14270 and add testcases ( #14276 )
2020-05-08 15:54:34 +02:00
hlaaftana
de27910ab7
make from an operator ( #14241 )
2020-05-08 07:54:46 +02:00
Timothee Cour
ee15437aed
fix root cause of https://github.com/dom96/choosenim/issues/193 ; config/config.nims should get installed
2020-05-07 15:01:46 -07:00
cooldome
5fa7d374c4
fix #14243 ( #14257 )
...
* fix #14243
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-07 22:15:25 +02:00
alaviss
83435fe696
tslow_tables: wait for an additional 2 seconds ( #14266 )
...
This test runtime tends to hover around the 5s mark depending on how
loaded the system currently is. This causes the test to fail a lot
during CI, per analytics:
https://dev.azure.com/nim-lang/Nim/_test/analytics?definitionId=1&contextType=build
Give the test an extra 2 seconds to account for unrelated overhead.
2020-05-07 22:07:08 +02:00
Leorize
73a42ce941
nativesockets: add missing inheritable pass-through
2020-05-07 14:43:53 -05:00
Clyybber
42db75c970
Fix the DFA for "unstructured controlflow" ( #14263 )
...
* Fix the DFA for "unstructured controlflow"
* Add testcase from #14233
2020-05-07 21:41:55 +02:00
alaviss
1a1e9986a3
net: remove more erroneous set constructions ( #14252 ) [backport]
...
Refs #13764
2020-05-07 13:37:54 +02:00
Miran
5a9b3c27c1
Split testing important packages into two jobs ( #14256 )
...
* split testing packages in two separate jobs
* speed-up the slowest tests
* special treatment for two packages
2020-05-07 10:08:05 +02:00
cooldome
0d8507cd3d
fix #14236 ( #14250 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-07 00:13:59 +02:00
cooldome
6dba06f9e6
fixes #14244 ( #14248 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-06 20:43:18 +02:00
awr1
b70b8a7cdd
Fix runnable examples for bitops ( #14247 )
2020-05-06 19:29:36 +02:00
Andreas Rumpf
c64db68f0b
added a new feature: --cc:env so that you can use any C compiler as long as it works like GCC
2020-05-06 18:41:24 +02:00
Andreas Rumpf
1b2b32169a
cleanup the CC setting, only leave in there what is at least semi-officially supported
2020-05-06 18:41:24 +02:00
Timothee Cour
330b3c4453
fix regression: -d:nimHasLibFFI was not being tested anymore ( #14234 )
...
* * fix regression: -d:nimHasLibFFI was not being tested anymore,
in part because testament was silently treating some errors as easy to overlook messages
* turned that message into an error
* -d:nimHasLibFFI is now being tested with nim cpp
* use correct signatures for importc procs
* workaround for openbsd to unblock ctffi testing
2020-05-06 17:16:54 +02:00
awr1
b8e6ea7547
Added bitslice operations for bitops ( #14016 )
...
* added bit operations based on bit slices, clarified documentation, made non-mutating versions of mask ops
* Added since annotations, some runnable examples
* Added mask()/masked() functions, changed internal workings of mask ops to use new bit* funcs
* Changelog updated for new bitops improvements
* Reorganization, added runnable examples
* Documentation adjustments
* Add incltrl for since annotation
* Fix masked() impl
* Fix mask() return type
* Don't call toUnsigned on already unsigned types
* Remove improper `var T` for flipMasked()
* Fix return types for flipMasked()
* Slight syntactic cleanup for *masked ops
* Added tests for bitslice operations, new mask() operation, non-mutating mask ops
* Fix setmasked() var T issue
* More comprehensive tests
* Fix runnable example for bitsliced()
* Fix runnable example for mask()
2020-05-06 12:21:49 +02:00
Oscar Nihlgård
48e7775ad1
Make the fields of times.DateTime private ( #14197 )
...
* Make the fields of `times.DateTime` private
* PR fixes
2020-05-06 12:20:34 +02:00
Timothee Cour
c28a057a6b
fix js stacktraces, unify all file,line,col formatting into a single function ( #14230 )
...
* fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
2020-05-05 14:56:15 +02:00
hlaaftana
6b7b5fb4fa
Clarify JS cstring len ( #14184 )
2020-05-05 10:34:37 +02:00
cooldome
eefada8a88
fix #14217 ( #14218 )
...
* fix #14217
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-05 07:26:32 +02:00
Andreas Rumpf
64e839d5fd
fixes #14209 [backport:1.2] ( #14213 )
...
* fixes #14209 [backport:1.2]
* improve stability
2020-05-05 00:48:13 +02:00
cooldome
e86a6d24d5
vcc fix ( #14222 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-04 19:42:29 +02:00
wltsmrz
c817e85f4c
Linux updates ( #14170 )
...
* Add posix_memalign()
* Add linux-specific open() flags
O_TMPFILE: since Linux 3.11
O_PATH: since Linux 2.6.39
O_NOATIME: since Linux 2.6.8
O_DIRECT: since Linux 2.4.10
* Fix Stat type
* Fix POSIX AF_INET* const generation
2020-05-04 19:23:49 +02:00
PMunch
44f377ff5e
Add procedures to read RSA keys from BIO format ( #14223 )
2020-05-04 19:23:11 +02:00
Timothee Cour
a23302ef56
fix https://github.com/timotheecour/Nim/issues/152 : avoid writing spurious ^[[0m to stderr when callStyledWriteLineStderr not called ( #14214 )
...
* fix https://github.com/timotheecour/Nim/issues/152 `^[[0m` is inserted in stderr for `echo code | nim c -`
* resetAttributes not even needed, already handled in styledWriteLine
* simplify tests in tests/trunner.nim thanks to this fix
2020-05-04 15:07:32 +02:00