You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case all rules from foo.smk and rules defined before include "boo.smk" will be accessible inside boo.smk file although boo.smk doesn't include 'foo.smk`.
We likely need to cache information about which files includes the current file. E.g it could be done lazily by inspection in thread-safe way. E.g. like PyTypes cache.
So we need
Update rule redeclaration inspection to handle such implicit redeclaration (likely weak warning)
Implement inspection which checks whether rule is implicitly included into current context or not. E.g. it is ok to use foo rule in boo.smk but we cannot use other rule in boo.smk
Code insight support for case
In this case all rules from
foo.smk
and rules defined beforeinclude "boo.smk"
will be accessible insideboo.smk
file althoughboo.smk
doesn't include 'foo.smk`.We likely need to cache information about which files includes the current file. E.g it could be done lazily by inspection in thread-safe way. E.g. like PyTypes cache.
So we need
implicitly
included into current context or not. E.g. it is ok to usefoo
rule inboo.smk
but we cannot useother
rule inboo.smk
The text was updated successfully, but these errors were encountered: