Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit Includes support #195

Open
3 tasks
iromeo opened this issue Aug 16, 2019 · 2 comments
Open
3 tasks

Implicit Includes support #195

iromeo opened this issue Aug 16, 2019 · 2 comments
Labels
codeInsight Code completion, resolve inspections Code inspections
Milestone

Comments

@iromeo
Copy link
Contributor

iromeo commented Aug 16, 2019

Code insight support for case

# foo.smk
rule foo:
  output: "foo.out"
# boo.smk
rule boo:
  input: rules.foo.output
  output: "out"
# Snakefile
include "foo.smk"
include "boo.smk"
# other.smk
rule other:
   output: "other.out"

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

@iromeo iromeo added codeInsight Code completion, resolve inspections Code inspections labels Aug 16, 2019
@iromeo iromeo mentioned this issue Aug 16, 2019
@iromeo
Copy link
Contributor Author

iromeo commented Aug 16, 2019

Related to #155, #173

@iromeo
Copy link
Contributor Author

iromeo commented Aug 16, 2019

Related commits:

3a650a3

828750c

@iromeo iromeo added this to the Backlog milestone Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codeInsight Code completion, resolve inspections Code inspections
Projects
None yet
Development

No branches or pull requests

1 participant