Timothee Cour
87cd9b24a3
add more APIs to compiler/debugutils; re-export it ( #18243 )
2021-06-18 15:52:08 +02:00
Timothee Cour
ef121f3b99
followup #17876 : remove annoying enum name clashes in tests/enum/tenum.nim ( #18291 )
2021-06-17 16:19:16 -07:00
Timothee Cour
99411674a6
tests/exception/tsetexceptions.nim not joinable ( #18264 )
2021-06-17 08:20:33 +02:00
Andreas Rumpf
fd8b79707c
Revert "system/excpt: check if the exception is not nil before pop ( #18247 )" ( #18265 )
...
This reverts commit 0adb47aa15 .
2021-06-17 08:20:10 +02:00
Clyybber
13b94c0297
Fix doubly typed forward declarations ( #18279 )
...
* Add testcase
* Fix testcase
* Fix doubly typed forward decls
* Better fix
2021-06-16 16:40:22 +02:00
flywind
c51680e701
fixes #17696 ( #18276 )
2021-06-16 11:31:20 +02:00
Clyybber
c5cf21c0c4
Don't report unused hints for consumed AST ( #18270 )
...
* Fix #18203
* Add testcase
* Fix testcase
* Fix test
2021-06-16 02:45:05 +02:00
Timothee Cour
8ef6073543
add test case for pure enum redefinition error within enum (fixed in recent PR) ( #18266 )
...
* add test case for pure enum redefinition error within enum (fixed in recent PR)
* remove code duplication
* Revert "remove code duplication" (would require bootstrap >= 1.4)
This reverts commit 3f793874c2 .
* fixup
2021-06-15 08:56:10 +02:00
Mark Pointing
e80d7ff0f2
httpclient.nim Fixes #14794 and an issue where content-header is not set on postContent ( #18208 )
...
* Fixed missing newline after bound marker in mulipart post (#14794 ) and a problem where calling postContent with multipart data does not set content-length header.
* Update lib/pure/httpclient.nim
* Added comment outlining the reason for changes to httpclient.nim and added tests to ensure that multipart post has a newline at the end of the body, and that the content-length header is present.
* Fixed typo in comments.
* Removed redundant blank lines in thttpclient_standalone.nim.
Co-authored-by: Mark Pointing <mark@futurepoint.com.au >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-06-14 19:29:23 +02:00
Clyybber
8c42f5be02
Small scope refactoring ( #18263 )
...
* Small scope refactoring
* Add test for #10251
* Add inline where appropriate
2021-06-14 19:19:58 +02:00
alaviss
0adb47aa15
system/excpt: check if the exception is not nil before pop ( #18247 )
...
In CPS we would consume an exception in the except branch by stashing it
into a local then remove the exception from Nim environment so as not to
leak it to other code that would be running before the continuation
continues
However since popCurrentException() assumes that the exception always
exist, removing the exception from an except branch will cause a
SIGSEGV to happen. This commit fixes that.
2021-06-14 18:26:12 +02:00
Saem Ghani
488acd9d07
fixes #18235 - proc annotation type macro sym leak ( #18249 )
...
* fixes #18235 - proc annotation type macro sym leak
- also fixed a typo
- proc annotations guard symbol exports with shadow scopes
- symbol handling is shadow scope aware
* test for exporting an existing unexported sym
this one is for my homie alaviss.
* Special handling not needed in semProcAnnotation
* Testcasing
* [skip ci] clean-up and add some more comments
* [skip ci] rm trailing whitespace
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-06-14 09:21:33 +02:00
Timothee Cour
e1e8af535e
merge BuildMode into SuccessX, remove code duplication w drnim, add useful info to successx, add gc to compilesettings ( #18252 )
...
* merge BuildMode into SuccessX, add more info
* refactor duplicated with drnim
* fixup
* address comment
2021-06-14 08:51:40 +02:00
Timothee Cour
065243dc59
followup #17777 : declaredloc field error msgs now work with generics ( #18259 )
...
* followup #17777 : declaredloc field error msgs now work with generics
* fix tests
* cleanup
2021-06-14 08:21:18 +02:00
Timothee Cour
c871e22da2
fix #7717 roundtrip float to string; fix parseFloat for js ( #18248 )
...
* refs #7717 roundtrip float to string
* make parseFloat more correct
* improve float tests
* improve float tests
* cleanup
2021-06-13 07:32:47 +02:00
Timothee Cour
897e50d5fe
getType now works with tyInferred (arising from concepts); refs #18220 ( #18241 )
...
* getType now works with tyInferred (concepts); refs #18220
* avoid cast
* add more docs
2021-06-12 21:35:12 +02:00
Araq
2ca6169ba1
added a test case ensuring exception inference continues to work
2021-06-11 11:09:18 +02:00
flywind
6b97889f44
fix #9437(fix re.replace wrong behaviour) ( #17546 )
...
* fix nim js cmp fails at CT
* fix
2021-06-10 18:26:58 +02:00
Andreas Rumpf
2ea7287217
view types: spec changes ( #18226 )
...
* view types: spec changes
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-06-10 16:49:17 +02:00
Fröhlich A
7bf0404dd8
#18216 make moveDir work across partitions on windows ( #18223 )
...
* return false if AccessDeniedError in tryMoveFSObject - fixes #18216
* add moveDir & moveFile tests
* rename `isMoveDir` parameter to `isDir`
2021-06-10 14:28:00 +02:00
Timothee Cour
79ded694d7
avoid re-exporting options from std/wrapnils ( #18222 )
2021-06-10 07:00:34 +02:00
Andreas Rumpf
47acc80f4e
make strict funcs analysis smarter ( #18219 )
...
* make strict funcs analysis smarter: varParam[i] = v is different from varParam[i][] = v
* added a test case
* Update compiler/varpartitions.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-06-09 17:33:19 +02:00
Bung
429b128632
change mimedb stroe stringtable to orderedtable ( #18065 )
...
* change mimedb stroe stringtable to orderedtable
* Update lib/pure/mimetypes.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-06-07 13:57:42 +02:00
Timothee Cour
3cc547f2df
macros.treeRepr + friends: collapse SymChoice ( #18072 )
...
* macros.treeRepr + friends: collapse SymChoice
* make repr+friends work with invalid symchoice nodes
* address comment
2021-06-05 06:58:26 +02:00
Andreas Rumpf
06232b7f2e
fixes #18058 ( #18162 )
2021-06-03 17:12:45 +02:00
Andreas Rumpf
daaa40973c
added float32 schubfach algorithm; wip ( #18155 )
...
* added float32 schubfach algorithm; wip
* fixes #18418
2021-06-03 12:09:40 +02:00
Timothee Cour
0de3d4292f
fix #16993 , #18054 , #17835 runnableExamples now works with templates and nested templates ( #18082 )
2021-06-02 09:02:14 -07:00
n5m
4ee6eddad4
add string-string tests for find and rfind ( #18137 )
...
* add string-string tests for find and rfind
* remove duplicate test cases
* remove more redundant test cases
2021-06-02 16:19:30 +02:00
Andreas Rumpf
f10eef29b5
fixes #18059 ( #18140 )
...
* fixes #18059
2021-06-02 13:13:23 +02:00
Andreas Rumpf
63db2b19bf
use dragonbox algorithm; alternative to #18008 ( #18139 )
...
* use dragonbox algorithm; alternative to #18008
* removed unsafe code
2021-06-01 22:29:53 +02:00
Andrey Makarov
ba3ec7b049
docs: Latex generation improvements ( #18141 )
...
* docs: improve Latex generation
* make it work on Windows + fix ] escaping
* minor fixes with escapes and style
2021-06-01 20:47:23 +02:00
flywind
c2e3dc0ed1
close #18129 Add setCurrentException for JS backend ( #18145 )
...
* [std/re] make interface consistent
* tiny
* revert
* close #18129 add setCurrentException
* changelog entry
2021-06-01 18:16:25 +02:00
Dylan Modesitt
06d50bfd4c
Fixes #5034 illformed AST from getImpl with proc returning value ( #17976 )
...
* Fixes 5034
* address comments
2021-05-31 22:51:32 +02:00
Timothee Cour
369a7d1246
jsonutils.toJson now serializes JsonNode as is by default ( #18097 )
...
* jsonutils.toJson now serializes JsonNode as is (without deep copy nor treating it as a regular ref object)
* JsonNodeMode
2021-05-31 22:17:52 +02:00
Timothee Cour
9559350e34
add os.getCacheDir ( #18126 )
...
* add `os.getCacheDir`
* fixup
* address comments
2021-05-31 22:16:33 +02:00
Timothee Cour
a36efb59b5
fix #16256 : nimout: <empty> should give error (vacuously true); improve a few tests ( #18089 )
...
* fix #16256 : nimout: <empty> should give error (vacuously true); improve some tests
* renamed: tests/stdlib/t9710.nim -> tests/misc/t9710.nim
* improve tests
* fix non-DRY tests
* improve $nim_prs_D/tests/stdlib/t9091.nim
* renamed: tests/stdlib/t9091.nim -> tests/misc/t9091.nim
* fixup
* address comment: doAssert => result.parseErrors
2021-05-31 13:39:19 +02:00
Saem Ghani
b7ad29e692
fix #18113 ( #18124 )
2021-05-31 13:27:44 +02:00
n5m
064fe18de6
improve fast returns of find and rfind ( #18127 )
2021-05-31 11:20:15 +02:00
Timothee Cour
18b4774311
document macros.unpackVarargs ( #18106 )
...
* deprecate macros.unpackVarargs
* un-deprecate unpackVarargs and add docs+runnableExamples
* update examples + tests with varargs[typed]
2021-05-31 10:51:20 +02:00
Miran
50e98e6efa
hashes for refs should be an opt-in feature ( #18098 )
2021-05-30 23:55:51 +02:00
Yuriy Glukhov
a6bd6c7ed8
Fixes #17849 ( #18055 ) [backport:1.2]
...
* Fixes #17849
* Update compiler/closureiters.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-05-30 22:38:33 +02:00
vabresto
cfe19247e8
Disable tasynchttpserver_transferencoding on FreeBSD ( #18122 )
2021-05-29 12:44:39 -07:00
vabresto
9eae6b4fe3
fix #17456 flaky test tasynchttpserver_transferencoding ( #18052 )
2021-05-28 15:17:37 -07:00
Timothee Cour
1e0165186b
testament: remove deadcode related to realtimeGC, testC, callCCompiler ( #18087 )
2021-05-26 11:49:01 -07:00
Timothee Cour
3b1aabdcff
change --hint[X] => --hint:X in nim repo (avoids shell quoting issues) ( #18085 )
2021-05-26 09:51:48 +02:00
Timothee Cour
0b2bbcaa23
fix #18077 testament now parses cmd properly ( #18086 )
2021-05-26 09:46:53 +02:00
Timothee Cour
8df55d0ad7
close #3482 no more cgen error with typed templates ( #18094 )
2021-05-26 09:44:00 +02:00
Timothee Cour
b59dc3b255
remove some custom logic in testament around flags, testExec ( #18090 )
...
* remove some custom logic in testament around flags, testExec
* remove testExec, custom logic around flags from testament
* fixup
2021-05-26 09:41:50 +02:00
Timothee Cour
d217888e56
close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to distinguish from 0.0 ( #18067 )
2021-05-23 23:06:14 +02:00
Timothee Cour
1636c05d13
close #5540 generic object with generic field evaluated too early ( #18062 )
2021-05-23 01:02:04 -07:00