I am running into issues when creating a new modul...
# tools
r
I am running into issues when creating a new module. I don't see that I did anything unusual when running the create command, but maybe someone else spots somethiing:
Copy code
nf-core/tools version 3.4.0.dev0 - https://nf-co.re


INFO     Repository type: modules                                                                                                                          
INFO     Press enter to use default values (shown in brackets) or type your own responses. ctrl+click underlined text to open links.                       
INFO     Using Bioconda package: 'bioconda::seq2hla=2.3'                                                                                                   
INFO     Using Docker container: 'biocontainers/seq2hla:2.3--hdfd78af_1'                                                                                   
INFO     Using Singularity container: 'https://depot.galaxyproject.org/singularity/seq2hla:2.3--hdfd78af_1'                                                
INFO     Found bio.tools information for 'seq2hla'                                                                                                         
INFO     Found bio.tools ID: 'biotools:seq2hla'                                                                                                            
GitHub Username: (@author): @FriederikeHanssen   
INFO     Provide an appropriate resource label for the process, taken from the nf-core pipeline template.                                                  
         For example: process_single, process_low, process_medium, process_high, process_long, process_high_memory                                         
? Process resource label: process_single
INFO     Where applicable all sample-specific information e.g. 'id', 'single_end', 'read_group' MUST be provided as an input via a Groovy Map called       
         'meta'. This information may not be required in some instances, for example indexing reference genome files.                                      
Will the module require a meta map of sample information? [y/n] (y): y
INFO     Created component template: 'seq2hla'                                                                                                             
CRITICAL Can't format ['modules/nf-core/seq2hla/main.nf', 'modules/nf-core/seq2hla/meta.yml', 'modules/nf-core/seq2hla/environment.yml',                   
         'modules/nf-core/seq2hla/tests/main.nf.test'] because it has a syntax error.                                                                      
         [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.                                                               
         [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@2.7.1.                                                
         [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.                                                                 
         [INFO] Once installed this environment will be reused.                                                                                            
         [INFO] This may take a few minutes...                                                                                                             
         prettier.................................................................Failed                                                                   
         - hook id: prettier                                                                                                                               
         - exit code: 2                                                                                                                                    
                                                                                                                                                           
          modules/nf-core/seq2hla/meta.yml: SyntaxError: Sequence items must not have preceding content on the same line (26:13)                           
            24 | output:                                                                                                                                   
            25 | # TODO nf-core: Update the information obtained from bio.tools and make sure that it is correct                                           
          > 26 |   versions: -                                                                                                                             
               |             ^                                                                                                                             
          > 27 |     versions.yml:                                                                                                                         
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 28 |       type: file                                                                                                                          
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 29 |       description: File containing software versions                                                                                      
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 30 |       pattern: versions.yml                                                                                                               
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 31 |       ontologies:                                                                                                                         
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 32 |       - edam: http://edamontology.org/format_3750  # YAML                                                                                 
               | ^^^^^^^^^^^^^^^^^                                                                                                                         
          > 33 | authors:                                                                                                                                  
               | ^                                                                                                                                         
            34 | - "@FriederikeHanssen"                                                                                                                    
            35 | maintainers:                                                                                                                              
            36 | - "@FriederikeHanssen"                                                                                                                    
                                                                                                                                                           
                                                                                                                                                           
INFO     Created following files:                                                                                                                          
           modules/nf-core/seq2hla/main.nf                                                                                                                 
           modules/nf-core/seq2hla/meta.yml                                                                                                                
           modules/nf-core/seq2hla/environment.yml                                                                                                         
           modules/nf-core/seq2hla/tests/main.nf.test
been using gitpod from the modules repo so I am on the dev deployment here
p
Tools should never give a Python traceback, so please spin up a Github issue with a MRE whenever you see this 🙂
It's always a bug, by definition, because such errors should at least be caught gracefully
r
Done
p
Thanks!
c
I have been having a similar issue using GitPod, but only when trying to create a specific module.
p
Is it the same module as @Rike Hanssen? Please add any detail here: https://github.com/nf-core/tools/issues/3719
c
Sorry to crosspost, I have commented there - it is a different module 🙂
p
np! Thanks!