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
LemonBoy
3163a0f466
Do not consider enums with holes as ordinals ( #8264 )
...
Make the compiler behave consistently with respect to what's written in
the manual.
Fixes #1239
2018-07-12 18:08:45 +02:00
Eugene Kabanov
3fec2ba5e5
Fix terminal.nim to be GCSAFE. ( #8296 )
...
* Also fix deprecated callsite().
2018-07-12 18:06:15 +02:00
LemonBoy
ba1f036a56
Correctly hash inferred types ( #8286 )
...
We don't really want to hash the tyInferred container since that'd make
the "real" type and its inferred counterpart produce different hashes
and types for the very same type.
Fixes #8280
2018-07-12 13:00:11 +02:00
Joey Yakimowich-Payne
9aad193d27
Fix undefined PObject reference
2018-07-12 11:54:25 +01:00
Kaushal Modi
1102f9aaf1
Make the Style enum a proper Ordinal (no holes) ( #8282 )
...
The Style enum needs to be an Ordinal so that it can be used in sets.
2018-07-12 11:30:51 +02:00
skilchen
6de52d2b74
make runnableExamples use a private nimcache so that they can be tested in parallel ( #8281 )
...
* make runnableExamples use a private nimcache so that they can be tested in parallel
2018-07-12 11:06:20 +02:00
cooldome
231a83a6b1
Fixes #8287 ( #8288 )
2018-07-12 11:03:08 +02:00
Quelklef
ac3c4a94ad
Fixed $ on None[T] for T with .name ( #8293 )
2018-07-12 11:01:48 +02:00
Timothee Cour
32441d01e5
better doc for hard to find --define:SYMBOL:VAL ( #8257 )
2018-07-11 10:33:33 +02:00
Quelklef
6fe79fd158
Fixed a wrong AST example ( #8269 )
2018-07-11 08:52:09 +02:00
Timothee Cour
25bf0d1683
add os.absolutePath; fixes #8174 ( #8213 )
...
* add os.absolutePath
* fixup
* fixup
* Fixes absolutePath error message.
2018-07-10 20:31:13 +01:00
Dominik Picheta
f805018461
Fixes #5880 . ( #7229 )
2018-07-10 00:33:31 +02:00
LemonBoy
5c5388c0a6
Handle subtype relations for converter parameters ( #8248 )
...
Fixes #7098
2018-07-09 20:05:53 +02:00