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

'unable to create project at project root' error message should say how to fix the problem #5322

Closed
1 task done
joachim-n opened this issue Sep 6, 2023 · 2 comments
Closed
1 task done
Assignees
Milestone

Comments

@joachim-n
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Output of ddev debug test

Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]

Expected Behavior

I did ddev list and there is a warning:

unable to create project at project root '/Users/joachim/Sites/pants': project root /Users/joachim/Sites/pants does not exist

I googled for how to delete a project and at https://ddev.readthedocs.io/en/latest/users/usage/uninstall/ it says to do [ddev delete <project>](https://ddev.readthedocs.io/en/latest/users/usage/commands/#delete). But I assume that's a project name - I don't know what that is.

There's a mention of this case at #2314.

But the error message should give the user next steps to fix the problem.

Actual Behavior

Error message that the user can't act on.

Steps To Reproduce

No response

Anything else?

No response

@rfay
Copy link
Member

rfay commented Sep 6, 2023

Yes, `ddev delete --omit-snapshot should delete your project just fine.

If not, just remove its line from ~/.ddev/global_config.yaml.

This typically comes from removing the files/directory from an exiting project.

A PR would be welcome if you think you know how to phrase that better. Remember that there are more ways than one to be in this situation, but this is the most common.

@rfay rfay added this to the v1.23 milestone Sep 11, 2023
@tmotyl
Copy link
Contributor

tmotyl commented Mar 19, 2024

The error message "unable to create project at project root" could mention what command to run to remove the proejct.
Like:

If you want to remove the project, run:
ddev delete --omit-snapshot <project-name>

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

No branches or pull requests

3 participants