Bug 411207 - Auto Layout does not work
Summary: Auto Layout does not work
Status: RESOLVED NOT A BUG
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.29.0 (KDE Applications 19.08.0)
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-23 12:35 UTC by celentanos
Modified: 2019-08-27 07:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description celentanos 2019-08-23 12:35:49 UTC
SUMMARY

I installed Umbrello per snap package (Kubuntu 18.04). At program start up I could see any auto layout actions. I added "/usr/bin" to "Auto Layout"->"Generator executable path". After that the corresponding sub menu actions (e.g. apply 'vertical layout') was to see. But this actions do nothing. I tried that with the class diagram.
Comment 1 Ralf Habacker 2019-08-23 14:31:48 UTC
Auto layout support depends on the 'dot' command line tool which is normally part of the 'graphviz' package from your distribution. 

This hint is also displayed in the tooltip of the "Auto detect layout generator" checkbox in the "Auto layout" settings page.
Comment 2 Ralf Habacker 2019-08-24 07:51:11 UTC
Does it not work because dot is not installed ?
Comment 3 celentanos 2019-08-24 11:09:55 UTC
(In reply to Ralf Habacker from comment #2)
> Does it not work because dot is not installed ?

Graphviz package is installed on my machine.

I installed umbrello from sources (as it described on oficial web side) too, but in this case i dont see any actions to apply auto layout. I used this commando:

cmake -DCMAKE_INSTALL_PREFIX=$HOME/umbrello -DBUILD_KF5=1 -DCMAKE_BUILD_TYPE=Debug ../
Comment 4 Ralf Habacker 2019-08-24 14:04:34 UTC
(In reply to celentanos from comment #3)
> I installed umbrello from sources (as it described on oficial web side) too,
> but in this case i dont see any actions to apply auto layout. I used this
> commando:
> 
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/umbrello -DBUILD_KF5=1
> -DCMAKE_BUILD_TYPE=Debug ../
The reason is that after installing on a non standard location umbrello do not know where to fetch the related config files from without setting a related environment variable (need to research for the exact name) or by placing the files into ~/.local/share/umbrello5/layouts (see result from kf5-config --path data).

If umbrello is installed at a standard location (/usr or /usr/local) the layout related config files are installed into /usr/share/umbrello5/layouts and could be found by umbrello.
Comment 5 celentanos 2019-08-26 08:06:52 UTC
(In reply to Ralf Habacker from comment #4)
> (In reply to celentanos from comment #3)
> > I installed umbrello from sources (as it described on oficial web side) too,
> > but in this case i dont see any actions to apply auto layout. I used this
> > commando:
> > 
> > cmake -DCMAKE_INSTALL_PREFIX=$HOME/umbrello -DBUILD_KF5=1
> > -DCMAKE_BUILD_TYPE=Debug ../
> The reason is that after installing on a non standard location umbrello do
> not know where to fetch the related config files from without setting a
> related environment variable (need to research for the exact name) or by
> placing the files into ~/.local/share/umbrello5/layouts (see result from
> kf5-config --path data).
> 
> If umbrello is installed at a standard location (/usr or /usr/local) the
> layout related config files are installed into /usr/share/umbrello5/layouts
> and could be found by umbrello.

Thank you, auto layout by manual installation (from sources) is now work. I copied layouts folder from install path to following path ~/.local/share/umbrello5/layouts (as you describe above). 

But snap package installation still don't work properly. I tried to place layouts folder to each path from "kf5-config --path data" output.
Comment 6 Ralf Habacker 2019-08-26 08:31:58 UTC
(In reply to celentanos from comment #5)
> Thank you, auto layout by manual installation (from sources) is now work. I
> copied layouts folder from install path to following path
> ~/.local/share/umbrello5/layouts (as you describe above). 
nice to hear. 
> 
> But snap package installation still don't work properly. I tried to place
> layouts folder to each path from "kf5-config --path data" output.
Because snap package need to bundle all requirements there may be the case that graphviz may not be included in the snap package. Running umbrello from the snap package from a command line will give some more hints. Please file an independent bug report for this with 'installer' component.
Comment 7 celentanos 2019-08-27 07:37:25 UTC
(In reply to Ralf Habacker from comment #6)
> Because snap package need to bundle all requirements there may be the case
> that graphviz may not be included in the snap package. Running umbrello from
> the snap package from a command line will give some more hints. Please file
> an independent bug report for this with 'installer' component.

Thank you, it was done :)