Comments Within Process Removed

Hello,

I’m very excited about the formatting feature! However, I’ve noticed that any comments within “process” blocks are removed during formatting. Here’s an example:

process MY_PROCESS {
  /* 
  This block comment is removed.
  */
  label 'foo' // This line comment is also removed.
  ...
}

Is there a way to preserve comments within process blocks when formatting? Any help or guidance would be appreciated!

Thank you!

Hi @Sukh_Sekhon,

Welcome to the community forum. I just talked with the team and this accidental removal of comments within the process block has already been flagged and they’re working on that. Thanks for reporting it here.

If you want to make sure you’re made aware whne it’s fixed, please open an issue at Issues · nextflow-io/vscode-language-nextflow · GitHub.

1 Like

I also just (independently) reported this on the GitHub repo :slight_smile:

2 Likes

Thank you both!! I’m very excited to start using the formatter! :grinning:

1 Like

Many thanks! The it works great with the latest version

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.