:shakefist: OPAQUE LINTING ERRORS
# rants
j
shakefist OPAQUE LINTING ERRORS
shakefist 1
🤣 2
e
Have an example?
j
Copy code
DEBUG    sys.platform='darwin', git_executable='git'                                                                                                                                                    util.py:494
DEBUG    Popen(['git', 'version'], cwd=/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules, stdin=None, shell=False, universal_newlines=False)                                                        cmd.py:1270
DEBUG    Popen(['git', 'fetch', '-v', '--progress', '--', 'origin'], cwd=/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules, stdin=None, shell=False, universal_newlines=True)                       cmd.py:1270
DEBUG    Popen(['git', 'checkout', 'main'], cwd=/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules, stdin=None, shell=False, universal_newlines=False)                                               cmd.py:1270
DEBUG    Popen(['git', 'merge', 'origin/main'], cwd=/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules, stdin=None, shell=False, universal_newlines=False)                                           cmd.py:1270
DEBUG    Got '/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules' as path                                                                                                                           utils.py:349
DEBUG    No config cache found                                                                                                                                                                         utils.py:396
DEBUG    Running command: nextflow config -flat /Users/jd42/.config/nfcore/sanger-tol/nf-core-modules                                                                                                  utils.py:448
DEBUG    Could not open /Users/jd42/.config/nfcore/sanger-tol/nf-core-modules/main.nf to look for parameter declarations - [Errno 2] No such file or directory:                                        utils.py:430
         '/Users/jd42/.config/nfcore/sanger-tol/nf-core-modules/main.nf'
DEBUG    Using config file: /Users/jd42/.config/nfcore/sanger-tol/nf-core-modules/.nf-core.yml                                                                                                        utils.py:1481
DEBUG    Got '.' as path                                                                                                                                                                               utils.py:349
DEBUG    No config cache found                                                                                                                                                                         utils.py:396
DEBUG    Running command: nextflow config -flat .                                                                                                                                                      utils.py:448
DEBUG    Could not open main.nf to look for parameter declarations - [Errno 2] No such file or directory: 'main.nf'                                                                                    utils.py:430
DEBUG    Using config file: .nf-core.yml                                                                                                                                                              utils.py:1481
DEBUG    Got 'tests/config' as path                                                                                                                                                                    utils.py:349
DEBUG    Found a config cache, loading: /Users/jd42/.nextflow/nf-core/wf-config-cache-898cf05086b57f6f21815c39d.json                                                                                   utils.py:383
DEBUG    Registry set to quay.io                                                                                                                                                                    __init__.py:164
INFO     Linting modules repo: '.'                                                                                                                                                                  __init__.py:136
INFO     Linting subworkflow: 'fasta_map_long_reads'                                                                                                                                                __init__.py:140
DEBUG    sys.platform='darwin', git_executable='git'                                                                                                                                                    util.py:494
Pulling from 'nf-core/modules' (https://github.com/nf-core/modules.git) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Waiting for responseDEBUG    Popen(['git', 'version'], cwd=/Users/jd42/.config/nfcore/nf-core/modules, stdin=None, shell=False, universal_newlines=False)                                                                   cmd.py:1270
DEBUG    Popen(['git', 'fetch', '-v', '--progress', '--', 'origin'], cwd=/Users/jd42/.config/nfcore/nf-core/modules, stdin=None, shell=False, universal_newlines=True)                                  cmd.py:1270
DEBUG    Popen(['git', 'checkout', 'master'], cwd=/Users/jd42/.config/nfcore/nf-core/modules, stdin=None, shell=False, universal_newlines=False)                                                        cmd.py:1270
DEBUG    Popen(['git', 'merge', 'origin/master'], cwd=/Users/jd42/.config/nfcore/nf-core/modules, stdin=None, shell=False, universal_newlines=False)                                                    cmd.py:1270
DEBUG    Got '/Users/jd42/.config/nfcore/nf-core/modules' as path                                                                                                                                      utils.py:349
DEBUG    Found a config cache, loading: /Users/jd42/.nextflow/nf-core/wf-config-cache-9f4bce35ba6f9f759cbf54fa7.json                                                                                   utils.py:383
DEBUG    Using config file: /Users/jd42/.config/nfcore/nf-core/modules/.nf-core.yml                                                                                                                   utils.py:1481
CRITICAL 'samtools/faidx'                                                                                                                                                              commands_subworkflows.py:147
Supposedly-implicated section:
Copy code
components:
  - fastxalign/index
  - fastxalign/minimap2align
  - samtools/faidx:
      git_remote: https://github.com/nf-core/modules.git
  - samtools/merge:
      git_remote: https://github.com/nf-core/modules.git
  - samtools/markdup:
      git_remote: https://github.com/nf-core/modules.git
  - minimap2/index:
      git_remote: https://github.com/nf-core/modules.git
thankyou 1
e
j
If I can't figure out what I've done wrong... I have another file that works perfectly and I can't see a difference
OK, I figured out the issue...
Copy code
- samtools/faidx:
      git_remote: https://github.com/nf-core/modules.git
  - samtools/merge:
      git_remote: https://github.com/nf-core/modules.git
  - samtools/markdup:
      git_remote: https://github.com/nf-core/modules.git
I added these because they are required by another subworkflow that is included in the subworkflow, but are not included directly. Only listing the directly called components works fine
e
Yeah but what sucked about it
Trying to make the experience better
j
The error wasn't clear what the issue is - it just said "CRITICAL". Even enabling verbose mode didn't clarify the problem. In this case it should result in a linting error about the component not being present in main.nf, rather than a complete tool failure
👍🏻 1