From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Some doc/examples files incompatible with latest update In-Reply-To: <87d0jj9m4s.fsf@elephly.net> References: <87v9xbih63.fsf@kyleam.com> <87d0jj9m4s.fsf@elephly.net> Date: Wed, 12 Jun 2019 09:37:22 -0400 Message-ID: <87sgsej565.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Ricardo Wurmus Cc: gwl-devel@gnu.org List-ID: Ricardo Wurmus writes: >> | ERROR: In procedure scm-error: >> | No applicable method for #< workflow-processes* (1)> in call >> | (workflow-processes* #) > > =E2=80=9Cload-workflow=E2=80=9D now prints an understandable error messag= e when the file > it loads does not evaluate to a workflow. Thanks. Should simple-wisp.w also be updated to evaluate to a workflow (something along the lines of the patch I included with my first email)? ,---- | doc/examples $ ../../pre-inst-env guix workflow -f --run=3Dsimple-wisp.w | Compiling simple-wisp.w...OK | File `simple-wisp.w' does not evaluate to a workflow value. `---- >> The warning on the first line seems to be spurious---simple.scm doesn't >> use "restrictions"---and I'd guess that warning was introduced by >> 8e76f22 (workflows: Implement type with GOOPS). > > That was indeed a side-effect of initializing the =E2=80=9Crestrictions= =E2=80=9D field > to #F. This is now fixed. Great, thanks. >> I'm still not able to get extended-example-workflow.scm running despite >> d676e60 already adjusting it. I've debugged it a bit, and there seems >> to be a few separate issues, but I didn't get it working and I'm running >> out of time at the moment to properly write it up, so I'll leave it be >> for now. > > The problem appeared to be the conflicting import of =E2=80=9Czip=E2=80= =9D from (gnu > packages compression) and (srfi srfi-1), which is loaded by default. > It=E2=80=99s also fixed now. Right, that was one thing. Another thing I hit into is the assumption that the workflow is executed from a particular location, which is presumably an interaction between loading extended-example-workflow.scm and its `(include "example-workflow.scm")'. I first tried from withing doc/examples/: ,---- | doc/examples $ ../../pre-inst-env guix workflow -f --run=3Dextended-examp= le-workflow.scm | failed to load 'extended-example-workflow.scm': No such file or directory |=20=20 | 8 (apply-smob/1 #) | In ice-9/boot-9.scm: | 705:2 7 (call-with-prompt _ _ #) | In ice-9/eval.scm: | 619:8 6 (_ #(#(#))) | In guix/ui.scm: | 1747:12 5 (run-guix-command _ . _) | In guix/scripts/workflow.scm: | 118:17 4 (guix-workflow . _) | In gwl/utils.scm: | 103:16 3 (load-workflow "extended-example-workflow.scm") | In ice-9/boot-9.scm: | 829:9 2 (catch _ _ # =E2=80=A6) | 2312:4 1 (save-module-excursion _) | In gwl/utils.scm: | 281:11 0 (_) | Error: (system-error open-file ~A: ~S (No such file or directory doc/exam= ples/example-workflow.scm) (2)) | File `extended-example-workflow.scm' does not evaluate to a workflow valu= e. `---- But I had to go up to the top-level directory to get it to work. ,---- | $ ./pre-inst-env guix workflow -f --run=3Ddoc/examples/extende= d-example-workflow.scm | Executing: /bin/sh -c /gnu/store/g5wkzwgbfgma76ycn3mwd2xmph37clhm-create-= file-one.txt=20 | Executing: /bin/sh -c /gnu/store/w481dn7lqafdsns416n833z4wlh1qayg-create-= file-two.txt=20 | Executing: /bin/sh -c /gnu/store/w9dn1h1rhladkfk4fyyjyman33vc2n44-create-= file-three.txt=20 | Executing: /bin/sh -c /gnu/store/z36ibjk85i4ya1liwcgq4ilng31midhn-compres= s-file-one.txt=20 | Executing: /bin/sh -c /gnu/store/dgf3izpqq07a6zqacyq6qh5qfnk9azhz-compres= s-file-two.txt=20 | Executing: /bin/sh -c /gnu/store/6mm7alimsdm5mdjv6gv713p2b3bhqhdi-compres= s-file-three.txt=20 | Executing: /bin/sh -c /gnu/store/yji5pjkn9dqv9sgi0jvl1dxz4f6brcjb-list-fi= le-one.txt.gz=20 | Executing: /bin/sh -c /gnu/store/7d7bkih2qj03gs36b7nzjvf8calw65xn-list-fi= le-two.txt.gz=20 | Executing: /bin/sh -c /gnu/store/fvyb0awbfd6jmj74hjf2agm0wq6i8866-list-fi= le-three.txt.gz `----