jhipster / jhipster-ide

An IDE for the JHipster Domain Language
https://jhipster.github.io/jhipster-ide
127 stars 37 forks source link

Virtually impossible to use git to checkin, checkout or revert changes while this is active #394

Closed naris closed 2 years ago

naris commented 2 years ago

Describe the bug Since this plugin is constantly updating the database diagram .png file from the .jdl file, if it is not ignored then it becomes almost impossible to use git to check anything in or revert it. Also, everything becomes really slow as it seems it is constantly generating this png.

To Reproduce Steps to reproduce the behavior:

  1. Add the .png file generated from jdl to git
  2. check it in (might have to do this outside VSCode with VSCode not running)
  3. make change and try to check them in.
  4. See how slow it is and if it is even able to check anything in while VSCode is running

Expected behavior It should not constantly produce the .png, it should only do so if the .jdl file changes or periodically (with a setting you can change) or when a refresh button is clicked or something.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

colameo commented 2 years ago

close all open JDL files before you check in diagrams (UML png files are generated only when modifying JDL models)

colameo commented 2 years ago

I'm closing this issue as this is not reproducible.

naris commented 2 years ago

This is absolutely reproducible. UML png files are generated CONSTANTYLY when a .jdl file is open, not just when it is modified. If nothing else there needs to be a setting to set a time limit or allow it to be generated manually.

And it interferes with checking in anything, not just the png files themselves. So, if a JDL file is open in a window anywhere, it prevents git operations.

Also, while a JDL file is open in a table anywhere in vscode, it slows down the system a lot as it is constantly generating png files. Again, it really needs a setting so you can specify to only do it every 5 minutes or on demand instead if it just constantly generating the images in a infinite loop