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

Fix token debug name in PyUnresolvedReferencesInspection warning: Cannot find reference 'input' in 'Py:USE_KEYWORD mod1_*' #544

Open
iromeo opened this issue Oct 21, 2024 · 1 comment

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 21, 2024

image
module mod1:
    snakefile:
        "module1/Snakefile"
    prefix:
        "test/"


use rule * from mod1 as mod1_*


rule all:
    input:
        rules.mod1_all.input,
    default_target: True

and module1

def txt_output(wildcards):
    return ["results/C.txt"]


rule all:
    input:
        txt_output


rule txt:
    output:
        "results/C.txt"
    shell:
        "echo 'C' "
        ">{output} "

See usages of PyPsiBundle: INSP.unresolved.refs.cannot.find.reference.in.type

@iromeo
Copy link
Contributor Author

iromeo commented Oct 21, 2024

And similar here:
def in_func1(w):
file = checkpoints.b2.get().output[0]
return open(file, "r").read().strip()

image

P.S: in both cases unresolved error also should not be shown

@iromeo iromeo added this to the next release milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant