ddev / vscode-ddev-manager

DDEV Manager offers a centralized and user-friendly interface to control every aspect of your DDEV projects.
https://marketplace.visualstudio.com/items?itemName=biati.ddev-manager
Apache License 2.0
15 stars 3 forks source link

[BUG] Mutagen status is shown as disabled even though it is actually enabled #1

Closed rpkoller closed 1 year ago

rpkoller commented 1 year ago

Please make sure that the bug only applies to this extension, if you have a problem with ddev itself you should open an issue in the ddev repo and not here.

Describe the bug The expanded running project in the VSCode sidebar shows Mutagen as disabled while it is actually shown as enabled when you check the project with for example ddev describe or ddev mutagen monitor. for the context the config.yaml files for both projects i've provided a screenshot for have nothing related to mutagen in their config.yaml files. mutagen is only set in ~/.ddev/global_config.yaml with performance_mode: mutagen.

p.s thank you for working on and releasing the extension! looks really interesting and useful.

To Reproduce Steps to reproduce the behavior:

  1. Start an existing project
  2. Expand the project in the VSCode sidebar
  3. Go to the terminal and run ddev describe or ddev mutagen sync

Expected behavior I would have expected that the project in the VScode sidebar would show Mutagen as enabled

Screenshots Noticed with one DDEV project set to PHP where I wanted to test something with the Drupal install process

php

But happens also on DDEV projects explicitly declared as a Drupal project. Initially thought maybe something is off with the PHP project.

drupal

System (please complete the following information):

Additional context Add any other context about the problem here.

biati-digital commented 1 year ago

Thank's for trying the extension. I've found and fixed this error. I'll publish an update soon including other improvements and fixes.

biati-digital commented 1 year ago

The update has bee published, please try it and let me know if it's working for you.

rpkoller commented 1 year ago

I've updated to the latest version and can confirm that the error is fixed. Tested with two running projects.

Screen Shot 2023-09-03 at 00 55 26

I've set the performance_mode setting to none for one of the projects. after restart the project's mutagen status was correctly shown as disabled (just wanted to test that it works as well the other way around.

Screen Shot 2023-09-03 at 00 58 56

so thanks for the quick fix!

p.s. one detail i have noticed. i have one vscode window open in the ddev manager tab with the two projects running from the screenshot. i've then opened one of the two projects in another vscode window and changed the performance mode setting there and triggered the restart. in the projects vscode window the project state as well as the mutagen status was updated properly. but the status for the two projects in the other vscode window remained running and for both projects the mutagen status remained enabled. that might be a potential stepping stone that "might" lead into issue for people that have many projects running with several vscode windows?

biati-digital commented 1 year ago

I'm glad it's working.

Currently the extension does not listen to DDEV changes outside the current VSCode window, it's a must have feature and will be implemented (I totally forgot to add this to the Roadmap in the ReadMe) but I'm currently trying to figure out the best way to do it.

Thank's for trying it.