-
Notifications
You must be signed in to change notification settings - Fork 7
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
Wildcard not defined in output of Target Rule #512
Comments
A better workaround is to suppress the warning only for the rule where you see it because in other cases it is expected to work correctly: |
Could you please describe your use case where you see the above-mentioned error + attach a screenshot of such error if possible
Please read my first comment and examples, seems:
|
By default, Snakemake assumes the first rule in a Snakefile is a "target rule". This means it will not have an
output
section, but this plugin assumes all rules will have an output section, and an error is shown:Wildcard '[WILDCARD_NAME]' isn't properly defined.
To fix this, the following should be done
output
sectiondefault_target: True
, it should ignore any requirement for wildcards in theoutput
sectionSource: https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#target-rules
Example Snakefile with the first rule as a "target rule"
Using the
default_target
optionEDIT: A quick (but not ideal) fix is to disable the "Undefined wildcard usage." inspection under "Settings -> Editor -> Inspections -> Snakemake -> Undefined wildcard usage.
The text was updated successfully, but these errors were encountered: