-
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
Unresolved reference 'snakemake' #511
Comments
Hi, as a workaround, you could add manually |
@iquasere Is it *.smk or Snakefile or just some *.py file with wrapper impl? |
Thank you for the answer, @iromeo ! This is happening only for the *.py scripts, although the *.smk files have another problem, where it doesn't recognize stuff coming from the Still, the most annoying is in the *.py files.
This turned all the errors into warnings, which is better. I guess it wouldn't make sense to have a params attribute in snakemake's |
Thx for mentioning that, it is known problem #364. Snakemake files don't follow Python conventions on how code from different modules is imported. Instead snakemake framework assemble a context depending on the Snakefile content. So if you run you Snakefile that first includes
The similar case for *.py scripts used inside snakemake. From python point such scripts doesn't work independently as valid python files. Again we need to somehow differentiate python files that could have such usage from other files where You could always disable some false alerts using 'suppress' action for any inspection. as alternative, you could add identifiers (e.g. OUTPUT) for which unresolved reference will not be shown in 'Unresolved references' inspections settings: |
I never got, on my MacBook Pro M2, snakemake recognized. Is this working as designed? The pipeline runs fine.
SnakeCharm version:
2023.2.1
The text was updated successfully, but these errors were encountered: