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
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
Timothee Cour
20248a68fd
gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten ( #17892 )
...
* gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten
* refactor with createTempDir
* cleanup
* refacotr
* PRTEMP fake test spec changes to show effect of diffStrings
* add runnableExamples for experimental/diff + cross-reference with gitutils
* Revert "PRTEMP fake test spec changes to show effect of diffStrings"
This reverts commit 57dc8d642d .
2021-04-30 11:00:33 +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
Andrey Makarov
e61381a293
follow-up #17692 : more inline syntax highlighting ( #17837 )
2021-04-29 17:16:14 +02:00
Fröhlich A
5439cfc317
Fix insert calling wrong function ( #17856 )
...
The `insert` method is calling `tryInsertID`, which ignores the `pkName` parameter.
Calling `tryInsert` instead should be correct.
2021-04-29 14:11:05 +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
a424075b5e
improve nimsuggest/tester, minor improvements to koch.nim ( #17879 )
...
* improve nimsuggest/tester
* koch improvements
2021-04-29 13:44:53 +02:00
Timothee Cour
e4db733d80
fix #17888 : remove undefined behavior for posix.open; fix tempfiles.createTempFile ( #17889 )
...
* fix #17888 : remove undefined behavior for posix.open; fix tempfiles.createTempFile
* fix for tests/async/tasyncfile.nim
* hide mode for now
* add notice regarding stability
2021-04-29 13:42:56 +02:00
flywind
5edddd68d0
improve cache line size ( #17885 )
...
* improve cache line size
- 64bit system tend to use cache line of 64 bytes
- add align
https://trishagee.com/2011/07/22/dissecting_the_disruptor_why_its_so_fast_part_two__magic_cache_line_padding
Though I'm not sure, what do you think? @timotheecour
* Update lib/pure/concurrency/threadpool.nim
2021-04-29 13:39:36 +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
Timothee Cour
927ae26fad
externalToLink: use quoteShell to avoid issues with spaces in paths for {.link.} pragmas ( #17875 )
2021-04-29 09:01:00 +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
Michael Krieger
7637cff9cf
Fix documentation of strutils.stripLineEnd ( #17883 )
...
It does not return anything.
2021-04-28 11:33:08 -07:00
flywind
d881a05bf6
[std/encodings] fix iconv headers on OpenBSD ( #17872 )
2021-04-27 10:14:26 -07: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
flywind
b1c7c994b0
[std/parsecfg]use runnableExamples ( #17868 )
...
* [std/parsecfg]use runnableExamples
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-27 10:24:59 +02:00
Timothee Cour
3f58b7face
add -d:nimLegacyNoHashRef for a transition period which avoids defining hash(ref) ( #17858 )
2021-04-27 08:23:01 +02:00
flywind
fdfd0f35a1
correct changelog[skip CI] ( #17870 )
2021-04-26 19:31:52 -07:00
Timothee Cour
4c9fa9b75c
fix typo in changelog refs #17746 [skip ci] ( #17869 )
2021-04-26 19:14:00 -07:00
Timothee Cour
f52aa6bde8
fix typo in test name undeclared_routime.nim => undeclared_routine.nim ( #17861 )
2021-04-26 11:32:41 -07:00
Timothee Cour
01267292d8
disable telebot, refs https://github.com/ba0f3/telebot.nim/issues/59 ( #17860 )
2021-04-26 11:17:51 -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
flywind
9e6f2d7d18
bring back jstin after forking a new one ( #17844 )
...
ref https://github.com/nim-lang/Nim/pull/17765#issuecomment-822019094
2021-04-25 10:16:20 -07:00
flywind
22e06ee95a
Ref #17831(synchapi.h: No such file or directory) ( #17832 )
...
* Ref #17831 use windows.h
* use header: "windows.h"
* Update syslocks.nim
* Update lib/system/syslocks.nim
2021-04-25 10:34:53 +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
Clyybber
e67593d317
Remove unmaintained dir ( #17833 )
2021-04-24 18:34:23 +01: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
80df21d9a3
--declaredlocs now shows location for T instead of static in proc fn(a: static T) (#17795 )
2021-04-23 23:22:04 +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
3516f57e17
manual: fix rendering of Identifiers & Keywords [skip ci] ( #17811 )
2021-04-23 13:51:24 +02:00