Hi! I'm writing a new module and using the nextflo...
# modules
p
Hi! I'm writing a new module and using the nextflow linting vscode extension. I am getting loads of red underlined. I would like to compare with an nf-core module to identify more precisely the problem. I was wondering if there was a way to know if a nf-core module have been updated for the linting easily?
j
Is the error message not informative? As a general rule, I would say the
samtools
modules are well looked after
But also if you look at your sidebar
image.png
With the file explorer, you should see colours like that
Red: major error; Yellow: warnings; white: all good
p
Thanks! No the message wasn't very helpful but it was my own fault. I had put process in all caps ... Monday morning ... 🤦
🫠 1
j
Been there, you're not alone 😆
❤️ 1
p
What was the message? It's good to collect / report unhelpful error messages so that they can be improved 🙏🏻
p
Inside my workflow main I had:
Copy code
Included name '<MODULE_NAME>' is not defined in module '/path/to/modules/local/<MODULE_NAME>/main.nf'nextflow
Inside the module. I had clicked in the middle on a underlined val:
Copy code
`val` is not defined
Looking at the beginning of the process. It was clearer and I would have probably figured it out:
Copy code
`PROCESS` is not defined
👍🏻 1