-
Notifications
You must be signed in to change notification settings - Fork 621
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
An input channel evaluating to null results in a misleading error message #242
Comments
I've managed to get it down to one file:
The example requires running these without anything specified on the command line (that is, no When running this fails. It works with the
If nothing else, the error message should be referring to I can also get this error message if I refer to a params var in the process scope of the config file. To me it looks like the problem is with an uninitialized |
OK, it can be reduced to this
|
This brings to an interesting question? Should a not defined |
But does your example also cover my failure above where I'm not changing anything to do with the process? There |
Same error message, but I suspect that the mode of failure is different (probably why we found testing this so confusing this morning). Could it be anything to do with #48? |
And in answer to your question - I think throwing an exception is fine, as long as |
This is slight different. The main problem is that the following snippet is assigning to I've added a more strict check warning on that, however the general advice is to define always the parameter before use them. I've added a new snapshot, you may want to check if solve your problem. You can try it by using:
|
ok, so the thing to remember is to define process {
clusterOptions: "-A $params.project"
} So I should do the following: params {
project = false
}
process {
clusterOptions: "-A $params.project"
} I'll try this now. But specifying |
Yes, parameter priority is the following (from higher to lower)
|
Included in version |
To follow up, my example above was a little wrong as I was missing |
Working test case
minimal.nf
:nextflow.config
:Works as expected:
Breaking test case
Make this change to
nextflow.config
:Now breaks:
Working again:
Weirdly, changing the syntax as follows fixes it again:
nextflow.config
:Any ideas what's going on here? @viklund also testing, will probably follow with his own minimal example..
The text was updated successfully, but these errors were encountered: