Anthony Dario
19001c070b
Fix typo in sequtils documentation ( #19789 )
...
Found another small typo.
2022-05-13 11:19:42 +08:00
Alfred Morgan
b9f243eb2a
string is missing formatting when calling fmt ( #19780 )
...
it appears the documentation intends to compare & with .fmt but there is no formatting in the string. even though the assert is true it doesn't quite prove that .fmt is an equivalent formatter.
2022-05-10 17:45:57 +02:00
Zoom
0455d24d55
Fix questionable suggestion in strutils docs ( #19765 )
...
* Fix questionable suggestion in `stutils` docs
- Removes the recommendation to pass a string slice for getting a relative
index for `find` and `rfind` functions, as this currently makes a string
copy, while a simple subtraction is enough.
- Docstring for `SkipTable` type.
* Doc layout fixup
2022-05-06 11:19:27 +02:00
Anthony Dario
a4401054cc
Fix broken link in sets documentation. ( #19769 )
2022-05-06 17:16:00 +08:00
huantian
927978345b
Rework discarding futures documentation in asyncdispatch ( #19738 )
...
* Rework discarding futures docs in asyncdispatch
* Fix typos
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Use rst note::
Co-authored-by: flywind <xzsflywind@gmail.com >
* Split discarding and handling futures.
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2022-05-02 17:06:57 +01:00
Danil Yarantsev
2f32b450d3
Really fix StringStream with ARC at compile-time, improve streams test ( #19739 )
...
* Fix compile-time StringStream with ARC
* make readDataStr work with ARC, improve test
2022-04-25 11:15:03 +02:00
huantian
02e8aa9660
Fix doc: list of async backends ( #19741 )
2022-04-24 10:47:39 +01:00
Jason Beetham
dc4cc2dca5
Fix string stream crashing when created on nimscript due to last fix ( #19717 )
2022-04-14 11:30:59 +02:00
huantian
ef7d7f2459
Better error message and tests for bad await ( #19622 )
...
* Better error message and tests for bad await
* Use compiles to check if await is valid
* temp: disable windows noasync test
* Better error report, simplify test
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-13 23:03:46 +02:00
flywind
98cebad7de
enable style:usages for stdlib tests [backport: 1.6] ( #19715 )
...
* enable style:usages for stdlib tests
* freeAddrInfo
* more tests
* importc
* bufSize
* fix more
* => parseSql and renderSql
2022-04-13 11:53:02 +02:00
Jason Beetham
26acc97864
StringStreams no longer errors when intialized with literals on arc/orc ( #19708 )
2022-04-11 14:27:12 +02:00
Timothee Cour
e78ef57c93
typetraits: add toSigned, toUnsigned ( #18445 )
...
* typetraits: add toSigned, toUnsigned
* improve and add tests
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-07 17:38:01 -04:00
Nan Xiao
065f568470
No need to export pos from OptParser ( #19688 )
...
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-06 20:28:58 +02:00
Nan Xiao
a7024f49af
fix 19655 - fixing more url fragments ( #19669 )
2022-04-01 13:29:15 -04:00
rockcavera
1275763284
fix 19655 - fixing url fragment ( #19667 )
2022-04-01 08:01:51 +02:00
Jaremy Creechley
eae29e8eaf
Embedded Network patches - eventfd & socket getters ( #19632 )
2022-03-28 12:37:59 +02:00
John Titor
8cdd8867c0
Fix dial ignoring buffered parameter ( #19650 ) [backport]
2022-03-26 11:43:26 +01:00
Juan Carlos
b0bd4320a0
Remove deprecated typo poDemon ( #19631 )
...
* Remove Deprecated poDemon
* Remove Deprecated poDemon
2022-03-23 20:43:58 +01:00
flywind
7f6e800caf
move assertions out of system ( #19599 )
2022-03-23 20:34:53 +01:00
Dominic Ward
a8b5ad845c
Fix process lines iterator ( #19605 )
...
* Ensure lines when process done
* eliminate post-EOF exit test
* Recommend fixes for execCmdEx/execProcess
2022-03-23 07:50:36 +01:00
Juan Carlos
7a50d66346
Removed deprecated httpcore func ( #19550 )
...
* Remove Deprecated httpcore func
* Remove Deprecated httpcore func
* Fix a test with Deprecated func
* Restart CI, Apple can code shit anymore I tell you
2022-03-18 07:54:20 +01:00
flywind
8f9dd5b349
register callback for marshal in VM ( #19578 )
...
* register callback for marshal in VM
* remove unrelated code
* polish
* more tests
* more tests
* add loadVM and toVM
2022-03-08 18:12:31 +01:00
Sizhe Zhao
b2c5d7b4ff
Documentation: Fix word usage ( #19529 )
2022-02-14 22:15:59 +00:00
Juan Carlos
8e8231f9d6
Remove deprecated math.c_frexp ( #19518 )
...
* Remove Deprecated math proc
* Remove Deprecated math proc
* Remove Deprecated math proc
2022-02-14 14:35:33 +01:00
Juan Carlos
42eeab5fd1
Remove Deprecated oids.oidsToString ( #19519 )
...
* Remove deprecated oids.oidToString
* Remove deprecated oids.oidToString
2022-02-14 09:09:21 +01:00
David Krause
cda77c1520
use OrderedTable instead of OrderedTableRef for mimedb ( #19522 )
...
* use OrderedTable instead of OrderedTableRef for mimedb
Signed-off-by: David Krause <enthus1ast@users.noreply.github.com >
* added changelog entry for mimedb change
Signed-off-by: David Krause <enthus1ast@users.noreply.github.com >
2022-02-14 08:56:35 +01:00
konsumlamm
551225d888
Remove backslash in glob pattern ( #19524 )
2022-02-14 08:50:38 +01:00
flywind
891329cd4b
move io out of system ( #19442 )
...
* move io out of system
* fix tests
* fix tests
* next step
* rename to syncio
* rename
* fix nimscript
* comma
* fix
* fix parts of errors
* good for now
* fix test
2022-02-02 17:10:11 +01:00
ehmry
f7c4fb0014
os: faster getFileSize ( #19438 )
...
Use "stat" rather than "open", "seek", and "close" system calls.
The Windows implementation remains the same.
2022-01-24 20:57:37 +01:00
James
851e515bba
Resolve cross file resolution errors in atomics ( #19422 ) [backport:1.6]
...
* Resolve call undeclared routine testAndSet
* Fix undeclared field atomicType
2022-01-20 13:58:59 +01:00
hlaaftana
a95399143f
Use openarray of bytes in md5 ( #19307 )
...
* Use openarray of bytes in md5
* fix CI
* cleanup
* use noSideEffect for bootstrapping
* fix CI again
* actually fix CI by checking if it works
* this is getting ridiculous
* put old md5 version in compiler, remove vmop
2022-01-15 13:19:05 +01:00
Leon
5853303be0
docs: Fix broken cross references to rfind in strutils ( #19382 ) [backport]
...
Fixes three broken cross references to `rfind` in strutils.
Breakage due to signature changes of the `rfind` methods.
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com >
2022-01-13 14:45:47 +01:00
gecko
955040f0f1
Fix remove on last node of singly-linked list [backport:1.6] ( #19353 )
2022-01-10 10:27:59 +01:00
flywind
ae92eac060
stylecheck usages part two: stdlib cleanup ( #19338 )
...
* stylecheck usages part two: stdlib cleanup
typeinfo.nim: importCompilerProc => importcompilerproc
nre.nim: newLineFlags => newlineFlags
system.nim: JSRoot => JsRoot
ref #19319
* prefer importCompilerProc
2022-01-08 21:34:22 +01:00
Zachary Marquez
58656aa5bb
fix nim-lang#19343 ( #19344 ) [backport]
...
Ensure HttpClient onProgress is called once per second
Ensure that reported speed is accurate
2022-01-08 10:22:56 +01:00
rockcavera
c7d5b8c83d
Fix #19038 - making the Nim compiler work again on Windows XP ( #19331 )
...
* Update osenv.nim
* Update win_setenv.nim
* Update lib/pure/includes/osenv.nim
* Update lib/pure/includes/osenv.nim
* fixing cstring
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-01-07 08:26:55 +01:00
rockcavera
5ec8b60942
Update net.nim ( #19327 ) [backport]
2022-01-06 12:19:32 +01:00
flywind
1869826668
add std/private/win_getsysteminfo; refactor the usage of GetSystemInfo ( #19310 )
...
* add std/private/win_getsysteminfo
* import at the top level
* wrappers follow nep1 too
* follow review comment
2022-01-04 11:49:54 +01:00
Ștefan Talpalaru
35cae73aa5
devel: style fix ( #19318 )
...
this allows "--styleCheck:usages --styleCheck:error"
2022-01-04 07:56:10 +01:00
rockcavera
526a32e169
Fix #19314 - fixing broken DoublyLinkedList after adding empty DoublyLinkedList ( #19315 ) [backport]
...
* Update lists.nim
* Update tlists.nim
2022-01-03 20:14:08 +01:00
Carlo Capocasa
e49d52eb61
Add Week-Of-Year Implementation to Times Module ( #17223 )
...
* initial
* more tests
* Apply suggestions from code review
idiomatize
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* test iron age dates
* add examples
* fix typo
* consistent param mention
* add since pragrams
* add changelog
* Update lib/pure/times.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* fix examples
* fix negative years
* add getWeeksInYear tests
* add back fix dropped by rebase
* week-year tuple api
* add changelog
* fix doc tags
* add docstrings
* fix typos
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-01-03 09:11:23 +01:00
flywind
bbd5086bc3
[docs] clarify the raised exception ( #19308 )
...
* [docs] clarify the raised exception
Lest developers wanna know what the exception is.
* Apply suggestions from @konsumlamm
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-01-03 09:02:58 +01:00
rockcavera
dc5c88ca79
Fix #19297 - fixing broken list after adding empty list ( #19299 )
...
* Update lists.nim
* Update tlists.nim
* removed check `if b.tail != nil`
The tail of the list being null it is still possible to retrieve its end by going through all nodes from the head. So checking for null from `b.tail` is unnecessary. However, setting `a.tail = b.tail` only if `a.head != nil`, so you don't break a good list with an already broken one.
2021-12-30 21:52:48 +01:00
BarrOff
23d64be860
enable maxDescriptors on Illumos/Solaris ( #19295 )
2021-12-30 21:10:36 +01:00
Tomohiro
fdbec969d8
Fix #19107 ( #19286 ) [backport]
2021-12-25 10:31:35 +01:00
Andreas Rumpf
81d32cf7e5
Revert "Update uri.nim ( #19148 ) [backport:1.0]" ( #19280 )
...
This reverts commit a3ef5df680 .
2021-12-23 07:03:40 +01:00
MichalMarsalek
ea475a4e98
Update colors.nim ( #19274 )
...
* Update colors.nim
Added `lightgray` alias to `lightgrey` and `...grey`aliases for the rest of the gray colors.
Added color `rebeccapurple`.
Fixed the incorrect values for the `PaleVioletRed` and `MediumPurple` colors.
This module should now be matching the CSS colors.
I used the seq[tuple] syntax for defining the names.
* Document colors changes.
2021-12-20 10:40:32 +01:00
xioren
b812431f83
use uppercase "type" for Proxy-Authorization header ( #19273 )
...
Some servers will reject authorization requests with a lowercase "basic" type. Changing to "Basic" seems to solve these issues.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization
2021-12-19 13:01:17 +00:00
flywind
3d9b6cfebc
[formatter] async.nim uses two spaces ( #19264 )
...
according to https://nim-lang.org/docs/nep1.html#introduction-spacing-and-whitespace-conventions , two spaces should be preferred in stdlib.
2021-12-17 10:16:59 +00:00
Miran
c17baaefbc
[backport:1.0] json: limit recursion depth ( #19252 )
...
* json: limit recursion depth
* do not run this check for JS backend
2021-12-14 18:16:49 +01:00