Dear Ulrich,
Thanks for your help debugging this. It would not have been possible to fix the
issue otherwise.
I made one last change to select the Darwin sample graphs from the File->Open
Menu.
Please let me know if this works correctly.
All the best,
Mitch
On 7/4/2019 14:02, Ulrich Vollert wrote:
Dear Mitch,
I upgraded graphviz and did
graphview '' NB. show empty view
graphview 'digraph G { a->b }',LF NB. show from graph def
graphview '~addons/graphics/graphviz/testsm/cut.dot' NB. show graph file
Which are working.
Thank you very much for your effort.
Best regards,
Ulrich
Am 04.07.2019 um 18:59 schrieb David Mitchell <davidmitch...@att.net>:
Hi Ulrich,
Yes, that would explain it.
The simplest way around this is to do for Darwin what the Windows code does and
ignore any path settings and specify the full path to dot in the call to spawn.
This seems like a reasonable approach.
I just updated the addon to do this.
Please try it and see if it works.
If so, I'll update the path to the samples as well.
Thanks,
David Mitchell
On 7/4/2019 11:57, Ulrich Vollert wrote:
Hi David,
I looked for the source code of spawn which seems to be 2!:0@]
I tried
2!:0 'pwd'
Or
2!:0 'ls'
Which work as expected.
With
2!:0 'echo $PATH???
I found out that there is a different path which is used by 2!:0, different
from the path in the console window.
This shorter path contains only
/usr/bin:/bin:/usr/sbin:/sbin
And does not contain /usr/local/bin, so
2!:0 ??????which dot???
Gives no answer but instead an interface error.
I assume that this is the explanation for the interface error.
Regards,
Ulrich
Am 04.07.2019 um 17:20 schrieb David Mitchell <davidmitch...@att.net>:
Hi Ulrich,
It looks like the dot program did what it was supposed to do, but, for some
reason, J thinks there was an error from spawn.
I'll see if I can puzzle it out by reviewing the J source code. J does use
different code for spawn on Darwin than on Windows or Linux.
All the best,
David Mitchell
On 7/4/2019 10:38, Ulrich Vollert wrote:
Hi David,
The file graphview.svg contains a svg-drawing: a circled letter 'a' pointing to
a circled letter ???b' which I added to my email, but the png-image was removed
from my email.
I assume that this svg-file is the expected answer.
So, I assume that dot is working as expected and without errors.
To answer your question completely:
The command ldd under Linux is not available on a Mac, but 'otool -L??? gives
similar answers:
/usr/local/bin/dot:
/usr/local/Cellar/graphviz/2.40.1_1/lib/libgvc.6.dylib (compatibility
version 7.0.0, current version 7.0.0)
/usr/local/opt/libtool/lib/libltdl.7.dylib (compatibility version
11.0.0, current version 11.1.0)
/usr/local/Cellar/graphviz/2.40.1_1/lib/libxdot.4.dylib (compatibility
version 5.0.0, current version 5.0.0)
/usr/local/Cellar/graphviz/2.40.1_1/lib/libcgraph.6.dylib
(compatibility version 7.0.0, current version 7.0.0)
/usr/local/Cellar/graphviz/2.40.1_1/lib/libpathplan.4.dylib
(compatibility version 5.0.0, current version 5.0.0)
/usr/lib/libexpat.1.dylib (compatibility version 7.0.0, current version
8.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1252.200.5)
/usr/local/Cellar/graphviz/2.40.1_1/lib/libcdt.5.dylib (compatibility
version 6.0.0, current version 6.0.0)
Regards,
Ulrich
Am 04.07.2019 um 14:36 schrieb David Mitchell <davidmitch...@att.net>:
Your message seems to be truncated. Does that mean that the .svg outoput file
was created, but is empty?
I have two other suggestions.
You could try putting a space after the -o and before the file name.
Also, you could try:
ldd /usr/local/bin/dot
to see if all needed libraries are available.
All the best,
David Mitchell
On 7/3/2019 15:51, Ulrich Vollert wrote:
The svg file contains
Am 03.07.2019 um 21:28 schrieb David Mitchell <davidmitch...@att.net>:
Hi Ulrich,
Could you please try copying and pasting the value of spawn_arg_base_ to a
console window and running it? You may get more interesting error messages.
Thanks,
David Mitchell
On 7/3/2019 15:08, Ulrich Vollert wrote:
graphview 'digraph G { a->b }',LF
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm