snakecharm
snakecharm copied to clipboard
#260 Error for using reference expression without defining args, when it is necessary
Error for using reference expression without defining args, when it is necessary.
Fixes: #260
260 issue is only partially implemented, e.g not proper highlighting for case + the only error shown is incorrect

rule r260_output1:
output: "foo{genome}{boo}.dd"
input: "foo{genome}{boo}"
rule r260_output2:
output: rules.r260_output1.input # {doo} from log not mentioned here
log: "foo{genome}{doo}.qq.log" # here {boo} from output not mentioned here
input: "foo{genome}{doo}" # here {genome} is ok, but {doo} is missing in output
Also boo not in autocompletion. Please test your impl carefully and think on examples and valid usecases.
Also be aware of possible recursion in rules, it could not have sense on runtime but shouldn't result in Stackoverflow exceptions in plugin.
E.g.:
rule r260_wd_recurs1:
benchmark: rules.r260_wd_recurs2.output
rule r260_wd_recurs2:
output: rules.r260_wd_recurs3.log
rule r260_wd_recurs3:
log: rules.r260_wd_recurs1.benchmark