Closed kevinquillen closed 1 year ago
Hello @kevinquillen,
The error says:
PROJECT_NAME is not a valid project name. Please enter a project name in your configuration that will allow for a valid hostname. See https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_hostnames for valid hostname requirements
Could you please show your .ddev/config.yml
?
It looks like you have an invalid ddev configuration, that's why the status check of the plugin is failing.
Yes, understood - but the problem is that it keeps probing the project. At least for me. We are creating a project template for projects (ex cloning GitHub to new repo). It starts with
name: PROJECT_NAME
type: drupal10
docroot: docroot
php_version: "8.1"
It errors with ddev start, because it should (we want people to change PROJECT_NAME obv to what the project will be). But the JetBrains plugin keeps throwing the error which makes it hard when developing around. As such, the notifications keep mounting. In this case I am aware of the problem, but in this scenario it isnt technically a problem.
It is the expected behavior of the plugin to monitor the status of the ddev instance. As the ddev binary throws an error (non zero exit code) this will bubble up and throw an error in the plugin as well.
But you can disable this background check for the "template project" by turning it off in the settings:
When creating a new project from this template, the first step should be to make the ddev config valid.
Does this solve your problem? What would you suggest on how to handle the error (non zero exit code) of the ddev binary?
Oh, okay, thanks. I didn't know that setting existed. That should work.
Is there an existing issue for this?
Are you sure that this bug is related to this DDEV Integration Plugin?
Enter your error report ID (If available)
No response
Describe the bug
Whenever the DDEV instance is stopped or not running, the IDE will report every so often about an error.
Error output stacktrace:
This error above also speaks to a failed pre-start hook that I have (that I failed on purpose). Either way the project is halted but the error pop up keeps appearing.
When I clicked "Report" it generated another 97 notifications.
Steps to reproduce
No response
Additional context
No response