nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
242 stars 191 forks source link

Fix final language server errors in template #3294

Open ewels opened 1 day ago

ewels commented 1 day ago

There are still one or two errors in newly generated pipelines from nf-core pipelines create that get flagged by the new Nextflow language server / VS Code extension. For example, there's a def in the nextflow.config.

We should clean these up and ensure that new pipelines / synced pipelines have no errors.

Once we have a Nextflow CLI tool for checking errors we can automate this test - but for now we can do it manually.

ewels commented 11 hours ago
ewels commented 4 hours ago

From @bentsherman:

You could do something like this:

params.trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
timeline {
    enabled = true
    file    = "${params.outdir}/pipeline_info/execution_timeline_${params.trace_timestamp}.html"
}

Maybe we call it "report suffix" or something more generic. Then set it to hidden in the JSON schema.