Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-05 Thread Ulrich Vollert
Dear David Mitchell, I upgraded graphviz and started graphview. In the graphview, File -> Open opens the Finder (similar to the Windows Explorer) at the folder ‚graphs' (at /usr/local/Cellar/graphviz/2.40.1_1/share/graphviz/graphs), so I can choose to select the „direct“ or the „undirected“ ex

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-05 Thread David Mitchell
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 Volle

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread Ulrich Vollert
Dear Mitch, I upgraded graphviz and did graphview '' NB. show empty view graphview 'digraph G { a->b }',LFNB. show from graph def graphview '~addons/graphics/graphviz/testsm/cut.dot' NB. show graph file Which are working. Thank you very

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread David Mitchell
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 an

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread Ulrich Vollert
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. Thi

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread Ulrich Vollert
Dear David, Thank you very much for your efforts. Please tell me if I can help you. Regards, Ulrich > Am 04.07.2019 um 16:38 schrieb Ulrich Vollert : > > 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

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread David Mitchell
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

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread Ulrich Vollert
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 e

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-04 Thread David Mitchell
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 availabl

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
The svg file contains > Am 03.07.2019 um 21:28 schrieb David Mitchell : > > 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 1

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
I tried this and got no error message, there was no message at all. The output file is empty (0 bytes) Regards Von meinem iPhone gesendet > Am 03.07.2019 um 21:28 schrieb David Mitchell : > > Hi Ulrich, > > Could you please try copying and pasting the value of spawn_arg_base_ to a > console

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread David Mitchell
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 --

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
Hi David, I changed the line in '/applications/j64-807/addons/graphics/graphviz/graphviz.ijs‘ from spawn_jtask_,PROG,' ‚,cmdline To spawn_jtask_ spawn_arg_base_=:,PROG,' ',cmdline Loaded graphviz.ijs and run graphview 'digraph G { a->b }',LF I got the error |int

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread David Mitchell
Ulrich, It looks like spawn_jtask_ is unhappy with the arguments. Can you please modify ~Addons/graphics/graphviz/graphviz.ijs in this way: ... show=: 3 : 0 ... spawn_jtask_,PROG,' ',cmdline goes to spawn_jtask_ spawn_arg_base_=:,PROG,' ',cmdline Please try the test again and let me know

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
Hi David, The answer to which dot is /usr/local/bin/dot And I can execute dot in a console window. If I rename dot to dot.tst, I get the same error as you (not surprising). Regards, Ulrich > Am 03.07.2019 um 19:22 schrieb David Mitchell : > > Hi Ulrich, > > Thanks for the pa

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread David Mitchell
Brian, The original graphviz uses the LF as a flag to determine if the argument is a graph or a file name of a graph file. That is why you got the 'Reading file" error. I did not modify that behaviour in my updated version. Cheers, David Mitchell On 7/2/2019 14:58, Brian Schott wrote: I ca

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread David Mitchell
Hi Ulrich, Thanks for the path information. I tried your test on Ubuntu: graphview 'digraph G { a->b }',LF After a pause, it opened up the expected digraph display window. I then did this: me@me-vm-ub1:~$ which dot /usr/bin/dot me@me-vm-ub1:~$ su Password: root@me-vm-ub1:/media/home2/dm# cd

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
Hi David, the executables are in the path. There is a folder /usr/local/Cellar/graphviz/2.40.1_1/share/graphviz And a link to this folder from /usr/local/share/graphviz This folder contains four subfolders doc graphs gvpr lefty Please tell me,

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread David Mitchell
Hi Ulrich, Can you tell me where the example graphs are installed? In Ubuntu, they can be here: /usr/share/doc/graphviz/examples/graphs In Centos, they can be here: /usr/share/graphviz/graphs Also, the current addon assumes that the graphviz executables are in the path. Thanks, David Mitchell

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-03 Thread Ulrich Vollert
Hi, I installed graphviz with homebrew on Darwin which put the binaries into /usr/local/Cellar/graphviz/2.40.1_1/bin Homebrew links the binaries into /usr/local/bin Regards Ulrich > Am 03.07.2019 um 02:35 schrieb bill lam : > > Have you homebrew install graphviz and what is

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-02 Thread bill lam
Have you homebrew install graphviz and what is the folder where it was installed? On Wed, Jul 3, 2019, 2:42 AM Ulrich Vollert wrote: > Hi, > > I installed graphviz and tried it on > > Engine: j807/j64/darwin > Release-d: commercial/2019-03-18T16:07:14 > Library: 8.07.26 > Qt IDE: 1.7.9/5.9.7 > P

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-02 Thread 'robert therriault' via Programming
Hi David, The path I have for my j807 is Macintosh HD/Users/bobtherriault/j64-807/addons/graphics/graphviz same pattern for j901 Cheers, bob > On Jul 2, 2019, at 12:55 PM, David Mitchell wrote: > > Hi Ulrich, > > I was unable to determine where graphviz would be installed on darwin. I > h

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-02 Thread David Mitchell
Hi Ulrich, I was unable to determine where graphviz would be installed on darwin. I have added cases in the j addon for Windows, Ubuntu and Centos. Do you have the graphviz darwin package installed? If so, can you tell me the path to the standard sample graph files? If I get the path, I ca

Re: [Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-02 Thread Brian Schott
I can confirm your error. When I leave off ,LF I get the following error in the graphview window. Error: Reading file digraph G { a->b } -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] error with Graphviz on j807/j64/darwin

2019-07-02 Thread Ulrich Vollert
Hi, I installed graphviz and tried it on Engine: j807/j64/darwin Release-d: commercial/2019-03-18T16:07:14 Library: 8.07.26 Qt IDE: 1.7.9/5.9.7 Platform: Darwin 64 Installer: J807 install InstallPath: /applications/j64-807 Contact: www.jsoftware.com load 'graphics/gra