Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-stub flag triggers error "Cannot invoke method clone() on null object" #5456

Closed
xuyangyuio opened this issue Oct 31, 2024 · 2 comments · Fixed by #5473
Closed

-stub flag triggers error "Cannot invoke method clone() on null object" #5456

xuyangyuio opened this issue Oct 31, 2024 · 2 comments · Fixed by #5473
Assignees

Comments

@xuyangyuio
Copy link

xuyangyuio commented Oct 31, 2024

Bug report

-stub flag breaks workflow with error message "Cannot invoke method clone() on null object"

Expected behavior and actual behavior

  • Without -stub flag, pipeline completes successfully.
  • With -stub flag, got error "Cannot invoke method clone() on null object"

Steps to reproduce the problem

test.nf:

process mockup {
    output:
    file "*.vcf"

    script:
    """
    touch "real.vcf"
    """
    
    stub:
    """
    touch "stub.vcf"
    """
}

process continue_run {
    input:
    file infile

    """
    echo success
    """
}

workflow {
  mockup | continue_run
}

nextflow run test.nf -stub

Program output

ERROR ~ Error executing process > 'continue_run'

Caused by:
  Cannot invoke method clone() on null object



 -- Check '.nextflow.log' file for details

Environment

  • Nextflow version: 24.10.0 (actually since 24.09.1-edge)
  • Java version: openjdk version "23" / "21.0.5"
  • Operating system: macOS / Linux
  • Bash version: zsh 5.9 / bash 5.1.4

Additional context

(Add any other context about the problem here)

@GallVp
Copy link

GallVp commented Nov 5, 2024

I am experiencing the same issue but without -stub.

@bentsherman
Copy link
Member

@jorgee can you look into this one, might be a regression from the recent changes we made

@jorgee jorgee self-assigned this Nov 5, 2024
@jorgee jorgee linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants