Commit Graph

13030 Commits

Author SHA1 Message Date
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
Andreas Rumpf
1aa3435317 manual.rst: fixes a typo 2018-07-17 15:49:42 +02:00
Quelklef
f2b6efb7dc Make pragmas look clickable in docs (#8176)
* Visual cues for hidden pragmas in docs.
* Add hover cue
2018-07-17 12:14:31 +02:00
John Novak
692d1da95d Fix setCursorPos and setCursorXPos on POSIX (#8310) 2018-07-17 11:35:26 +02:00
Jeff Ciesielski
f8723cd1e3 Add extended baud rates to posix/termios (#8322)
115200 is really common.  I'd like to get support in nimserial, but
I'm guessing it would help to have support in the stdlib first.
2018-07-16 15:15:47 -04:00
Timothee Cour
2ac22b4cf0 fix #8273 times format regression, and fix inconsistent ordering in 1 format overload (#8290)
* Fix issue #8273 [regression] [times.format] Error: attempting to call
undeclared routine: 'format'

* rename format to f for consistency with other overloads and avoid
similar bugs as #8273

* breaking change since PR 8094: changed format*(f: TimeFormat, dt: DateTime) to format*(dt: DateTime, f: TimeFormat) for consistency w other overloads

* use consistent ordering for times.parse procs
2018-07-16 21:15:17 +02:00
Arne Döring
97d37aeb0b Gdb pretty printers (#8263) 2018-07-16 19:30:05 +02:00
LemonBoy
217a2cf098 Resolve converter call to constants in case arms (#8336)
Fixes #8333
2018-07-16 16:19:31 +02:00
Timothee Cour
d07489abf4 fix #7405 and #8195 (#8198)
* fix #7405 and #8195

* control pushInfoContext in semExprNoType,genStmts via a new hintExtendedContext; make NotesVerbosity computation more DRY

* addressed comments
2018-07-16 13:34:44 +02:00
Dominik Picheta
b625e6115c Merge pull request #8328 from jyapayne/patch-1
Remove cross-compile breaking env var in Nintendo Switch config
2018-07-15 14:00:29 +01:00
Joey Yakimowich-Payne
d3c2fb22db Remove env vars from docs 2018-07-15 11:23:22 +09:00
Joey
ab840f445e Remove cross-platform breaking env var in Nintendo Switch config
This was bad to put in here, so my bad. It doesn't work on anything except platforms with shell support. Users can use `--passC` and `--passL` options for customization.
2018-07-15 10:54:50 +09:00
Oscar Nihlgård
332469692d Bugfix for modules with multi byte characters in the name (#8319) 2018-07-14 16:00:51 +02:00
LemonBoy
9b98add6c7 Do not crash while instantiating a generic outside a call (#8279)
Fixes #8270
2018-07-14 01:44:40 +02:00
momf
dd47013017 add SSL_set_SSL_CTX for SNI(Server Name Indication) (#8308)
* add SSL_set_SSL_CTX for SNI

* fix SSL_set_SSL_CTX
2018-07-13 17:09:22 +01:00
Yuriy Glukhov
dfe3f16022 Don't depend on string.h in codegen (#8299) 2018-07-13 17:41:59 +02:00
LemonBoy
54a85b4ff5 Give different names to objects coming from cpp files (#8278)
Prevent some nasty linker errors if the user switches between c and cpp
backends.
2018-07-13 15:23:41 +02:00
Timothee Cour
40f44a0c16 fix issue #8251 ospaths.isAbsolute: out of bound errors (#8291)
* fix issue #8251 ospaths.isAbsolute: out of bound errors

* address comments

* add reference to a spec for quirky macos paths
2018-07-13 03:54:48 -04:00