Andrey Makarov
8f79bc5f3d
add RST highlighting for command line / shells (also fixes #16858 ) ( #17789 )
2021-04-21 16:57:54 +02:00
Clyybber
80389b8053
Revert localErrorNode param order changes ( #17809 )
...
* Revert localErrorNode param order changes
* Remove unused globalError overload
* heh
2021-04-21 16:03:30 +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
Timothee Cour
2951f89374
improve errmsg refs #17793 object ctor with generics ( #17806 )
2021-04-21 10:52:17 +02:00
Joey
f1ce173283
Fix Httpclient headers from being modified accidentally ( #17808 )
2021-04-21 07:42:04 +02:00
Andreas Rumpf
a9b62de895
CIs: attempt to use csources_v1 ( #16282 )
...
* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
2021-04-21 07:41:33 +02:00
Timothee Cour
7bce1f8578
close #13373 document (ref Foo)(a: 1) ( #17804 )
2021-04-21 07:33:56 +02:00
Timothee Cour
8de053d870
fix hintMsgOrigin regression + simplify msgs code ( #17805 )
2021-04-21 07:00:45 +02:00
flywind
603af22b7c
[std/tasks]add gcsafe pragmas ( #17799 )
...
* [std/tasks]add gcsafe pragmas
* Update tasks.nim
2021-04-21 11:05:16 +08:00
flywind
eb221dcc27
[std/deques] move data instead of copy + destroy ( #17800 )
2021-04-20 19:00:44 +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
Andreas Rumpf
54fe44135e
updated the documentation ( #17796 )
2021-04-20 15:24:20 +02:00
Timothee Cour
4742e6e1fd
followup #16714 : add -d:nimLegacyUnarySlice + changelog ( #17794 )
2021-04-20 00:25:28 -07:00
Timothee Cour
68e7ed9c57
important_packages: allowed_failures batch ( #17757 )
...
* important_packages: reserve batch 0 for allowed failures
* custom batch name: allowed_failures
2021-04-20 09:02:35 +02:00
Timothee Cour
fb02b56957
support skip ci in azure pipelines, and support it properly in github actions pipelines ( #17561 )
...
* support skip ci in azure pipelines
* [skip ci] example of a commit that skips CI
* example of a commit that does not skip CI
* fix github actions logic for ci skip handling
* [skip ci] example of a commit that skips CI for all pipelines
* example of a commit that does not skip CI for any pipeline
2021-04-20 09:01:53 +02:00
Timothee Cour
6852d091b3
changelog: document hash changes ( #17792 )
...
* changelog: document hash changes
* fixup
2021-04-20 06:54:25 +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
Clyybber
24abe10aa8
Small privateAccess improvement ( #17786 )
2021-04-19 17:51:00 +02:00
Clyybber
438afb4db9
Introduce localErrorNode ( #17785 )
2021-04-19 17:19:21 +02:00
Clyybber
6de5aa1971
Rename = to =copy in stdlib ( #17781 )
2021-04-19 13:16:10 +02:00
flywind
bae7b5b779
fix #17732(forward args... to megatest) ( #17780 )
2021-04-19 11:48:26 +02:00
Andreas Rumpf
4b0b536419
ic refactoring ( #17778 )
...
* minor IC documentation update
* IC: refactoring: removed the 'shared' type and fields, these were a leftover from an earlier design
2021-04-19 11:48:06 +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
flywind
dc89b21257
[std/locks]close #7998(complete condition variables) ( #17711 )
...
* close #7998
* workaround genode
* Update lib/system/syslocks.nim
2021-04-19 10:51:13 +02:00
flywind
cedbc7035d
[std/locks]remove workaround for withLock ( #17772 )
...
Ref #6113 and #6049
The workaround for generics instantiation is unnecessary. It seems to be fixed by another PR I guess.
The test still works. So the changes should be harmless.
https://github.com/nim-lang/Nim/blob/devel/tests/stdlib/tlocks.nim
I also add some inline pragmas.
2021-04-19 10:33:56 +02:00
Juan Carlos
f8038af5ec
Documentation only, dom ( #17770 )
...
* ReSync with Devel
* ReSync
* https://github.com/timotheecour/Nim/issues/674
* Update lib/js/dom.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-04-19 07:42:38 +02:00
flywind
172a5ab7f8
[std/rlocks]add inline pragma ( #17773 )
...
so that it can be used as the base of new locks module with destructors.
2021-04-19 07:41:50 +02:00
Saem Ghani
5042cb956b
[ci skip] document compiler/ic/rodfiles.nim ( #17771 )
...
* [ci skip] document compiler/ic/rodfiles.nim
Why?
* understand how rodfile module works and a bit of the format
* leave notes behind for others
* rather than Araq guess what others need, he can fix what other glean
* possible model for making the compiler more aproachable
Bonus:
* might have found a minor bug in `loadSection`
* Update compiler/ic/rodfiles.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-04-19 07:40:08 +02:00
Timothee Cour
0a10af5a2c
privateAccess now works with ref | ptr ( #17760 )
2021-04-19 00:15:58 +02:00
Timothee Cour
d6c8efa5d4
declaredlocs followup: handle cannot instantiate errors ( #17745 )
2021-04-19 00:03:24 +02:00
Dankr4d
6916faf83c
Fix #17755 ( #17766 )
...
Signed-off-by: Dankr4d <dude569@freenet.de >
2021-04-18 23:39:05 +02:00
Andreas Rumpf
c7b77829fe
IC: fixes a long standing bug about DCE set computations ( #17763 )
2021-04-18 23:38:07 +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
flywind
ca3fe63bab
remove jstin from important packages ( #17765 )
...
Ref https://github.com/nim-lang/Nim/pull/17759
https://github.com/LemonBoy/jstin/blob/master/src/jstin.nim is already archived and cannot pass CI anymore.
2021-04-18 15:30:30 +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
shirleyquirk
c8b8cb8458
make cuchar alias uint8 instead of char ( #17738 )
2021-04-17 17:27:10 +02:00
Tanguy Cizain
8e124da75d
fix range to unsigned conversion ( #17754 )
2021-04-17 15:34:00 +02:00
Timothee Cour
5c9c1988f6
-d:nimDebug: calls doAssert false instead of quit ( #17739 )
2021-04-17 11:49:54 +02:00
flywind
5c5f356347
replace defer with try ... finally ( #17753 )
2021-04-17 11:48:22 +02:00
Timothee Cour
7e94420847
cString => cSourceString; tyCString => tyCstring so that error msgs show cstring, not cString ( #17744 )
2021-04-17 11:14:09 +02:00
Andreas Rumpf
8e474fbb57
IC: yet another embarrassing omission ( #17743 )
...
* IC: yet another embarrassing omission
* VM: fewer hacks that kept IC from working
2021-04-17 01:12:12 +02:00
Timothee Cour
201ac2b9c9
fix nim CI following #17455 (same postmortem as #17721 ) ( #17740 )
2021-04-16 11:26:05 -07:00
Andreas Rumpf
957478ce26
removed nimfind tool, succeeded by 'nim check --defusages' ( #17737 )
2021-04-16 15:23:17 +02: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
shirleyquirk
fdd4391534
Fix buffer-overrun bug in net ( #17728 ) [backport:1.0]
2021-04-16 14:22:51 +02:00
Timothee Cour
d19e4310dc
std/hashes: hash(ref|ptr|pointer) + other improvements ( #17731 )
2021-04-16 14:21:26 +02:00