Commit Graph

19255 Commits

Author SHA1 Message Date
Beshr Kayali
f4dd95f3be Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)
* Fix parseUri to sanitize urls containing ASCII newline or tab

* Fix ups based on review

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Additional fix ups based on review

- Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict
- Move some parseUri tests to uri module test file

Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>

* Update changelog

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
2021-05-09 19:24:00 +01:00
Andreas Rumpf
d84a3b10b5 fixes #17675 (#17981) 2021-05-09 11:34:28 +02:00
Timothee Cour
69710e4548 fix #17960: honor matrix also for action: compile, action: reject (#17980)
* fix #17960: honor `matrix` for all action
2021-05-09 09:50:08 +02:00
Clyybber
72d6b59ffa treetab: tiny cleanup (#17929)
* treetab: tiny cleanup

* Another tiny thing

* Explicitly move n

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>

* Typo

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-05-09 00:56:37 +02:00
Timothee Cour
4e0f38fbb1 testament :show duration also for failed tests; improve tshould_not_work; mitigate #17946 tchannels timeouts (#17947)
* refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels

* revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines

* add test

* workaround for yet another testament bug
2021-05-08 17:13:47 +02:00
Timothee Cour
eba1c3fd24 merge initUri() overloads, improve uri examples (#17970)
* deprecate `uri.initUri` and improve uri examples

* remove `func initUri*()` and make isIpv6 optional

* fixup
2021-05-08 16:58:30 +02:00
Andreas Rumpf
c14427dbf3 ORC: cursor inference bugfix (#17973)
* fixed a .cursor inference bug

* added a test case
2021-05-08 16:47:06 +02:00
Timothee Cour
38b41f893a fix #17941: UnusedImport works for var/let/const/type invoked inside a generic (#17942)
* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic

* fixup
2021-05-08 09:56:46 +02:00
Timothee Cour
e224865b3b add astmsgs; add declared in msg for usage lint errors (#17961)
* add astmsgs; add `declared in` msg for usage lint errors

* fix test

* fix tests/tools/tlinter.nim

* std prefix
2021-05-08 06:43:52 +02:00
Timothee Cour
d4850b524f fix tsortoutput (it was failing for the wrong reasons, irrespective of sortoutput (#17969) 2021-05-07 20:07:54 -07:00
Timothee Cour
9ca3218a6d improve tbase64.nim (#17964) 2021-05-07 17:40:16 -07:00
Timothee Cour
6ab911accb fix tests/vm/tcastint.nim which used non-sensical when defined nimVM (and contained wrong tests) (#17954) 2021-05-08 00:27:06 +02:00
Timothee Cour
fb677bf5c9 fix #17952: fix both false positives and false negatives for reInvalidSpec (#17956)
* fix #17952: fix both false positives and false negatives for reInvalidSpec

* handle megatest properly

* fix for tests/stdlib/tbase64.nim
2021-05-08 00:22:21 +02:00
Timothee Cour
062571ae3c refs #17325 disable i386 again until we figure out how to fix it (#17963) 2021-05-07 14:39:14 -07:00
Timothee Cour
98c29c01eb fix #14873 properly by skipping abi field in importc type (#17944)
* fix #14873 properly by skipping `abi` field in importc type

* add test

* fix test for windows
2021-05-07 19:36:41 +02:00
Andreas Rumpf
51f3ef6cb8 fixes #15848 [backport:1.2] (#17959) 2021-05-07 16:50:11 +02:00
Andreas Rumpf
56068101f6 tiny cleanup (#17957)
* tiny cleanup

* I'm not British
2021-05-07 13:56:37 +02:00
Timothee Cour
0b4b9b3ad0 remove unsused OsPlatform.nimVM (#17953) 2021-05-07 06:55:46 +02:00
Ardek Romak
9d86639a0b Export sslHandle in net and asyncnet. (#17573) 2021-05-06 15:02:37 -07:00
Danil Yarantsev
9b126de65c Fix C++ compilation error in excpt.nim (#17951) 2021-05-06 22:33:57 +02:00
Timothee Cour
39e0a5322a disable tmacro_highlight on i386, refs #17945 (#17949) 2021-05-06 12:24:16 -07:00
Andreas Rumpf
98cd1671a3 minor cleanups (#17948) 2021-05-06 13:27:40 +02:00
Andrey Makarov
436af88d8c follow-up #17837: add Console for interactive sessions (#17930)
* follow-up #17837: add `Console` for interactive sessions

* fix Latex
2021-05-06 10:58:01 +02:00
Andrey Makarov
706562f661 docgen: get rid of ropes (#17939) 2021-05-05 00:10:05 -07:00
Timothee Cour
00bb3c779e fix https://github.com/timotheecour/Nim/issues/718: CompileTime is not cached apparently (#17940) 2021-05-05 08:41:53 +02:00
Juan Carlos
5762b1d75c Add copyWithin for JavaScript (#17937)
* Add jscore.copyWithin for seq and array
* Shallow copy mention docs
2021-05-05 07:46:42 +02:00
Miran
94c4c01d9c small improvements for tut1.rst (#17935)
* small improvements for tut1.rst
* remove unneeded paragraph
* Update doc/tut1.rst

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-05-05 07:44:33 +02:00
Timothee Cour
15d9566952 re-enable nimquery (#17936) 2021-05-04 12:20:05 -07:00
Juan Carlos
bf5dfe481a parsecsv fix style (#17933)
* ReSync with Devel
* Fix style in parsecsv
* Update lib/pure/parsecsv.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-05-04 13:13:23 +02:00
Timothee Cour
938c6ac5df add logging to help investigate why tests/vm/tconst.nim is flaky (#17934) 2021-05-04 00:50:06 -07:00
Andreas Rumpf
d67ae4afa6 IC: codegen: fix (#17931) 2021-05-04 07:03:00 +02:00
Timothee Cour
01f316cf1f mention -d:nimLegacyConvEnumEnum in error msg (#17928) 2021-05-03 23:06:15 +02:00
Andreas Rumpf
8ce69d5841 treetab: minor code cleanups (#17927) 2021-05-03 17:30:48 +02:00
Timothee Cour
fff5001f4c fix #17913 build_all.sh on M1 mac (#17917); temporary workaround 2021-05-03 10:41:53 +02:00
Andrey Makarov
287f1170ba highlite: fix #17890 - tokenize Nim escape seq-s (#17919)
* highlite: fix #17890 - tokenize Nim escape seq-s

* Update tests/stdlib/thighlite.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-05-03 10:21:36 +02:00
Timothee Cour
0dc534832e close #16123 std/sets with closures in cpp (#17921)
* close #16123 std/sets with closures in cpp

* fixup
2021-05-03 07:07:31 +02:00
Juan Carlos
6d485f545a CI Update (#17923)
* ReSync with Devel

* ReSync

* https://github.com/actions/virtual-environments#available-environments

* https://github.com/actions/virtual-environments#available-environments
2021-05-02 19:51:27 -04:00
Timothee Cour
78e2d299df typo: nonexistant => nonexistent (#17918)
* typo: nonexistant => nonexistent

* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
2021-05-02 00:26:41 +02:00
Timothee Cour
13b57524d3 ref #17913; fix typo in tools/ci_generate.nim generating build_all.sh (#17915) 2021-05-01 10:43:20 -07:00
Timothee Cour
ee6d56141c fix #17911 rawProc for cpp (#17912) 2021-05-01 11:12:13 +02:00
Andreas Rumpf
fb86271556 system.nim cleanup some exported constants which should never have be… (#17909)
* system.nim cleanup some exported constants which should never have been exported
2021-05-01 11:10:40 +02:00
Yanis Zafirópulos
a55c7e9679 WIP: Added missing functions to jsre module (#17881)
* added missing functions: `replace`, `replaceAll`, `split`, `match`
* added `startsWith` & `endsWith`
* Update lib/js/jsre.nim

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
2021-05-01 09:37:02 +02:00
flywind
9f75e8abc1 [std/base64] uses runnableExamples (#17882)
* [std/base64] uses runnableExamples
* Update lib/pure/base64.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
2021-05-01 07:27:50 +02:00
Timothee Cour
82996aee3f misc fixes: remove forceConst (obsolete by static), add more runnableExamples to system (#17896)
* misc fixes

* add runnableExamples for compileOption

* add runnableExamples for runnableExamples

* move tconsteval => tconst

* cleanup
2021-05-01 07:26:52 +02:00
Timothee Cour
1f1d85bb9c reuse config/build_config.txt for all bootstrap scripts (posix + windows + ci); use build_all.bat in 1 CI, fix bug in build_all.bat (#17899)
* reuse config/build_config.txt for all bootstrap scripts (posix + windows + ci)
* ci_docs: use build_all.bat in CI (just in that pipeline) to ensure it keeps working
* fixup
* fix pre-existing bug in build_all.bat
* fixup
* cp => copy /y
* auto-generate build_all.bat, build_all.sh
* fixup
2021-05-01 07:24:41 +02:00
Andrey Makarov
abb8a73134 Fix nim-lang/nimforum#285 - punctuation after URL (#17908)
* Fix nim-lang/nimforum#285 - punctuation after URL
* keep only one leaf in a rnStandaloneHyperlink
* add more complex URL
2021-05-01 07:20:33 +02:00
Gabriel Huber
34a09574ce Document the difference between toFloat/toInt and type conversion (#17894) 2021-04-30 22:39:25 +02:00
Timothee Cour
d0485e326a bring back std/ prefix within compiler and ensure it works in bootstrap + bsd (#17902)
* [WIP] bring back std/ prefix within compiler and ensure it works in bootstrap + bsd

* refs https://github.com/nim-lang/Nim/pull/16282#discussion_r616846863
* sounds very similar to https://github.com/nim-lang/Nim/pull/14291
* more: vmops
* update tools/ci_generate.nim
* auto-generate freebsd.yml as well, to avoid duplication with openbsd.yml
* cleanup
* undo temporary CI removal
2021-04-30 22:27:53 +02:00
Timothee Cour
d32ab61e61 fix #17905: hash(closure) was not being tested (#17906) 2021-04-30 12:40:39 -07:00
Timothee Cour
3192995ac9 close #16646; since now works with bootstrap nim post csources_v1 (#17895)
* revive #16627 now that csources_v1 was merged

* use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683

* fix test and improve rendering of a rst warning
2021-04-30 18:54:47 +02:00