Commit Graph

13047 Commits

Author SHA1 Message Date
Araq
51db60afed change formating to avoid a compiler warning 2018-07-31 22:52:34 +02:00
Araq
39192fa568 also fixes setLen and string concats; refs #7833 2018-07-31 15:46:00 +02:00
Araq
f5a1952027 make tests green again 2018-07-31 10:25:02 +02:00
Araq
53566f7165 fixes #7833; still to-do: fix setLen 2018-07-30 23:27:01 +02:00
Araq
f2ddd99539 fixes #8425 2018-07-30 12:20:58 +02:00
Araq
d270245a01 disable --app:gui for non Windows targets; fixes #2576 2018-07-30 12:20:58 +02:00
Araq
e86a0ecd86 asyncdispatch: remove outdated documentation about its limitations 2018-07-30 12:20:57 +02:00
andri lim
2e6d073be1 fixes #8468, stdlib.encodings.convert not crash anymore on windows (#8470) 2018-07-30 12:04:49 +02:00
Yuriy Glukhov
6b40114f21 Added c_abort to ansi_c (#8449) 2018-07-30 11:10:51 +02:00
cooldome
404f0d64af Add sizeof for arrays of integral types (#8445) 2018-07-30 11:00:06 +02:00
LemonBoy
c3a9ac4d35 Try conversion to static[T] in generic instantation (#8443)
Fixes #8439
2018-07-30 10:51:14 +02:00
skilchen
becb6743f8 fixes #8434 (incomplete info in errmsg about 'required type') (#8441) 2018-07-30 10:41:59 +02:00
Timothee Cour
06571f5495 fixes #8323 : avoid polluting git status after nim doc foo (#8415) 2018-07-30 10:36:23 +02:00
Quelklef
a4c244aef0 Add checks for random.rand() (#8431) 2018-07-30 10:19:11 +02:00
Timothee Cour
2569c74909 docs: document that --flag is same as flag in cfg config files (#8430) 2018-07-30 10:17:41 +02:00
Oscar Nihlgård
97ea18746b Fix path resolution of submodules in the std namespace (#8453) 2018-07-30 09:07:11 +02:00
Yuriy Glukhov
57c3b807d0 Fixed typo introduced in #8428 that leads to InvalidIdent assertion failure (#8464) 2018-07-30 08:54:52 +02:00
LemonBoy
1fc3a68205 Access implicit result trough envP in closures (#8471)
Reuse the existing machinery, most of the changes are only needed to
handle the `result = result` node in nkReturnStmt produced by the
closure iterator transform.

Fixes #338
2018-07-30 08:34:15 +02:00
Timothee Cour
d07d148597 fixes #7492 excessiveStackTrace:on shows non-absolute file in stacktrace (#8469) 2018-07-30 07:39:58 +02:00
Hugo Locurcio
3838e2a8d7 Fix links to manual.html in the system module documentation (#8467)
The HTML anchor IDs were changed, which made those links not link
to the appropriate section anymore.
2018-07-28 12:13:37 -04:00
Dominik Picheta
8b638ae599 Merge pull request #8428 from yglukhov/async-stdin
Allow async stdin
2018-07-26 16:38:31 +01:00
Yuriy Glukhov
34f398d010 Allow async stdin 2018-07-25 09:07:50 +03:00
LemonBoy
d5c9255cab Allow use of typedesc as type converters (#8409)
Fixes #8403
2018-07-24 08:25:08 +02:00
Timothee Cour
13df807576 fix issue #8349 FileSystemCaseSensitive should be false on OSX (#8411) 2018-07-23 19:26:49 -05:00
Timothee Cour
9249276db0 addresses issue #8391 show runtime context on some failed operations (#8393) 2018-07-23 22:58:03 +02:00
Oscar Nihlgård
503dc22236 Use enum string values in times.nim (#8413) 2018-07-23 22:40:39 +02:00
Yuriy Glukhov
2094209837 Fixed #8399 (#8401) 2018-07-22 22:30:59 +02:00
Zachary Carter
9379f9353a Add application/wasm to mimetypes.nim (#8389)
```
To serve wasm in the most efficient way over the network, make sure your web server has the proper MIME time for .wasm files, which is application/wasm. That will allow streaming compilation, where the browser can start to compile code as it downloads.
```

http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#web-server-setup
2018-07-21 21:42:07 +02:00
skilchen
8fe8bed9c3 add sets.pop procedure (analogue to python) (#8383) 2018-07-21 19:51:14 +02:00
Dominik Picheta
f3926b5af1 Merge pull request #8388 from skilchen/remove_ascii_art_from_sequtils
sequtils: remove some ascii art
2018-07-21 18:24:25 +01:00
skilchen
57f4a5d429 sequtils: remove some aligning spaces around == to silence warnings 2018-07-21 19:16:05 +02:00
cooldome
ec02940185 Render bug: if expression with statement list expression as condition (#8375)
* Fixes #8348
2018-07-21 13:01:47 +02:00
Dominik Picheta
5ea3b4d581 Implements alloc/dealloc counters for better leak debugging. (#8384) 2018-07-21 01:43:13 +02:00
Joey
2b6f324929 Add -w flag to Switch compilation to prevent deadlock (#8372)
See https://forum.nim-lang.org/t/4062.

The summary is that there are warnings printed when compiling and that causes a deadlock, likely due to output buffers being filled up. With the `-w` flag, the compiler outputs no warnings and the compilation is allowed to finish.
2018-07-20 14:47:19 -05:00
andri lim
9c3336dcff fixes #8371, macros.hasCustomPragma doesn't crash anymore (#8378)
* fixes #8371, macros.hasCustomPragma doesn't crash anymore

* fix macros.hasCustomPragma
2018-07-20 19:48:12 +02:00
Ray Imber
060871e64a Better doc search (#8260)
* Modified the doc generation to produce a custom data attribute to allow for better search functionality

* Implemented fuzzy matching for the Nim Doc search instead of the simple regex match.

* Fix to the WordBoundry state transition from code review with @Varriount. Also removed silly testing template that is no longer used.

* Update fuzzysearch.nim

* Update fuzzysearch.nim

* Update fuzzysearch.nim

* Update dochack.nim

* Update dochack.nim
2018-07-20 04:58:42 -05:00
andri lim
f92d61b1f4 fixes #8037, json.to support object with distinct types (#8086)
* add distinct types to json 'to' macro

* fix json 'to' macro and add more test
2018-07-19 16:38:40 +01:00
skilchen
143834ba4e keep the imports in runnableExamples visible in generated html doc (#8354) 2018-07-19 01:05:07 +02:00
cooldome
a651809411 Fixes #8343, Fixes #8344 (#8347) 2018-07-18 14:54:44 +02:00
Chris de Graaf
6eedac3207 Fix link to first class iterator docs (#8356) 2018-07-18 09:17:34 +02:00
Aaron Levine
6512f8688d Fix #8345 (#8350) 2018-07-18 08:08:49 +02:00
skilchen
2262c255e2 let runnableExamples start in a new paragraph (#8355)
fixes #8121, fixes #8346
2018-07-18 07:51:39 +02:00
Andreas Rumpf
0cbfd67522 make typesafeprintf test green 2018-07-17 20:33:42 +02:00
Andreas Rumpf
6a9b082b53 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-07-17 18:23:03 +02:00
Andreas Rumpf
2e3f477957 VM: accessing the string terminator is not allowed anymore; cleanup tests/system/tostring.nim 2018-07-17 18:22:20 +02:00
Andreas Rumpf
ae09879b3a fixes #8223 2018-07-17 18:21:09 +02:00
LemonBoy
ebf4e9f717 Extend init variable tracking to tuple assignments (#8321)
Fixes #8314
2018-07-17 17:50:05 +02:00
Andreas Rumpf
fc0bcccc15 fixes #8230 2018-07-17 16:43:05 +02:00
Andreas Rumpf
f29225fc63 sigmatch: no trailing whitespace 2018-07-17 16:14:12 +02:00
Andreas Rumpf
59a5c0462f fixes #8338 2018-07-17 15:49:55 +02:00