urbit / operators.urbit.org

operators-urbit-org.vercel.app
3 stars 12 forks source link

dojo filesystem tools are hard to use when they don't exist #80

Open jfranklin9000 opened 1 year ago

jfranklin9000 commented 1 year ago

https://operators.urbit.org/manual/os/dojo-tools#dir

%base desk

dojo> +ls %
app/ desk/bill gen/ lib/ mar/ sur/ sys/ ted/

%garden desk (I lightly edited the output)

dojo> =dir /=garden=
=% /~snip/garden/~snip

Now try to +ls % (I moved the error messages after the output)

dojo/=/garden/~snip> +ls %
/gen/ls/hoon
%generator-build-fail

clay: read-at-aeon fail [desk=%garden care=%a case=[%da p=~2023.4.4..01.27.43..6f4a] path=/gen/ls/hoon]
[%file-not-found-mist /gen/ls/hoon]
[%error-validating /gen/ls/hoon]
[%error-building /gen/ls/hoon]
clay: %a build failed [%garden 27 /gen/ls/hoon]
dojo: %writ fail [i=%~.hand t=/gen/ls]

The dojo may/will unlink/link resetting the dojo.

You can |mount /=base=, |mount /=garden=, then copy gen/ls.hoon and lib/show-dir.hoon from base/ to garden/ in the host filesystem, |commit %garden, then try again.

> =dir /=garden=
=% /~snip/garden/~snip

dojo/=/garden/~snip> +ls %
app/ desk/ gen/ lib/ mar/ sur/ sys/kelvin ted/ tests/app/hark-store/hoon

Or you could just +ls /=garden= from the %base desk.

I guess the point is when you change your desk you probably don't have the filesystem tools and the docs should point this out.