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
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
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
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
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
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
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
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
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
Timothee Cour
938c6ac5df
add logging to help investigate why tests/vm/tconst.nim is flaky ( #17934 )
2021-05-04 00:50:06 -07: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
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
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
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
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
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
Clyybber
76f93877cd
Small parser loop fix ( #17904 )
...
* Fix loop on error with nim check in semiStmtList
* Add test
2021-04-30 17:17:29 +02:00
Andrey Makarov
1640508348
more strict RST inline markup parsing ( #17827 )
...
* more strict RST inline markup parsing
* add test for unexpected bonus
* introduce `roPreferMarkdown`
2021-04-29 17:31:15 +02:00
Timothee Cour
198b5e3a7a
improve tsets.nim, twrong_setconstr.nim and avoid name clashes with compiler sets ( #17876 )
...
* improve tests/sets/tsets.nim and avoid name clashes with compiler sets
* avoid name clashes in twrong_setconstr.nim and merge into tsets
2021-04-29 13:53:58 +02:00
Timothee Cour
87229e272e
fix #17853 (ascii message separator broke json nim dump) ( #17887 )
2021-04-29 02:25:08 -07:00
flywind
016a8ccd7a
[std/encodings]move to tests ( #17866 )
2021-04-29 09:51:54 +02:00
c-blake
601c050fcb
Implement https://forum.nim-lang.org/t/7848#50018 ( #17874 )
...
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.
* Change to add a new BuildMode hint category and keep testament in sync
as per comment.
* Add "--hint:buildmode:off" to `defaultHintsOff`.
* Remove as requested.
* As requested for tests clean up.
* Address code review.
* Address code review.
* Mirror db45642311
2021-04-29 08:55:43 +02:00
Clyybber
b03d6c9b2f
Fix #17712 ( #17873 )
2021-04-27 13:03:26 +02:00
Timothee Cour
a236002e54
testament: add nimoutFull: bool spec ( #17867 )
...
* testament: add `nimoutFull: bool` spec
* PRTEMP
* works
* cleanup
* add test for #12741
* PRTEMP failing test
* remove unrelated changes
* changelog
2021-04-27 11:11:28 +02:00
flywind
66022423aa
[std/pegs] increase test coverage ( #17871 )
2021-04-27 11:09:58 +02:00
Timothee Cour
93c26041a5
fix #17859 ; rename tests so they run in CI; merge several tests with nim check ( #17862 )
...
* rename a test so it runs in CI; merge several tests with nim check
* continue
* continue
* continue
* rename tests/errmsgs/undeclared_routine_compiles.nim -> tests/errmsgs/tundeclared_routine_compiles.nim
2021-04-27 10:42:24 +02:00
Timothee Cour
f52aa6bde8
fix typo in test name undeclared_routime.nim => undeclared_routine.nim ( #17861 )
2021-04-26 11:32:41 -07:00
flywind
01bca8cd4f
fix gbk encodings on windows ( #17843 )
2021-04-26 14:48:25 +02:00
flywind
68e522ecec
Remove confusing <//> ( #17830 )
2021-04-26 09:04:52 +02:00
Saem Ghani
17db15f9b1
fix #17836 (typed macro isNil for proc params) ( #17841 )
...
thanks @alaviss for the test
2021-04-25 10:30:52 +02:00
Timothee Cour
ffe4328b35
--usenimcache (implied by nim r main) now caches some compile options to avoid recompiling when project was previously compiled with such options. (#17829 )
...
* `--usenimcache` (implied by `nim r main`) now caches some compile options
to avoid recompiling when project was previously compiled with such options.
* works
* add test
* changelog
* use std/with
2021-04-25 10:25:31 +02:00
flywind
6e8f0f8cfc
add colon ( #17834 )
2021-04-24 18:33:29 +01:00
Timothee Cour
b667e288e2
move travis, appveyor, ci.yml.disabled to unmaintained/ ( #17828 )
...
* move travis, appveyor, ci.yml.disabled to unmaintained
* update some mentions of travis, appevyor
* fix test
2021-04-24 07:54:31 +02:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Timothee Cour
e4a3feeb92
add --processing:dots|filenames|off to customize hintProcessing ( #17817 )
2021-04-23 08:07:22 +02:00
flywind
53c898de41
fix #17812 (repr fails to compile with ARC/ORC) ( #17816 )
2021-04-22 08:08:56 +02:00
Sivchari
fb32fff8dc
js generates spurious >>> on shr ( #17767 )
...
* js generates spurious >>> on shr
* Add shr arithmetic test
* fix variables from const to let during testing
2021-04-21 19:47:01 +02:00
flywind
4471141a1d
fix #7535(Poor error message for spawn when a procedure (without calling it)) ( #17774 )
2021-04-21 17:53:31 +02:00
Andrey Makarov
8f79bc5f3d
add RST highlighting for command line / shells (also fixes #16858 ) ( #17789 )
2021-04-21 16:57:54 +02:00
Clyybber
7c64e49d45
getCustomPragmaVal priority/override fixes ( #17725 )
...
* Adhere left-to-right rule for custom pragma priority
* Improve error message for no custom pragmas
* custom pragmas on var/let sym take priority over its type ones
* Workaround & bug
2021-04-21 15:28:42 +02:00
Timothee Cour
da1c1a7117
--filenames:abs|canonical|legacyRelProj for filenames in compiler msgs (replaces --listfullpaths:on|off) (#17746 )
...
* use canonicalImport for filename_magicSauce
* --filenames:abs|canonical|magic
* rename: magic => legacyRelProj
2021-04-21 15:26:27 +02:00
flywind
c631648cb3
close #9372 add std/tempfiles ( #17361 )
...
* close #9372 add std/tempfile
2021-04-21 15:07:36 +02:00
Andreas Rumpf
0b116310bf
unit separator ( #17730 )
...
* use the ASCII Unit Separator so that error messages can be handled precisely by the tooling
* updated testament
2021-04-20 16:30:17 +02:00
flywind
c776498170
close #9691 and close #10913('spawn'ed function cannot have a 'typed' or 'untyped' parameter) ( #17775 )
2021-04-20 15:39:58 +02:00
Timothee Cour
ad67bcf379
fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice ( #16714 )
2021-04-19 19:02:52 -07:00