Andrey Makarov
8ed2431db0
Implement Unix file regularity check ( #20448 ) ( #20628 )
...
* Implement Unix file regularity check
* update std/dirs also
2022-10-25 07:42:47 +02:00
ringabout
c1343739e1
add type check for default fields ( #20652 )
2022-10-25 07:39:57 +02:00
ringabout
064b72a59c
fixes #1027 ; disallow templates to use ambiguous identifiers ( #20631 )
...
* test qualifiedLookUp in templates
* check later
* add testcase
* add 4errormsg
* Update tests/template/m1027a.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
* Update tests/template/m1027b.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-10-24 21:44:09 +02:00
Andreas Rumpf
48d41ab375
fixes #20645 ( #20646 )
...
* fixes #20645
* better bugfix
2022-10-24 21:41:29 +02:00
Jason Beetham
ea0e45e62f
Added 'openArray[char]' overloads to 'std/parseutils' ( #20527 )
...
* Added 'openarray[char]' overloads to 'std/parseutils'
* Removed redundant `start` and `last` params from slice using procs
* Fixed type for parseIdent overload
* fixed one by off with 'substr'
* removed missed start parameters for procedures
* Added 'openarray[char]' overloads to 'std/parseutils'
* Removed redundant `start` and `last` params from slice using procs
* Fixed type for parseIdent overload
* fixed one by off with 'substr'
* removed missed start parameters for procedures
* Fixed VM op to work with new 'opcSlice'
* Corrected captureBetween's logic to work with openarray
* js sys's parsefloat logic now uses openarray
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
2022-10-24 14:50:54 -04:00
ringabout
7c2aa53e44
fixes #19278 ; make privateAccess work with generic ref object ( #20640 )
...
* fixes #19278 ; make `privateAccess` work with generic ref object
* fixes
2022-10-24 15:24:51 +02:00
Jake Leahy
d261135c5c
Fix tuple size check in std/jsonutils ( #20637 )
...
* Add test for tuple being invalid size
* Test tuple size before accessing fields
* Fix formatting for import
* Fix not being able to build from csources_v1
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-10-24 17:17:14 +08:00
ringabout
98b2838a30
borrowed procs can have a body now for documentation generation ( #20617 )
...
* borrowed procs can have a body now
* fixes examples
2022-10-24 10:08:39 +02:00
Tanguy
008c3ec76a
Fix double defer with break in closureiterators [backport] ( #20630 )
...
Fix double defer with break in closureiterators
Signed-off-by: Tanguy <tanguy@status.im >
Signed-off-by: Tanguy <tanguy@status.im >
2022-10-24 08:50:48 +02:00
Jake Leahy
69cb671d8d
Pass json options to hooks ( #20638 )
...
* Added tests
* Fix expected string
* Allow hooks to take an optional parameter that is the current options
* Add options to hooks for other generic types
* Fix doc links
2022-10-24 08:14:17 +02:00
Tanguy
4578e773ce
Remove side-effects from sysFatal with panics on ( #20632 )
2022-10-24 07:57:49 +02:00
ringabout
6d8178a93e
closes #4678 ; add testcase ( #20634 )
2022-10-24 09:26:07 +08:00
ringabout
684a862526
closes #4466 ; add testcase ( #20625 )
2022-10-23 16:47:52 +08:00
ringabout
fa1606c6d6
enable static tests for topenarray ( #20620 )
2022-10-23 00:36:11 +08:00
ringabout
9361938ccd
add std/appdirs ( #20618 )
2022-10-22 13:42:46 +02:00
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
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
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
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
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
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
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
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
Bung
169d3fda00
fix #18136 tests/proc/t17157.nim now gives SIGSEGV instead of error ( #20555 )
2022-10-13 06:39:43 +02: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
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
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
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
d954e698b3
Automatic dereferencing is removed ( #20531 )
2022-10-10 15:02:23 +02:00
Bung
db3d2971cf
fix #18886 crash on ambiguous proc cast ( #20472 )
...
* fix #18886 crash on ambiguous proc cast
* follow suggestion
2022-10-10 11:09:54 +02:00
ringabout
5e4dd571d4
fixes #20516 ; system.create doesn't work with bitfield objects ( #20518 )
...
* Revert "fixes #19000 (#19032 )"
This reverts commit 2bda4a30a6 .
* fixes #20516 ; add testcase
2022-10-08 17:38:22 +02:00
ringabout
a132f5502a
closes #12994 ; add testcase ( #20511 )
2022-10-08 00:27:17 +08:00
ringabout
c651817ffd
fixes devel CI ( #20512 )
2022-10-07 15:00:15 +02:00
ringabout
079363bfc3
remove implicit let/var default initialization ( #20508 )
2022-10-07 07:49:27 +02:00
Andreas Rumpf
0d23419e68
DAA and 'out' parameters ( #20506 )
...
* DAA and 'out' parameters
* progress
* documented strictDefs and out parameters
* docs, tests and a bugfix
* fixes silly regression
2022-10-06 17:08:41 +02:00
ringabout
e323b91a32
correct grammar (ref #20199 ) and add check for grammar.txt ( #20494 )
...
* correct grammar; ref #20199
* add check for keeping grammar.txt up-to-date
* add nimTestGrammar
2022-10-06 16:36:32 +02:00
ringabout
114acff98d
closes #9401 ; add testcase ( #20507 )
2022-10-06 13:51:42 +08:00
ringabout
723a71bd22
follow up #20109 ; remove shallow seqs/strings for ORC ( #20502 )
...
* remove `shallow` seqs/strings for ORC
* add a changelog item
* change url of DelaunayNim
2022-10-06 07:16:50 +02:00