flywind
60eac79f7f
[minor]remove unnecessary stringify ( #18419 )
2021-07-02 14:38:01 +02:00
Andreas Rumpf
3ceaf5c130
fixes #18030 ( #18415 )
2021-07-01 17:35:04 +02:00
Andreas Rumpf
41c29cb3a1
fixes #18130 ( #18407 )
2021-07-01 06:51:08 +02:00
Ștefan Talpalaru
eaa1c3a377
genDepend: fix for module names that are reserved DOT keywords ( #18392 )
...
(like "node" and "edge")
2021-06-30 07:29:10 +02:00
Timothee Cour
0483a5ffaf
improvements to hint:processing: show import stack, distinguish nims, show includes etc ( #18372 )
...
* improvements to hint:processing
* fix tests; do not show hintProcessing for nimscript unless given -d:nimHintProcessingNims
* fix trunner and avoid need for -d:nimHintProcessingNims
* fix some tests
2021-06-30 07:16:31 +02:00
Andreas Rumpf
97fc95012d
fixes #16270 ( #18388 )
2021-06-29 15:34:39 +02:00
Clyybber
dd2cbe3164
Cleanup lookups.nim again.. ( #18379 )
2021-06-28 19:25:30 +02:00
Clyybber
72d6a9c885
Fix #16426 ( #18377 )
2021-06-28 17:41:37 +02:00
Andreas Rumpf
0be17f5d9c
fixes #18319 ( #18375 )
2021-06-28 17:08:45 +02:00
Timothee Cour
0b7361e938
followup #18362 : make UnusedImport work robustly ( #18366 )
...
* warnDuplicateModuleImport => hintDuplicateModuleImport
* improve DuplicateModuleImport msg, add test
2021-06-27 20:39:16 +02:00
Timothee Cour
b8f761b7e2
even lighter version of #17938 : fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511 , #17510 , #14246 (without realModule) ( #18362 )
...
* {.used: symbol}
* add tests
* fix tests with --import
* --import works without giving spurious unused warnings
* new warning warnDuplicateModuleImport for `import foo; import foo`
* fix test, add resolveModuleAlias, use proper line info for module aliases
* fix spurious warnings
* fix deprecation msg for deprecated modules even with `import foo as bar`
* disable a test for i386 pending sorting XDeclaredButNotUsed errors
* UnusedImport now works with re-exported symbols
* fix typo [skip ci]
* ic support
* add genPNode to allow writing PNode-based compiler code similarly to `genAst`
* fix DuplicateModuleImport warning
* adjust test
* fixup
* fixup
* fixup
* fix after rebase
* fix for IC
* keep the proc inline, move the const out
* [skip ci] fix changelog
* experiment: remove calls to resolveModuleAlias
* followup
* fixup
* fix tests/modules/tselfimport.nim
* workaround tests/deprecated/tmodule1.nim
* fix properly
* simplify
2021-06-26 15:21:46 +02:00
Andreas Rumpf
ceb9e3efc9
fixes #18240 ( #18354 )
...
* ORC: track escaping parameters properly
* fixes #18240
2021-06-25 14:12:23 +02:00
Andreas Rumpf
0d194cdbf9
fixes #18287 ( #18346 )
2021-06-25 06:22:52 +02:00
Andreas Rumpf
16038d44f6
fixes #18320 ( #18343 )
...
* TSymFlag has 47 flags already
* fixes #18320
2021-06-24 18:37:04 +02:00
Timothee Cour
565e07a993
enable VM tracing in user code via {.define(nimVmTrace).} ( #18244 )
...
* enable VM tracing in user code via `{.define(nimVmTrace).}`
* add vmutils.vmTrace
* add vmTrace
2021-06-24 11:55:31 +02:00
Timothee Cour
55c1953f63
fix #18334 : handle path with spaces on windows during bootstrap ( #18337 )
2021-06-24 00:58:11 -07:00
Timothee Cour
f258e4e70c
fix #18332 : XDeclaredButNotUsed hints now in deterministic order ( #18336 )
2021-06-24 08:31:55 +02:00
Andreas Rumpf
0f91b67f5c
fixes #18326 ( #18335 )
...
* fixes #18326
* make tests green again
2021-06-23 23:31:17 +02:00
flywind
037715285c
fix #18327 ( #18328 )
2021-06-22 12:44:56 +02:00
Timothee Cour
ad70a65e0e
fix #18310 system.== in vm for NimNode ( #18313 )
...
* fix #18310 == in vm
* fixup
* fixup
2021-06-21 09:46:31 +02:00
Timothee Cour
40ec8184ad
followup #17852 , disallow all:on for now ( #18311 )
2021-06-20 22:49:14 +02:00
Andrey Makarov
1b3c0f142d
validate rst field for :number-lines:, :status: ( #18304 )
2021-06-20 20:00:42 +02:00
Timothee Cour
7d5e6b0169
support --hint:all:off --hint:x (ditto with --warnings + friends) ( #17852 )
...
* select all hints via `--hint:all:on|off`, etc
* simplify code with setutils
* address comment
2021-06-20 19:52:22 +02:00
Timothee Cour
6030e139b5
move {.injectStmt.} to experimental; add a test ( #18300 )
...
* move {.injectStmt.} to experimental; add a test
* undocument and deprecat `.injectStmt` but keep its implementation until we have a replacement
2021-06-20 09:51:07 +02:00
Andrey Makarov
590d457631
docgen: move to shared RST state ( fix #16990 ) ( #18256 )
...
* docgen: move to shared RST state (fix #16990 )
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update compiler/docgen.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/packages/docutils/rst.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* rename `cmdDoc2` to `cmdDoc`
* fix (P)RstSharedState convention
* new style of initialization
* misc suggestions
* 1 more rename
* fix a regression
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-06-20 09:50:03 +02:00
Timothee Cour
7714ab468a
make privateAccess work with generic types and generic instantiations; fix a SIGSEGV ( #18260 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-06-19 11:24:46 -07:00
Timothee Cour
5d15bd7b61
refs #18278 : do not gag fatal msgs ( #18290 )
2021-06-18 19:23:27 +02:00
Timothee Cour
87cd9b24a3
add more APIs to compiler/debugutils; re-export it ( #18243 )
2021-06-18 15:52:08 +02:00
Timothee Cour
c83ac16671
Renamed -d:nimCompilerStackraceHints to -d:nimCompilerStacktraceHints. ( #18283 )
2021-06-17 00:17:46 -07:00
Timothee Cour
3c854e8c24
followup #16400 ; use use -d:nimCompilerStackraceHints in more places ( #18282 )
2021-06-16 23:04:12 -07:00
Clyybber
13b94c0297
Fix doubly typed forward declarations ( #18279 )
...
* Add testcase
* Fix testcase
* Fix doubly typed forward decls
* Better fix
2021-06-16 16:40:22 +02:00
Clyybber
c5cf21c0c4
Don't report unused hints for consumed AST ( #18270 )
...
* Fix #18203
* Add testcase
* Fix testcase
* Fix test
2021-06-16 02:45:05 +02:00
Timothee Cour
8ef6073543
add test case for pure enum redefinition error within enum (fixed in recent PR) ( #18266 )
...
* add test case for pure enum redefinition error within enum (fixed in recent PR)
* remove code duplication
* Revert "remove code duplication" (would require bootstrap >= 1.4)
This reverts commit 3f793874c2 .
* fixup
2021-06-15 08:56:10 +02:00
Clyybber
8c42f5be02
Small scope refactoring ( #18263 )
...
* Small scope refactoring
* Add test for #10251
* Add inline where appropriate
2021-06-14 19:19:58 +02:00
Saem Ghani
488acd9d07
fixes #18235 - proc annotation type macro sym leak ( #18249 )
...
* fixes #18235 - proc annotation type macro sym leak
- also fixed a typo
- proc annotations guard symbol exports with shadow scopes
- symbol handling is shadow scope aware
* test for exporting an existing unexported sym
this one is for my homie alaviss.
* Special handling not needed in semProcAnnotation
* Testcasing
* [skip ci] clean-up and add some more comments
* [skip ci] rm trailing whitespace
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-06-14 09:21:33 +02:00
Timothee Cour
e1e8af535e
merge BuildMode into SuccessX, remove code duplication w drnim, add useful info to successx, add gc to compilesettings ( #18252 )
...
* merge BuildMode into SuccessX, add more info
* refactor duplicated with drnim
* fixup
* address comment
2021-06-14 08:51:40 +02:00
Timothee Cour
065243dc59
followup #17777 : declaredloc field error msgs now work with generics ( #18259 )
...
* followup #17777 : declaredloc field error msgs now work with generics
* fix tests
* cleanup
2021-06-14 08:21:18 +02:00
Timothee Cour
897e50d5fe
getType now works with tyInferred (arising from concepts); refs #18220 ( #18241 )
...
* getType now works with tyInferred (concepts); refs #18220
* avoid cast
* add more docs
2021-06-12 21:35:12 +02:00
Miran
57609902c4
use more meaningful name than "workaround14447" ( #18237 )
2021-06-11 10:07:23 +02:00
Timothee Cour
c64d917619
handle tyUserTypeClassInst in addDeclaredLoc ( #18236 )
2021-06-11 08:36:06 +02:00
Andreas Rumpf
f65f760dee
fixes #15884 ( #18230 )
...
* fixes #15884
* micro optimization
2021-06-10 18:19:20 +02:00
Andreas Rumpf
2ea7287217
view types: spec changes ( #18226 )
...
* view types: spec changes
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-06-10 16:49:17 +02:00
Andreas Rumpf
47acc80f4e
make strict funcs analysis smarter ( #18219 )
...
* make strict funcs analysis smarter: varParam[i] = v is different from varParam[i][] = v
* added a test case
* Update compiler/varpartitions.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
2021-06-09 17:33:19 +02:00
Timothee Cour
9106ab7db1
make changeDetectedViaJsonBuildInstructions warning less verbose when json file invalid (eg due to spec change) ( #18197 )
2021-06-06 09:53:22 +02:00
Andreas Rumpf
5423915e5a
real bugfix for #17170 ( #18171 )
...
* real bugfix for #17170
* better fix
2021-06-04 16:20:47 +02:00
Timothee Cour
654a20166e
simplify extccomp.nim json logic via jsonutils; fix #18084 ( #18100 )
...
* simplify extccomp.nim json logic via jsonutils
* fix #18084
* simplify further
* workaround for bootstrap that can be removed after updating csources_v1 >= 1.2
2021-06-03 22:29:45 +02:00
Andreas Rumpf
28f2abe1a2
fixes #18112 ( #18165 )
2021-06-03 20:55:41 +02:00
Andreas Rumpf
06232b7f2e
fixes #18058 ( #18162 )
2021-06-03 17:12:45 +02:00
Andreas Rumpf
daaa40973c
added float32 schubfach algorithm; wip ( #18155 )
...
* added float32 schubfach algorithm; wip
* fixes #18418
2021-06-03 12:09:40 +02:00
Timothee Cour
0de3d4292f
fix #16993 , #18054 , #17835 runnableExamples now works with templates and nested templates ( #18082 )
2021-06-02 09:02:14 -07:00