Timothee Cour
f258e4e70c
fix #18332 : XDeclaredButNotUsed hints now in deterministic order ( #18336 )
2021-06-24 08:31:55 +02:00
Andreas Rumpf
0f91b67f5c
fixes #18326 ( #18335 )
...
* fixes #18326
* make tests green again
2021-06-23 23:31:17 +02:00
Antonis Geralis
63456c6d7f
Add some tests ( #18333 )
2021-06-23 17:56:20 +02:00
Andrey Makarov
9c43f05099
Markdown: allow to end URL with balanced parenthesis ( #18321 )
...
* Markdown: allow to end URL with balanced parenthesis
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* apply suggestion
* remove unnecessary if
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-06-23 07:50:05 +02:00
Timothee Cour
5badeea170
followup #18318 : simplify dollarImpl and add a test ( #18330 )
2021-06-22 21:42:39 -07:00
flywind
037715285c
fix #18327 ( #18328 )
2021-06-22 12:44:56 +02:00
Timothee Cour
d398c558a4
close #13196 now that we have dragonbox ( #18316 )
2021-06-21 12:51:00 +02:00
flywind
2deb7011f5
fixes #17768 [backport:1.4] ( #18317 )
...
* fixes #17768 [backport:1.4]
* tiny
2021-06-21 12:50:47 +02:00
Timothee Cour
ad70a65e0e
fix #18310 system.== in vm for NimNode ( #18313 )
...
* fix #18310 == in vm
* fixup
* fixup
2021-06-21 09:46:31 +02:00
Andrey Makarov
1b3c0f142d
validate rst field for :number-lines:, :status: ( #18304 )
2021-06-20 20:00:42 +02:00
Timothee Cour
7d5e6b0169
support --hint:all:off --hint:x (ditto with --warnings + friends) ( #17852 )
...
* select all hints via `--hint:all:on|off`, etc
* simplify code with setutils
* address comment
2021-06-20 19:52:22 +02:00
Heiko Nickerl
92cb765714
Raise IndexDefect when deleting element at out of bounds index ( #17821 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Heiko Nickerl <mail@hnicke.de >
Co-authored-by: Heiko Nickerl <heiko.nickerl@flipapp.de >
2021-06-20 08:56:33 -07:00
Timothee Cour
6030e139b5
move {.injectStmt.} to experimental; add a test ( #18300 )
...
* move {.injectStmt.} to experimental; add a test
* undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
2021-06-20 09:51:07 +02:00
Andrey Makarov
590d457631
docgen: move to shared RST state ( fix #16990 ) ( #18256 )
...
* docgen: move to shared RST state (fix #16990 )
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* rename `cmdDoc2` to `cmdDoc`
* fix (P)RstSharedState convention
* new style of initialization
* misc suggestions
* 1 more rename
* fix a regression
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-06-20 09:50:03 +02:00
Timothee Cour
7714ab468a
make privateAccess work with generic types and generic instantiations; fix a SIGSEGV ( #18260 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-06-19 11:24:46 -07:00
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