context-map-generator
context-map-generator copied to clipboard
graphviz (installed by brew) in MacOS is not found by Generate Graphical Context Map, if Eclipse is launched from the Dock
Environment
MacOS Catalina 10.15.3
Eclipse 2019-12 (4.14.0)
ContextMapper plugin installed as per instructions
graphviz installed via home brew (brew install graphviz)
$which dot
returns /usr/local/bin/dot
Create .cml with an example ContextMap
All works fine, except graphical generation.
If Eclipse was launched from the Dock, and I use Context Map - Generate Graphical Context Map it does not find graphviz.
However, works OK, when I launch eclipse from a terminal shell where PATH is appropriate (includes /usr/local/bin).
This problem seems to be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=490816
The issue is not really in ContextMapper but in the way Eclipse interprets PATH variable in MacOS, reporting it here just as a note for the record in case any new user encounters the same - it took me a while to figure this out. Maybe it could be mentioned in "how to run on MacOS" part of documentation, or just keep this issue as resolved - "eclipse/MacOS problem" for the record.
Thank you very much @emeti for reporting this! I will add this to the documentation so that Mac users are aware of the issue...