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

click: macos issues #6

Open
dnbrwstr opened this issue May 24, 2023 · 2 comments
Open

click: macos issues #6

dnbrwstr opened this issue May 24, 2023 · 2 comments

Comments

@dnbrwstr
Copy link

dnbrwstr commented May 24, 2023

I spent a little time trying to get click running on MacOS, and ran into a few issues.

Vanilla MacOS

First, I tried running the script from my local shell, and ran into some errors, mostly to do with incompatible versions of system tools. Here they are, in the order I hit them.

  • click: mktemp: illegal option
    macos' mktemp doesn't support the --tempdir option.
    workaround: remove the option, seems to proceed fine.
  • click-format: line 103: syntax error near unexpected token ;&
    macos' default bash is quite old (3.2) and doesn't support this syntax
    workaround: duplicate the last case so fallthrough isn't needed
  • nc: invalid option -- W
    surprise: macos' version of netcat is quite old and doesn't support this option
    workaround: none; with a cursory search i was unable to find a compatible version of netcat to use

Local Ubuntu VM

Next, I tried running both my ship and the script via on a local Ubuntu (22.10 kinetic) VM, powered by Orbstack. The script ran, but the command failed inside Urbit with this output:

./urbit-tools/pkg/click/click -k ./ships/zod $'=/  m  (strand ,vase)  ;<  ~  bind:m  (poke [~zod %hood] %helm-hi !>(\\\'\\\'))  (pure:m !>(\\\'success\\\'))'
loom: mapped 2048MB
lite: arvo formula 2a2274c9
lite: core 4bb376f0
lite: final state 4bb376f0
eval (cue, newt):
[0 %bail 0xffffffff %newt-decode]

On debugging, I found that even though the input was formatted correctly on the command line, the value inside the script was malformed -- all double spaces had been replaced with single, causing the bail. My hunch is that this was caused by some issue in Orbstack's terminal integration, but am reporting here for posterity.

Workaround

I ended up running this on a vps running ubuntu 22.10, where it worked with no issue.

@will-hanlen
Copy link

same problem

@thisistheaj
Copy link

same problems here

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

3 participants