Timothee Cour
e4415422fe
Revert "printing float values will have one more digit. ( #13276 ) [backport]" ( #13363 )
...
This reverts commit b2c6db97f9 .
2020-02-08 09:30:24 +01:00
Miran
f3117d350e
fix #6736 : templates in unittest now show actual value ( #13354 )
2020-02-07 22:04:08 +01:00
Miran
78b15de304
[backport] remove 'CountTable.mget' ( #13355 )
...
It didn't work, and it was an oversight to be included in v1.0.
2020-02-07 20:50:44 +01:00
narimiran
36d1ad39d0
[backport] fix #13352
2020-02-07 18:26:08 +01:00
Arne Döring
b2c6db97f9
printing float values will have one more digit. ( #13276 ) [backport]
...
* printing float values will have one more digit. Fixes #13196
2020-02-07 17:10:25 +01:00
Miran
cdedb86348
testament: introduce 'matrix' for testing multiple options ( #13343 )
2020-02-07 16:45:49 +01:00
Timothee Cour
1f725f1d7e
miscellaneous bug fixes (part 3) ( #13304 )
...
* fix deprecation; fix indentation
* git clone: use -q
* fix Warning: pragma before generic parameter list is deprecated; fix typo
* bugfix: sysTypeFromName("float64") was never cached
2020-02-07 16:37:40 +01:00
Timothee Cour
79ec8c2571
fix #13182 : proc fun(a: varargs[Foo, conv]) now can be overloaded ( #13345 ) [backport]
2020-02-07 13:29:18 +01:00
Timothee Cour
c0a2e2ed92
replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple in dollars.nim ( #13347 )
...
* replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple
* fix for bootstrap
2020-02-07 13:27:28 +01:00
Henrique Dias
abd660c407
Added a basic example how to handle a Post request. ( #13339 )
...
* Added a basic example how to handle a Post request.
They were also made minor cosmetic changes.
* Minor fixes suggested by Yardanico
* Fixed a wrong value in chunkSize constant.
* Re-added the request.body for compatibility!
2020-02-07 03:59:28 -05:00
pyloor
bf3f1c3762
adding sqlite3 backup functions ( #13346 )
...
* adding sqlite3 backup functions
* changing sleep to sqlite3_sleep to prevent clashes
2020-02-07 01:11:05 -05:00
Andreas Rumpf
c87796180e
fixes #13269 ( #13344 )
2020-02-07 06:58:57 +01:00
Timothee Cour
7481f43753
fix #13349 regression: isNamedTuple now works with generic tuples ( #13350 )
2020-02-07 06:58:04 +01:00
Andreas Rumpf
e24443f1bc
make monotimes have zero overhead if you don't use it ( #13338 ) [backport]
2020-02-06 16:12:54 +01:00
Timothee Cour
7ec7731f82
fix #13150 nim doc --project now works reliably ( #13223 )
...
* fix #13150 `nim doc --project` works with duplicate names and with imports below main project file
* add to help; fixup after #13212 isRelativeTo got merged
* fix test tests/compilerapi/tcompilerapi.nim
* remove nimblePkg field; compute on the fly instead
* kochdocs: compiler docs now under compiler/
* --docRoot now has smart default: best among @pkg, @path
2020-02-06 11:17:00 +01:00
Timothee Cour
574f61315d
nim secret: support linenoise when available ( #13328 )
2020-02-05 16:44:19 +01:00
Miran
c6d5f0df8d
[backport] -d:danger should imply -d:release ( #13336 )
2020-02-05 13:41:16 +01:00
Araq
8279da5219
contributing.rst: Add a special rule for 'outplace'-like features
2020-02-05 13:39:08 +01:00
Clyybber
ab525cc48a
build_all.sh update ( #13320 )
...
* Don't overload the system, don't crash when you can't determine the CPU count and don't rely on bash
* Extract to variable
* Limit number of spawned jobs for systems with weak IO
* Use proper arithmetic braces
2020-02-04 21:26:38 +01:00
Henrique Dias
955465e5f4
Option to allow the request body to be processed outside the asynchttpserver library. ( #13147 )
...
Allow the request body to be processed outside the asynchttpserver library to break big files into chunks of data. This change does not break anything.
2020-02-04 21:13:25 +01:00
Ico Doornekamp
bfe96e069b
Fixed codegen for constant cstring with --gc:arc ( #13326 )
...
* Fixed codegen for constant cstring with --gc:arc, fixes #13321
* Added test for #13321
2020-02-04 17:39:27 +01:00
genotrance
7cc03b43f8
Fix #10717 , fix #13284 ( #13307 )
2020-02-04 17:38:24 +01:00
Timothee Cour
e70294dff2
enable testing -d:nimHasLibFFI mode ( #13091 )
2020-02-04 14:08:56 +01:00
Timothee Cour
b20d7e2110
fix #13132 tnetdial ( #13318 )
2020-02-04 10:31:44 +01:00
alaviss
7e5c070244
koch: enable checks in the compiler when running CI ( #13323 )
2020-02-04 09:27:54 +01:00
Clyybber
1ab37ccfc6
Make build_all.sh more portable and a bit simpler ( #13308 )
2020-02-03 02:02:44 +01:00
Fredrik Høisæther Rasch
dfecc3489b
Quote nim executable before executing. ( #13316 ) [backport]
...
In case nim executable is located in PATH containing spaces.
fixes #13311
2020-02-02 13:54:48 +01:00
Clyybber
d43e5bef39
Fix capture for object types ( #13315 )
...
* Fix capture for object|tuple|... types
* Add test case
2020-02-02 13:52:21 +01:00
Timothee Cour
45a5c64c9a
build_all.sh: building csources 5X faster thanks to make -j ( #13300 )
...
* build_all.sh: building csources 5X faster thanks to make -j
* fix for freebsd
* use OS-dependent formula to get number of logical cores
* make is an optional dependency
2020-01-31 20:00:05 +01:00
Timothee Cour
adc52b0039
refs #8391 std/os now shows runtime context for raiseOSError exceptions ( #13294 )
...
* refs #8391 : fix errmsg for setCurrentDir
* raiseOSError calls for copyFile
* refs #8391 std/os now shows runtime context for raiseOSError exceptions
2020-01-30 11:06:04 +01:00
Timothee Cour
4a747f0250
CT FFI: fix for windows; fix case transition; error msg shows more useful context ( #13292 )
...
* evalffi: fix case transition
* evalffi: fix for windows
* evallffi: `cannot import` errmsg now also shows which library it tried to import symbol from
2020-01-30 11:04:06 +01:00
Timothee Cour
bf22b44b1f
miscellaneous bug fixes ( #13291 )
...
* fix for emscripten etc
* add testcase for #13290
* replace deprecated isNilOrWhitespace
2020-01-30 10:54:50 +01:00
Timothee Cour
81a43791f9
fix critical bug discovered by #11591 ( #13290 ) [backport]
2020-01-29 17:40:03 +01:00
Hiroki Noda
3ab1274231
Thread attributes should be destroyed using the pthread_attr_destroy() ( #13293 )
...
On some OSes (such as FreeBSD or Solaris), pthread_attr_init allocate
memory. So it is necessary to deallocate that memory by using
pthread_attr_destroy.
2020-01-29 17:33:21 +01:00
Timothee Cour
2ecef8f779
csize => csize_t for sysctl
2020-01-28 23:36:24 +00:00
Timothee Cour
2e20f5648b
fix stdout(etc) for emscripten
2020-01-28 23:36:24 +00:00
Timothee Cour
9657a83698
removed unused import
2020-01-28 23:36:24 +00:00
Timothee Cour
5676912209
refactor htmldocs; gitignore it
2020-01-28 23:36:24 +00:00
cooldome
76ede7c198
Repr v2 progress ( #13268 )
...
* progress on repr_v2
* repr progress
* add ref objects with distrinct
* fix failing tests
2020-01-28 20:05:57 +01:00
cooldome
92010becbe
nimv2 widestring indexing ( #13279 )
2020-01-28 20:02:39 +01:00
Clyybber
fb94836bc7
Tiny since cleanup ( #13286 )
2020-01-28 20:02:07 +01:00
Andreas Rumpf
be795bbf1a
TlSF Alloctor: use less memory for --gc:arc ( #13280 )
2020-01-28 17:09:48 +01:00
cooldome
84e8477b90
unittest add resetOutputFormatters proc ( #13267 )
...
* add resetOutputFormatters
* remove space
* resolve comments
2020-01-28 14:16:03 +00:00
cooldome
46bfb590c8
fixes #13281 ( #13282 )
...
* fixes ##13281
* add comment to test
2020-01-28 14:55:54 +01:00
Andreas Rumpf
c8418651b1
fixes #13219 ( #13272 )
2020-01-27 22:50:10 +01:00
Jairo
32f0910f11
scrollTop must be settable ( #13263 )
...
* scrollTop must be assignable
Make scrollTop settable
* add missing export
2020-01-27 09:14:56 +01:00
hlaaftana
a71654323d
Clearer final objects error; fixes #13256 ( #13257 )
2020-01-26 18:56:04 +01:00
hlaaftana
e7744b0909
Rename isNilOrWhitespace to isEmptyOrWhitespace and make it use allCharsInSet ( #13258 )
...
* Rename isNilOrWhitespace to isEmptyOrWhitespace
* Make isEmptyOrWhitespace use allCharsInSet(Whitespace)
2020-01-26 14:02:07 +01:00
Araq
6900da314c
make nre compile with --gc:arc
2020-01-26 13:43:02 +01:00
Araq
a10cc18247
ARC: optimize complete object constructors to use nimNewObjUninit
2020-01-26 13:43:02 +01:00