JetBrains-Research / snakecharm

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

No error of use rule redeclarton #483

Open iromeo opened 2 years ago

iromeo commented 2 years ago

This code results in runtime error:

CreateRuleException in line 16 of /Users/romeo/work/snakecharm/snakemaek_examples/untitled10/rule_001_use_check/rule_001.smk:
The name m_001_new is already used by another rule
  File "/Users/romeo/work/snakecharm/snakemaek_examples/untitled10/rule_001_use_check/rule_001.smk", line 16, in <module>
use rule m_001 from m_001 as *_new with:
    input:
        "foo.txt"

rule m_001_new:
    input: "foo.txt"
    shell: "echo '!!!'"

It is expected to see an error from rule redeclaraton inspection

image