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
Andreas Rumpf
3b80f0dc8e
IC navigator: added support for include files ( #17784 )
...
* ic fixed navigator crash when track wrong/missed
Also fixed an issue with getNimcacheDir not observing the outDir.
* closer, but not sure how to test[skip ci][ci skip]
* IC navigator: added support for include files
* update
* make posix happy via expandFilename
* update
Co-authored-by: Saem Ghani <saemghani+github@gmail.com >
2021-04-19 22:37:09 +02:00
flywind
83fa0fc843
fix #12521(type alias for openArray) ( #17593 )
...
* fix nim js cmp fails at CT
* fix #12521
* address comments
2021-04-19 11:21:35 +02:00
Timothee Cour
0a10af5a2c
privateAccess now works with ref | ptr ( #17760 )
2021-04-19 00:15:58 +02:00
Timothee Cour
42c6eec4ef
fix #17749 ignore SIGPIPE signals, fix nim CI #17748 ( #17752 )
...
* fix #17749 SIGPIPE
* fix for windows
2021-04-18 15:34:29 +02:00
Andreas Rumpf
7b6ab5109f
IC exposes typedesc implementation shenanigans ( #17759 )
...
* IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-18 07:27:03 +02:00
Tanguy Cizain
8e124da75d
fix range to unsigned conversion ( #17754 )
2021-04-17 15:34:00 +02:00
flywind
5c5f356347
replace defer with try ... finally ( #17753 )
2021-04-17 11:48:22 +02:00
Timothee Cour
201ac2b9c9
fix nim CI following #17455 (same postmortem as #17721 ) ( #17740 )
2021-04-16 11:26:05 -07:00
Timothee Cour
1b65b9cc19
refs #17292 fix repr: (discard) now does't render as discard which gave illegal code ( #17455 )
...
* refs #17292 fix `repr` with (discard)
* add tests
* add more tests
2021-04-16 14:55:51 +02:00
Timothee Cour
d19e4310dc
std/hashes: hash(ref|ptr|pointer) + other improvements ( #17731 )
2021-04-16 14:21:26 +02:00
Timothee Cour
611b88763f
start using import {.all.} ( #17736 )
2021-04-16 12:54:49 +02:00
Andreas Rumpf
606288974f
ic navigator tests ( #17735 )
...
* IC navigator: first basic test
2021-04-16 12:20:43 +02:00
Timothee Cour
8161b02897
import foo {.all.} reboot (#17706 )
2021-04-16 09:16:39 +02:00
flywind
5c12c711f7
follow up #17518 ( #17726 )
2021-04-15 19:25:35 +02:00
flywind
3f56b9944e
follow up #17536 ( #17727 )
2021-04-15 19:25:03 +02:00