JetBrains-Research / snakecharm

Plugin for PyCharm / IntelliJ IDEA Platform IDEs which adds support for Snakemake language.
MIT License
61 stars 7 forks source link

Inspection Error False Positive: Unresolved output for output local var #541

Open iromeo opened 1 month ago

iromeo commented 1 month ago
image
from pathlib import Path

# Things to test:
# ancient
# subworkflows

output = Path("output")
nonexistent_file = Path("nonexistent_file.txt")

rule all:
    input:
        output

rule input_nonexistent_Path:
    input: nonexistent_file
    output: output
    shell: 
        """
        echo "This should fail" > {output}
        """

works ok in 8.20.6