Skip to content

perok/workshop-programs-as-values

Repository files navigation

Programs as values

Getting started

Run ./development.sh in a new terminal. On success, you will be presented with VITE (js build tool) telling you to visit an url. This site will be the interactive results of your code changes (reloads on successful code changes). After doing code changes the output and potential compiler errors will be shown in the terminal window. It is recommended to have this easily viewable.

Now, all the code changes will be in this file. Get cracking!

Some potentially helpful resources:

Editor setup

Recommended: devcontainers

  • Use devcontainers in VSCode
    • Note: Open browser to loalhost:5173. On successfull code changes the browser window must reload.

Normal

Use either Intellij or VSCode:

Debugging problem tips

  • Getting errors like the following in sbt shell window? Then use the terminal and run sbt directly.
[error] stack trace is suppressed; run last frontend / frontendInstall for the full output
[error] (frontend / frontendInstall) java.io.IOException: Cannot run program "npm" (in directory "/home/perok/dev/bekk/faggruppe-fp2021/workshop-scala/modules/frontend"): error=2, No such file or directory
[error] Total time: 0 s, completed 20. nov. 2021, 11:58:44
  • The ./development.sh script will fail when you start it if there are compilation issues. This is only a problem at startup.