Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't |start %canvas #23

Closed
johnhyde opened this issue Dec 4, 2021 · 4 comments
Closed

Can't |start %canvas #23

johnhyde opened this issue Dec 4, 2021 · 4 comments

Comments

@johnhyde
Copy link
Contributor

johnhyde commented Dec 4, 2021

I did the following:

  • dojo> |merge %base %canvas
  • dojo> |mount %canvas
    (in pier)
  • $ rm -r canvas/*
    (in /ui)
  • $ npm i
  • $ npm run build
  • $ ../install.sh ~/urbit/zod/canvas
  • created a sys.kelvin file with [%zuse 419]
  • dojo> |commit %canvas
    and that all worked fine.
    But when I try: dojo> |start %canvas, I get
clay: %a no file at path [%base 1 /app/canvas/hoon]
crud: %belt event failed
[%poke %belt]
wire=/sys/cor/canvas/~zod/base/~2021.12.4..00.05.38..d79a
  bar-stack
~[
  ~[/gall/use/hood/0w3.X40CG/~zod/kiln/vats/base/jolt/canvas /dill //term/1]
  ~[
    /gall/sys/cor/canvas/~zod/base/~2021.12.4..00.05.38..d79a
    /gall/use/hood/0w3.X40CG/~zod/kiln/vats/base/jolt/canvas
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w3.X40CG/~zod/kiln/vats/base/jolt/canvas /dill //term/1]
  ~[/gall/use/dojo/0w3.X40CG/out/~zod/hood/drum_~zod/poke /dill //term/1]
  ~[/dill //term/1]
  ~[/gall/use/dojo/0w3.X40CG/~zod/drum_~zod/hand/gen/hood/start /dill //term/1]
  ~[/gall/use/hood/0w3.X40CG/out/~zod/dojo/drum/phat/~zod/dojo /dill //term/1]
  ~[/dill //term/1]
  ~[//term/1]
]
take: failed
/sys/vane/gall/hoon:<[1.833 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.834 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.836 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.838 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.842 3].[1.849 5]>
[%gall-take-failed /sys/cor/canvas/~zod/base/~2021.12.4..00.05.38..d79a]
/sys/vane/gall/hoon:<[1.843 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.844 3].[1.849 5]>
/sys/vane/gall/hoon:<[1.845 3].[1.849 5]>
/sys/vane/gall/hoon:<[531 5].[540 7]>
/sys/vane/gall/hoon:<[533 5].[540 7]>
/sys/vane/gall/hoon:<[536 13].[536 47]>
/sys/vane/gall/hoon:<[555 5].[570 39]>
/sys/vane/gall/hoon:<[557 5].[570 39]>
/sys/vane/gall/hoon:<[558 5].[570 39]>
/sys/vane/gall/hoon:<[559 5].[570 39]>
/sys/vane/gall/hoon:<[560 5].[570 39]>
/sys/vane/gall/hoon:<[561 5].[570 39]>
/sys/vane/gall/hoon:<[562 7].[562 58]>
gall: failed to build agent %canvas
@yosoyubik
Copy link
Owner

Are you on master? I have a branch (that's the one deployed on my moon) that is set up for software distribution:

https://github.com/yosoyubik/canvas/tree/distro

Your instructions should work for getting the backend running. Then you can go to http://localhost:8080/~debug and log in—you need a cookie for developing the UI.

Then go to /ui and npm i && npm run dev.

This is going to serve the frontend on http://localhost:3000/app/canvas—it's proxying all the calls to the backend to port 8080 on your urbit.

I think that's all you need to get it to work, let me know if run into any problems and thanks for trying it out! :)

@johnhyde
Copy link
Contributor Author

johnhyde commented Dec 4, 2021

When I try checking out distro and committing that to my desk, I get:

> |commit %canvas
>=
crud: %into event failed
[%poke %into]
bar-stack=~[~[//sync/0vt.r49vl]]
call: failed
/sys/vane/clay/hoon:<[4.344 3].[4.585 5]>
/sys/vane/clay/hoon:<[4.346 3].[4.585 5]>
/sys/vane/clay/hoon:<[4.350 3].[4.585 5]>
/sys/vane/clay/hoon:<[4.353 3].[4.585 5]>
/sys/vane/clay/hoon:<[4.431 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.432 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.433 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.435 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.439 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.440 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.442 5].[4.445 15]>
/sys/vane/clay/hoon:<[4.443 7].[4.444 44]>
/sys/vane/clay/hoon:<[4.444 7].[4.444 44]>
/sys/vane/clay/hoon:<[4.444 12].[4.444 44]>
/sys/vane/clay/hoon:<[1.504 5].[1.521 47]>
/sys/vane/clay/hoon:<[1.507 5].[1.521 47]>
/sys/vane/clay/hoon:<[1.517 5].[1.521 47]>
/sys/vane/clay/hoon:<[1.521 5].[1.521 47]>
/sys/vane/clay/hoon:<[1.478 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.479 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.485 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.486 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.497 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.498 5].[1.498 26]>
/sys/vane/clay/hoon:<[1.535 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.536 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.539 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.546 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.547 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.550 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.554 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.556 5].[1.624 20]>
[ from=2
  deletes={}
    changes
  { [i=~.app t=/canvas/hoon]
    [i=~.desk t=/bill]
    [i=~.lib t=/canvas-templates/hoon]
    [i=~.desk t=/docket-0]
    [i=~.sur t=/canvas/hoon]
    [i=~.mar t=/canvas/diff/hoon]
    [i=~.lib t=/canvas/hoon]
  }
]
/sys/vane/clay/hoon:<[1.562 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.563 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.566 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.567 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.568 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.572 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.575 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.576 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.578 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.580 5].[1.624 20]>
/sys/vane/clay/hoon:<[1.580 40].[1.580 71]>
/sys/vane/clay/hoon:<[1.906 7].[1.925 64]>
/sys/vane/clay/hoon:<[1.907 7].[1.925 64]>
/sys/vane/clay/hoon:<[1.911 7].[1.925 64]>
/sys/vane/clay/hoon:<[1.912 7].[1.925 64]>
/sys/vane/clay/hoon:<[1.913 7].[1.925 64]>
/sys/vane/clay/hoon:<[1.915 9].[1.916 49]>
/sys/vane/clay/hoon:<[1.916 9].[1.916 49]>
[%error-validating /desk/docket-0]
[%validate-page-fail /desk/docket-0 %from %mime]
[%error-building-tube %mime %docket-0]
[%error-building-cast %mime %docket-0]
clay: no files match /mar/docket-0/hoon

and I have no idea what to make of that.

If I stick with master, running npm run dev and visiting http://localhost:3000/apps/canvas gives me,
image
which is something, I guess. Should I assume that I need to get the distro branch working to develop on the ui?

Edit: If I actually use the right url 🤦‍♂️, I get a better situation, although there's still an error:

TypeError: Cannot read property 'default' of null
    at eval (/src/components/Header.svelte:38:61)

Edit #2: Actually, after deleting desk.docket-0, I can commit the desk from distro, but I still get the 404 error on the frontend, even at the correct URL.

@yosoyubik
Copy link
Owner

It looks like the docket-0 mark is missing—the repo here has only the files that relate to canvas, but no the whole thing, which is something I should probably fix before I merge to master. In the distro guide you have the steps for getting a minimal desk with the necessary files prior to putting all the canvas files (the part about ./symbolic-merge.sh will set everything up)

https://urbit.org/docs/userspace/dist/guide#create-desk

@johnhyde
Copy link
Contributor Author

johnhyde commented Dec 6, 2021

Sounds like Urbit needs a package dev-desk management system.
Once I figured out I needed to run |install our %canvas, things improved dramatically. I'll include it in my README updates.

@johnhyde johnhyde closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants