Jason Beetham
da0a2fdca2
Unpack mSlice tupleconstr for static openarrays ( #20615 )
2022-10-22 06:37:23 +02:00
Andreas Rumpf
0faae4d5e2
fixes a strict case object problem that has been reported on the forum ( #20614 )
2022-10-21 22:46:32 +02:00
ringabout
3c12b72168
add typesafe std/paths, std/files, std/dirs, std/symlinks ( #20582 )
...
* split std/os; add typesafe std/paths
* add more files, dirs, paths
* add documentation
* add testcase
* remove tryRemoveFile
* clean up
* Delete test.nim
* apply changes
* add `add` and fixes
2022-10-21 21:53:44 +02:00
Bung
66cbcaab84
fix #20152 Illegal capture of closure iterator, when should be legal ( #20607 )
2022-10-21 09:59:05 +02:00
Bung
84fab7f39b
fix #19349 incompatible type when mixing float32 and cfloat in generics ( #20551 )
2022-10-21 09:28:18 +02:00
Bung
04c48e3c5b
fix #19426 compile error using when/elif/else and typedesc in template ( #20550 )
2022-10-21 09:26:46 +02:00
Amjad Ben Hedhili
5b195ab0f0
Add safe parameter to base64.encodeMime ( #20559 )
...
* Improve `encodeMime` signature
* `string` to `openArray[char or byte]`
* `safe` parameter
* Fix
* Revert "Fix"
This reverts commit a394c505c2 .
* Remove encodeMime's openArray overload
* Document the `safe` parameter
* Add changelog entry
2022-10-21 09:25:25 +02:00
ringabout
1db25ffcd3
closes #19969 ; add testcase for #19969 #15952 #16306 ( #20610 )
...
closes #19969 ; add testcase
2022-10-21 13:38:40 +08:00
Andreas Rumpf
76763f51aa
implemented strictCaseObjects ( #20608 )
...
* implemented strictCaseObjects
* changelog update
2022-10-21 06:55:52 +02:00
Jason Beetham
4aa67ad7fd
Implemented mSlice on the VM allowing toOpenArray to work at compile time. ( #20586 )
...
* Implemented opcSlice to make 'toOpenArray' work on the VM
* Added nkOpenArray for VM to reduce bodgeness
* Fixed range issues and erraneous comments
* Range check correctly for openArrays in opcLdArr
* Inverted logic for ldArr checking
* vm now supports slicing strings
* Added string tests
* Removed usage of 'nkOpenArray' and redundant operations
* Refactored vmSlice implementation, removing redundant and incorrect code
* Made tuples go throw opcWrObj for field assignment
* All strkinds should be considered for openarrays
2022-10-20 23:59:57 +02:00
ringabout
ff2cb113ad
move procs in os to appdirs ( #20605 )
...
* move procs in os to `appdirs`
* Update lib/std/private/osappdirs.nim
2022-10-20 23:14:50 +02:00
ringabout
14a2fb71b9
change vm imports after bootstrapping ( #20602 )
2022-10-20 21:47:59 +08:00
ringabout
2ffa230b49
enable ggplotnim ( #20600 )
...
ref https://github.com/Vindaar/ggplotnim/pull/151
ref b1a653b198
2022-10-20 17:11:51 +08:00
ringabout
f6a002c8a5
[std/os] split and re-export ( #20593 )
...
* [std/os] split and export
* move to private modules
* fixes docs and tests
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-10-20 07:58:29 +02:00
ringabout
ea5dcdbe8f
add measuremancer to important packages ( #20599 )
...
* add measuremancer to important packages
wait for https://github.com/nim-lang/packages/pull/2392
* Update testament/important_packages.nim
* Update testament/important_packages.nim
* Update testament/important_packages.nim
2022-10-20 01:22:53 +08:00
SirOlaf
2f441ac675
[backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ( #20578 )
...
* Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent
* Add test
* Update compiler/lookups.nim
Co-authored-by: SirOlaf <a>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-10-18 14:56:38 -04:00
ringabout
b07526b2c7
refactor envvars, oserrors; register vmops ( #20592 )
...
* refactor envvars, oserrors; register vmops
* remove type definitions
2022-10-18 19:44:26 +02:00
ringabout
b13ef07f58
enable telebot ( #20589 )
...
ref https://github.com/ba0f3/telebot.nim/pull/79
ref https://github.com/ba0f3/telebot.nim/releases/tag/2022.10.18
2022-10-18 18:25:26 +08:00
ringabout
15dff4daff
fixes niminst with stricteffects; add testcase for niminst ( #20587 )
...
fixes niminst with stricteffects; add testcase
2022-10-18 08:59:02 +02:00
Andreas Rumpf
81087c949f
fixes #20572 ( #20585 )
...
* fixes #20572
* added a test case
2022-10-17 23:48:51 +02:00
ringabout
c0824b9b80
[std/os clean up] import and export osseps ( #20580 )
...
import and export osseps
2022-10-17 20:29:00 +02:00
Juan Carlos
b7f1757952
Documentation only, dom ( #20584 )
...
Add docs to dom
2022-10-17 20:01:08 +02:00
Can Lehmann
2102e3b02f
Fix #12517 Allow single branch when nimvm statements ( #20577 )
...
Allow single branch when statements
2022-10-17 08:01:53 +02:00
Andrey Makarov
081dfea746
Fix "imported but not used" warnings ( #20575 )
2022-10-16 20:24:16 +02:00
ringabout
0bacdf5fdf
fixes #20515 ; base method requires explicit {.gcsafe.} to be GC-safe ( #20574 )
...
* fixes #20515 ; base requires explicit `{.gcsafe.}` to be GC-safe
* add tests
2022-10-16 13:20:05 +02:00
ringabout
619d6c318c
enable glob ( #20573 )
...
ref 5cc3310437
2022-10-16 09:52:19 +08:00
Antonis Geralis
ed26156c99
atomicInc global alloc counters ( #20571 )
2022-10-16 01:07:22 +02:00
ringabout
1e15f975b8
fixes #19162 ; enable strictEffects for v2 ( #19380 )
...
* enable stricteffects
* add gcsafe
* fix tests
* use func
* fixes pegs tests
* explicitly mark repr related procs with noSideEffect
* add nimLegacyEffects
* change URL
* fixes docopt
* add `raises: []` to repr
* fixes weave
* fixes nimyaml
* fixes glob
* fixes parsetoml
* Apply suggestions from code review
* Update testament/important_packages.nim
* add legacy:laxEffects
2022-10-15 14:07:40 +02:00
Bung
0510a2be0d
fix #19700 Crash when passing a template to a generic functio… ( #20567 )
...
fix nim-lang#19700 Crash when passing a template to a generic function expecting a procedure
2022-10-15 07:15:58 +02:00
ringabout
57574eaf31
fixes changelog for oids ( #20565 )
2022-10-14 20:58:36 +08:00
Bung
b286448a99
fix #8821 JS codegen can produce extreme switch statements with case … ( #20548 )
...
* fix #8821 JS codegen can produce extreme switch statements with case a of range
* remove totalRange
2022-10-14 12:21:02 +02:00
Andreas Rumpf
07b645342a
fixes #3748 ( #20563 )
...
* fixes #3748
* fix the regression
* don't use the new allocator for the SSL wrapper
* fixes regression
2022-10-14 12:00:38 +02:00
Andrey Makarov
b793ca7394
Validate nimgrep filter options not empty ( #20562 )
2022-10-14 00:44:34 -04:00
ringabout
be18f4e513
follow up #19714 ; add memmem optimizations for find on Linux, Macos and BSDs ( #20556 )
...
* fixes tests
* add memmem optimization for find
* fixes
* ty[o
* fixes `"abc".find("") == 0 doesn't work on macOS
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
2022-10-13 23:58:59 +02:00
ringabout
6082b9ea5d
fixes #20553 ; don't format code for stropping identifier ( #20561 ) [backport]
...
* fixes #20553 ; don't format code for stropping identifier
* add tests
* Update nimpretty/tests/expected/simple.nim
2022-10-13 23:37:41 +02:00
Bung
169d3fda00
fix #18136 tests/proc/t17157.nim now gives SIGSEGV instead of error ( #20555 )
2022-10-13 06:39:43 +02:00
ringabout
a1a9d63d22
add nimPNG to important packages ( #20557 )
...
* try to enable nico since nimPNG works with ORC now
ref 2dccf3e19c
* Update important_packages.nim
2022-10-13 11:51:09 +08:00
Bung
ea2f2775a7
fix #18990 Regression in proc symbol resolution; Error: attempting to… ( #20554 )
...
fix #18990 Regression in proc symbol resolution; Error: attempting to call routine
2022-10-12 20:44:45 -04:00
Dominik Picheta
fa60378a7f
Return error message in output of gorge/staticExec. ( #18942 )
...
* Return error message in output of gorge/staticExec.
* Document nimLegacyGorgeErrors in changelog.
2022-10-12 18:52:22 +02:00
Andrey Makarov
19ff746916
Markdown code blocks migration part 7 ( #20547 )
2022-10-12 16:13:43 +02:00
ringabout
13b3ea71da
oids sticks to 24 length strings; fixes breaking changes ( #20546 )
...
oids sticks 24 length strings
2022-10-12 15:15:21 +02:00
ringabout
7394587217
move google fonts to the last part ( #20541 )
...
* move google fonts to the last part
* fixes tests
* fix rst2html
2022-10-11 19:42:02 +02:00
Bung
083ea8f10c
fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' ( #20522 )
...
* fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural'
* try fix
2022-10-11 11:42:49 +02:00
ringabout
5602183234
'lock levels' are deprecated, now a noop ( #20539 )
...
* 'lock levels' are deprecated, now a noop
* fixes tests
2022-10-11 09:17:09 +02:00
Andreas Rumpf
7587371554
time to make IC work with ORC (here we go again...) ( #20538 )
...
works for me
2022-10-11 09:00:07 +02:00
ringabout
666a0e34cd
remove unused userVersion:1.6 which is succeeded by nimPreviewSlimSystem in this case ( #20535 )
...
removed unused userVersion:1.6
2022-10-10 23:38:18 +02:00
ringabout
0774c3aaaa
update the maintained repo of ast-pattern-matching ( #20537 )
2022-10-10 15:48:51 -04:00
Andreas Rumpf
08ae3467b9
refactorings ( #20536 )
...
* refactoring
* refactoring: removed unused macroUsagesSection
* enum instead of bool for better readability
2022-10-10 21:40:07 +02:00
ringabout
e290b028ab
Make rstgen work with gcsafe ( #20534 )
...
* Make rstgen work with gcsafe
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* add tests and fixes
* if nimHasWarningAsError
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2022-10-10 18:56:01 +02:00
ringabout
1f2075042b
enable nimlsp and ast_pattern_matching ( #20533 )
2022-10-10 22:35:39 +08:00