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

"Missing project main script" error when there is a directory with the workflow name #5073

Open
lazappi opened this issue Jun 18, 2024 · 3 comments · May be fixed by #5083
Open

"Missing project main script" error when there is a directory with the workflow name #5073

lazappi opened this issue Jun 18, 2024 · 3 comments · May be fixed by #5083
Assignees

Comments

@lazappi
Copy link

lazappi commented Jun 18, 2024

Bug report

Expected behavior and actual behavior

Expected behaviour

Pipelines runs successfully

Actual behaviour

Nextflow exist with a Missing project main script error when run in a specific directory

What was happening?

The directory contained a sub-directory with the same name as the workflow. Presumably Nextflow was then looking in that directory instead of pulling the remote workflow.

I think that's reasonable behaviour but it would be nice to have a more informative error message if possible and wanted to note it down in case someone else had the same problem.

Steps to reproduce the problem

mkdir hello
nextflow run hello

Program output

N E X T F L O W   ~  version 24.04.2

Missing project main script: hello/main.nf

nextflow.log

Environment

  • Nextflow version: 24.04.2 build 5914
  • Java version: openjdk 21.0.3 2024-04-16
  • Operating system: Ubuntu
  • Bash version: zsh 5.9 (x86_64-pc-linux-gnu)
@bentsherman
Copy link
Member

Maybe we should show the fully resolved project name in the log, either a git repository url or absolute path

@deekshithpranav
Copy link

I would like to work on this issue. @bentsherman can you assign this to me?

@deekshithpranav
Copy link

Can you review my PR @bentsherman ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants