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
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
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
2ecef8f779
csize => csize_t for sysctl
2020-01-28 23:36:24 +00:00
Clyybber
fb94836bc7
Tiny since cleanup ( #13286 )
2020-01-28 20:02:07 +01:00
cooldome
84e8477b90
unittest add resetOutputFormatters proc ( #13267 )
...
* add resetOutputFormatters
* remove space
* resolve comments
2020-01-28 14:16:03 +00: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
Euan
ccb728a7b0
Fix typo for literal [ ( #13243 )
...
The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
2020-01-24 08:42:03 +00:00
hlaaftana
4656580b54
Fixes asyncftpclient multiline reading, fixes #4684 ( #13242 )
...
Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line.
Also made it work for taint mode.
2020-01-24 00:18:16 +01:00
Kaushal Modi
c4ff4e553e
[backport] Make all parseutils examples auto-checking ( #13238 )
...
- Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
2020-01-23 17:14:22 +01:00
Timothee Cour
3a5056dc70
fix lots of bugs with parentDir, refs #8734 ( #13236 )
2020-01-23 13:39:41 +01:00
Mera
4a754ff392
[backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ( #13231 ) [ci skip]
2020-01-23 06:49:27 +01:00
Timothee Cour
7356bc29b7
new os.isRelativeTo ( #13212 )
2020-01-23 00:45:16 +01:00
Milan
3e843ab335
[backport] times/getClockStr(): fix mistake in doc ( #13229 ) [ci skip]
2020-01-22 18:22:14 +01:00
Juan Carlos
2fad7f134f
httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add headers argument instead of hardcoded empty ( #13207 )
2020-01-21 19:34:47 +01:00
Andreas Rumpf
bdb7c82c6a
fixes a critical times.nim bug reported on IRC [backport] ( #13216 )
2020-01-21 16:49:59 +01:00
Timothee Cour
b355ef2a72
fix #13211 relativePath("foo", ".") ( #13213 )
2020-01-21 15:48:19 +01:00
Miran
bf96d6d316
Idxmin & idxmax, continuation ( #13208 )
...
* Add idxmin() which returns the index of the minimum value
* Add idxmax() which returns the index of the maximum value
* Add tests for idxmin()
* Add tests for idxmax()
* Remove initialization of result = 0
* Adds overloading for arrays (no enums indexed arrays yet)
* Add support for enum index arrays
* Fix tests with enum
* Fix tests for idxmax
* Change names of the procedures to minIndex and maxIndex
* address Araq's comments:
- remove 'array' versions
- add .since pragma
- return 'int' instead of 'Natural'
- add changelog entry
Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com >
2020-01-20 16:57:34 +01:00
Federico Ceratto
8d64550b1e
Add link to packaging.html ( #13194 )
2020-01-19 14:15:59 +01:00
Timothee Cour
e11ecc8266
times: toUnixFloat, fromUnixFloat ( #13044 )
2020-01-18 01:24:44 +01:00
Andreas Rumpf
7626907401
ARC works for async on Windows ( #13179 )
2020-01-17 11:14:17 +01:00
Miran
352232e62d
style fix: change 'JS' to 'js' to make it consistent ( #13168 )
2020-01-16 14:14:03 +01:00
Timothee Cour
51c072bd37
export normalizePathEnd ( #13152 )
2020-01-15 15:03:06 +01:00
perter lee
1f27a2f8ab
fix the ftp store function read the local file bug ( #13108 ) [backport]
...
* Update asyncftpclient.nim
When use newStringOfCap function not have assign memory for the string data,so if use this address the fault is rasise.
* complelete the bugfix
2020-01-13 10:16:19 +01:00
Miran
c0973d1b47
[backport] fix #12813 , fix #13079 ( #13099 )
...
Correctly remove a key from CountTable when it is set to zero.
2020-01-10 15:24:33 +01:00
Andreas Rumpf
3a39ab83ac
fixes an asyncftpclient bug; refs #13096 [backport]
2020-01-10 09:42:21 +01:00
Timothee Cour
4cd86c0842
typetraits: fixes #6454 ; genericParams; added lenTuple; added tuple type get ( #13064 )
2020-01-10 08:51:37 +01:00
Tomohiro
a33b72af49
Fix error check code in osproc ( #13090 ) [backport]
2020-01-09 18:00:41 +01:00
Teashrock
27fee4d8b4
Deleted misplaced separator ( #13085 ) [backport]
...
Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
2020-01-09 11:48:13 +01:00
cooldome
871d5e79b1
distinctBase type trait for distinct types ( #13031 )
2020-01-08 00:36:57 +01:00
Miran
1551fff853
clean up deprecated stuff and unused imports in tests ( #13059 )
2020-01-07 09:49:08 +01:00
Araq
ae68ff959b
fixes #12996
2020-01-05 09:42:44 +01:00
Araq
a1beeb313f
fixes #13032
2020-01-04 19:33:49 +01:00
Sam Wang
441cacf70f
Added fix for handling TaintedStrings in streams and httpclient ( #12969 )
...
* Added fix for taint mode in streams and httpclient
* Removed taintMode export from system.nim
2019-12-29 17:37:22 +01:00
Simon Krauter
37e93eab66
parsecfg: retain CRLF line breaks, fixes #12970 ( #12971 )
2019-12-29 15:39:48 +01:00
Jack Tang
21ea1094ef
Allow customize Host header
2019-12-28 17:26:02 +00:00
Araq
3516947642
osproc: fixes regression
2019-12-24 17:33:27 +01:00
Araq
8f17a70fe1
ported osproc.nim to ARC
2019-12-24 17:33:27 +01:00
Araq
fbb8052e3a
fixes the distros.nim regression
2019-12-24 17:33:27 +01:00
Ico Doornekamp
28466ce6fc
Auto-initialize deques ( #12879 )
2019-12-21 21:01:34 +01:00
Emery Hemingway
148f6d9820
Implement NixOS distro check ( #12914 )
2019-12-18 08:01:58 +01:00
Timothee Cour
e5ed4c1b7d
fix json regression D20191212T144944 ( #12902 ) [backport]
2019-12-15 23:04:06 +01:00
Krzysztof Majk
e4e74a5565
remove unused import ( #12900 )
2019-12-15 22:59:08 +01:00
Andreas Rumpf
a0aa8fa857
fixes #12874 ( #12890 )
...
* fixes #12874
* fixes introduced regressions
2019-12-13 15:36:39 +01:00
Judd
56cf3403b4
introduce capture macro ( #12712 )
...
capture works for more cases than `closureScope`.
2019-12-10 13:16:37 +01:00
Andreas Rumpf
c282cee4db
feature dracula themed doc ( #12816 )
...
* Implement gorgeous Dracula themed Nim documentation
* Add color for escape sequences
* fixes the test cases
* the big CSS cleanup
2019-12-10 06:48:11 +01:00
Andy Davidoff
a3d45d0c1b
add a StringTable.clear that requires no mode specification ( #12853 )
...
* add clear overload, test, changelog
* add since annotation
2019-12-09 06:58:36 +01:00
Neelesh Chandola
ff5ef95414
Fixes #12832 ( #12842 ) [backport]
...
* Fix #12832
* nimVm -> nimvm in json.nim
* Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
2019-12-08 23:27:25 +01:00
KeepCoolWithCoolidge
ae7b53ec51
Fixes classify function to detect subnormal floating points ( #12836 )
...
* Fix classify to test for subnormality.
* Minor fix.
* Modified to maintain existing API.
* Minor change.
* Removed 32-bit case since float is always 64-bit.
2019-12-08 20:17:11 +01:00
Andrey Makarov
26074f594d
nimgrep improvements ( #12779 )
...
* fix sticky colors in styledWrite
* nimgrep: context printing, colorthemes and other
* add context printing (lines after and before a match)
* nimgrep: add exclude/include options
* nimgrep: improve error printing & symlink handling
* nimgrep: rename dangerous `-r` argument
* add a `--newLine` style option for starting matching/context
lines from a new line
* add color themes: 3 new themes besides default `simple`
* enable printing of multi-line matches with line numbers
* proper display of replace when there was another match replaced at
the same line / context block
* improve cmdline arguments error reporting
2019-12-05 14:42:20 +01:00