Stream: contributing

Topic: rocup - compiler installation management tool


view this post on Zulip Krzysztof Kielak (May 16 2024 at 20:14):

Hi!, I have created for myself rocup (https://github.com/appblue/rocup) simple tool for installing the latest nightly build version of the compiler and making it available on the PATH by symlinking to the /usr/local/bin (usually available in the path on U*ix systems).

The tool keeps all previously downloaded nightly versions, so subsequent executions allow for selection of one of the previous versions.

Hope it will be useful for someone :)

view this post on Zulip Krzysztof Kielak (May 16 2024 at 20:15):

I find it useful, because sometimes it's good to test the code against older versions of the compiler ...

view this post on Zulip Chris (May 16 2024 at 20:48):

i believe the link in the README Installation section is wrong?

view this post on Zulip Krzysztof Kielak (May 16 2024 at 21:35):

Good point - I have actually forgot to run git -A when pushing to the repo ... it's fixed now

view this post on Zulip Jeffrey Mudge (May 17 2024 at 01:47):

I think you accidentally changed the directory for the language server when you fixed the other issue.
Line 38 should be:
sudo ln -sf $ROCUP_HOME/roc/roc_language_server /usr/local/bin/roc_language_server
but it is currently:
sudo ln -sf $ROCUP_HOME/.rocup/roc_language_server /usr/local/bin/roc_language_server

I was having issues with the language server not being in path despite having a symlink for both binaries, but then I realized that there wasn't actually a file at the location where the LS symlink was pointing.

view this post on Zulip Krzysztof Kielak (May 17 2024 at 02:00):

Thanks for your comment. it's already fixed - I haven't noticed it because I had my links created from previous executions

view this post on Zulip Krzysztof Kielak (May 20 2024 at 14:15):

works like a charm .. :)

$ rocup
.. apple silicon Mac detected
.. downloading latest release of the Roc compiler
.. extracting: roc_nightly-macos_apple_silicon-latest.tar.gz
.. trying to install nth latest local version (n = 1)

.. list locally available versions - with selecion marked '->'
   -----------------------------------------------------------
 ->  ~/.rocup/roc_nightly-macos_apple_silicon-2024-05-20-7e1a82f048f/roc
     ~/.rocup/roc_nightly-macos_apple_silicon-2024-05-13-e5ea6dc4617/roc
     ~/.rocup/roc_nightly-macos_apple_silicon-2024-05-11-dd9a6ff2e4a/roc

.. creating local symlink to selected downloaded version
.. installation complete
.. .. rocup tool is now available in /usr/local/bin/rocup
.. .. roc compiler is now available in /usr/local/bin/roc
.. .. roc language server is now available in /usr/local/bin/roc_language_server
.. .. roc compiler version: roc nightly pre-release, built from commit 7e1a82f048f on Mon May 20 09:12:40 UTC 2024

Last updated: Jul 06 2025 at 12:14 UTC