Skip to content

/usr/bin/ddev describe --json-output with invalid .ddev/config.yaml hangs IDE for long periods #439

Closed
@ProxiBlue

Description

@ProxiBlue

Is there an existing issue for this?

  • I have searched the existing issues

Are you sure that this bug is related to this DDEV Integration Plugin?

  • I am sure

Enter your error report ID (If available)

No response

Describe the bug

IDE hangs when config.xml enters a state where it contains errors, making it near impossible to edit and fix issue.
Hangs seem to be for about 2/3 minutes at a time, complete lockout.

12:45 $ /usr/bin/ddev describe --json-output
{"level":"fatal","msg":"\u001b[31mFailed to describe project(s): /home/lucas/workspace/uptactics/site/.ddev/config.yaml exists but cannot be read. It may be invalid due to a syntax error: unable to load config file /home/lucas/workspace/uptactics/site/.ddev/config.yaml: invalid configuration in /home/lucas/workspace/uptactics/site/.ddev/config.yaml: yaml: line 27: could not find expected ':'\u001b[0m","time":"2025-05-19T12:45:50+08:00"}
de.php_perfect.intellij.ddev.cmd.CommandFailedException: Command '/usr/bin/ddev describe --json-output' returned non zero exit code {exitCode=1, timeout=false, cancelled=false, stdout=, stderr={"level":"fatal","msg":"\u001b[31mFailed to describe project(s): /home/lucas/workspace/uptactics/site/.ddev/config.yaml exists but cannot be read. It may be invalid due to a syntax error: unable to load config file /home/lucas/workspace/uptactics/site/.ddev/config.yaml: invalid configuration in /home/lucas/workspace/uptactics/site/.ddev/config.yaml: yaml: line 27: could not find expected ':'\u001b[0m","time":"2025-05-19T12:44:40+08:00"}
}
	at de.php_perfect.intellij.ddev.cmd.DdevImpl.execute(DdevImpl.java:74)
	at de.php_perfect.intellij.ddev.cmd.DdevImpl.describe(DdevImpl.java:39)
	at de.php_perfect.intellij.ddev.state.DdevStateManagerImpl.checkDescription(DdevStateManagerImpl.java:155)
	at de.php_perfect.intellij.ddev.state.DdevStateManagerImpl.lambda$updateConfiguration$1(DdevStateManagerImpl.java:67)
	at de.php_perfect.intellij.ddev.state.DdevStateManagerImpl.checkChanged(DdevStateManagerImpl.java:90)
	at de.php_perfect.intellij.ddev.state.DdevStateManagerImpl.updateConfiguration(DdevStateManagerImpl.java:65)
	at de.php_perfect.intellij.ddev.state.StateWatcherImpl.lambda$startWatching$0(StateWatcherImpl.java:33)
	at com.intellij.util.concurrency.Propagation$capturePropagationContext$$inlined$Runnable$1.run(Runnable.kt:17)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
	at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:275)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Steps to reproduce

  1. Create a new project with a working ddev config, and initiate a git repo on that folder, commit all files as usual to the new git repo. Lets assume initial branch name is 'main'
  2. Branch to a new branch and make an edit to the config.xml file, commit that change in the branch
  3. go back to the original branch 'main'
  4. create another branch, and make an edit on same line that the first branch was done, but something different (change a value)
  5. Go back to first initial branch
  6. Merge in the first vreated branch, and commit changes.
  7. Merge in teh 2nd branch.

The IDE now freezes due to a conflict appearing in the config.xml file.
Due to freeze it is near imposible to fix, and another editor has to be used to fix issue

I did all that on CLI using linux. I don;t use the IDE built in git functionality (just like the cli for more control)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions