Ștefan Talpalaru
35cae73aa5
devel: style fix ( #19318 )
...
this allows "--styleCheck:usages --styleCheck:error"
2022-01-04 07:56:10 +01:00
Smarcy
fcf1df6e56
fixed typos ( #19316 )
2022-01-03 15:04:15 -05: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
flywind
19bcb43a0e
enable multiple packages (arraymancer, fidget ...) ( #19311 )
...
The cause of arraymancer failure has been tracked here: https://github.com/mratsim/Arraymancer/issues/505
And it was fixed by https://github.com/mratsim/Arraymancer/pull/542
2022-01-03 20:40:43 +08:00
Nan Xiao
bd4f76a2e3
docs: Fix typo in tut1.rst ( #19309 )
2022-01-03 10:30:26 +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
BarrOff
53e1d57419
add compile time option for POSIX sigwait on Illumos/Solaris ( #19296 )
...
* add compile time option for POSIX sigwait on Illumos/Solaris
* fix link to documentation of `sigwait` on Illumos/Solaris
2022-01-02 07:37:13 +01:00
hlaaftana
61d682e733
Allow full commands and blocks in type sections ( #19181 )
...
* allow full commands and blocks in type sections
* update grammar
* fix changelog [skip ci]
* more tests
* even more tests
2022-01-02 07:29:55 +01:00
rockcavera
ef634cc251
Update manual.rst ( #19301 )
2022-01-01 13:33:29 +01:00
hlaaftana
faaf271928
Update JS and nimscript import tests ( #19306 )
...
* add new modules, except experimental ones
* remove deprecated modules mersenne and sharedlist
* better describe why some modules fail and some modules don't
2022-01-01 13:33:16 +01:00
Andreas Rumpf
ac37eed5a2
fixes #16617 [backport] ( #19300 )
2021-12-31 09:21:30 +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
Andreas Rumpf
a9223d4cdd
nep1: make header reflect reality ( #19294 )
2021-12-29 12:18:32 +01:00
rockcavera
77ad8b81e4
fix 19292 ( #19293 )
2021-12-29 07:26:54 +01:00
Andreas Rumpf
a61bbf7d8d
fixes grammar typos [backport] ( #19289 )
2021-12-27 17:28:19 +01:00
Tomohiro
fdbec969d8
Fix #19107 ( #19286 ) [backport]
2021-12-25 10:31:35 +01:00
Jason Beetham
fa96e56ad0
Fixed object field access of static objects in generics ( #19283 ) [backport]
2021-12-23 07:12:56 +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
pkubaj
7a5314c571
Fix build on FreeBSD/powerpc ( #19282 )
...
It's currently misdetected as powerpc64.
2021-12-22 20:52:33 -05:00
Andrey Makarov
19898e1225
Fix group reference (with capital letters ( #19196 )
...
in group name)
2021-12-20 15:10:15 -05:00
Jake Leahy
4da7dbffc5
Extract runnables that specify doccmd ( #19275 ) [backport:1.6]
2021-12-20 17:29:03 +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
Don-Duong Quach
610516e027
Fixed typo in manual.rst unsafeAssign->uncheckedAssign. Fixes part 1 of #19266 ( #19267 )
2021-12-17 20:58:31 +01: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
rockcavera
5ddaf3e1fb
fix #19244 - solves the problem of the InAddr object constructor in Windows. ( #19259 )
...
* Update winlean.nim
* Update tnet_ll.nim
2021-12-17 09:01:33 +01:00
snxx
609388e33f
Add icon for Nim ( #19258 )
...
* Add Nim's file icon
* Add installer icon
* Add uninstaller icon
2021-12-17 08:58:05 +01:00
Sven Keller
5d2bab7558
suggestion to respect typedarray type ( #19257 )
...
* suggestion to respect typedarray
* Update jssys.nim
Co-authored-by: Sven Keller <s.keller@cortona.de >
2021-12-16 08:58:32 +01: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
PMunch
3e31f55aed
Fix #19253 ( #19254 )
...
This fixes 19253 by marking the bodyStream as completed when no content
was sent.
2021-12-14 13:28:42 +00:00
Nick Wilburn
c55930f2e6
fix: fixes bug in CVerifyPeerUseEnvVars ( #19247 )
...
Previously CVerifyPeerUseEnvVars was not being passed into
scanSslCertificates, which meant that we weren't scanning
additional certificate locations given via the SSL_CERT_FILE and
SSL_CERT_DIR environment variables
2021-12-14 12:22:10 +00:00
Nan Xiao
78b86b7942
basicopt.txt: Unify the format ( #19251 )
2021-12-14 09:54:01 +01:00
Carlo Capocasa
0ff4b2ba7e
fix bug #14468 zero-width split ( #19248 )
2021-12-13 07:29:22 +01:00
Jaremy Creechley
4b5cecd902
Various std net improvements ( #19132 )
...
* Variant of that works with raw IpAddresses.
- Add doc tests for new net proc's.
- Aadd recvFrom impl
- Add recvFrom impl -- tweak handling data var
- Update lib/pure/net.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
- cleaning up sendTo args
- remove extra connect test
- cleaning up sendTo args
- fix inet_ntop test
- fix test failing - byte len
* fix test failing - byte len
* debugging odd windows build failure
* debugging odd windows build failure
* more experiments to figure out the windows failure
* try manual assigment on InAddr
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-12-12 21:39:56 +00:00
Dominik Picheta
a3ef5df680
Update uri.nim ( #19148 ) [backport:1.0]
2021-12-11 09:24:23 +01:00
Ștefan Talpalaru
1a92edeb89
nimc.rst: fix table markup ( #19239 )
2021-12-11 05:15:44 +01:00
Andreas Rumpf
908fc2a22e
let Nim support Nimble 0.14 with lock-file support [backport:1.6] ( #19236 )
2021-12-10 17:13:48 +01:00
Andreas Rumpf
7ff43d07b2
added --nimMainPrefix switch; fixes #15955 ; refs #16945 [backport:1.6] ( #19235 )
2021-12-10 14:28:59 +01:00
Andreas Rumpf
9338aa2497
fixes a possible 'javascript:' protocol exploit [backport:1.0] ( #19134 )
...
* fixes a possible 'javascript:' protocol exploit [backport:1.0]
* add tests
* Update tests/stdlib/trstgen.nim
* add the same logic for hyperlinks
* move the logic into a proc
Co-authored-by: narimiran <narimiran@disroot.org >
2021-12-10 09:24:20 +01:00
MichalMarsalek
c989542339
move toDeque to after addLast ( #19233 ) [backport:1.0]
...
Changes the order of procs definitions in order to avoid calling an undefined proc.
2021-12-10 07:39:12 +01:00
Jaremy Creechley
d39147219a
Revert "swap port to correct port order ( #19177 )" ( #19234 )
...
This reverts commit 0d0c249074 .
2021-12-10 07:38:39 +01:00
Ștefan Talpalaru
69aabdab80
nimRawSetjmp: support Windows ( #19197 )
...
* nimRawSetjmp: support Windows
Using `_setjmp()` directly is required to avoid some rare (but very
annoying) exception-related stack corruption leading to segfaults on
Windows, with Mingw-w64 and SEH.
More details: https://github.com/status-im/nimbus-eth2/issues/3121
Also add "nimBuiltinSetjmp" - mostly for benchmarking.
* fix for Apple's Clang++
2021-12-10 06:31:29 +01:00
Andreas Rumpf
32d4bf3525
fixes an old ARC bug: the produced copy/sink operations don't copy the hidden type field for objects with enabled inheritance; fixes #19205 [backport:1.6] ( #19232 )
2021-12-09 22:23:16 +01:00
flywind
4f64c9fae5
add comments to spawn and pinnedSpawn ( #19230 )
...
`spawn` uses `nimSpawn3` internally and `pinnedSpawn` uses `nimSpawn4` internally. I comment it in order to help contributors get the gist of its functionality.
2021-12-09 18:49:31 +01:00
flywind
99f8793502
remove std/sharedstrings ( #19228 )
...
* remove std/sharedstrings
it has been broken since 0.18.0
* rephrase the changelog entry
2021-12-09 22:37:59 +08:00
wenghongquan
742e9d65ad
Add support for LoongArch ( #19223 )
...
* Add support for LoongArch
* Update compiler/installer.ini
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-12-09 14:00:33 +01:00
Andreas Rumpf
502ac4ed5e
fixes a converter handling regression that caused private converters to leak into client modules; fixes #19213 ; [backport:1.6] ( #19229 )
2021-12-09 13:56:51 +01:00
flywind
0992854941
Atomic inc/dec should use ATOMIC_SEQ_CST ( #19212 )
2021-12-08 08:40:35 +01:00