lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
140 stars 167 forks source link

typo (?) in readme for `workspace/w04_blockmole` #720

Closed fritjof-b closed 1 year ago

fritjof-b commented 1 year ago

README for week4 lab blockmole provides the following steps:

Kör i linuxterminal med detta kommando:

scala -cp "introprog.jar:." Main

Om du kör i Windows Powershell eller Cmd byt kolon mot semikolon i kommandona ovan.

But should probably be scala -cp "introprog.jar:." run, since we're using

// hello-window.scala

@main
def run(): Unit =
...

At least the former doesn't work for me, but the latter does. :-)

Submitting a PR for this, feel free to reject if not applicable.

bjornregnell commented 1 year ago

Are you perhaps using the new experimental runner for scala-cli that replaces the old scala with then new scala-cli runner? https://scala-cli.virtuslab.org/docs/reference/scala-command/

bjornregnell commented 1 year ago

Aha - never mind my previous comment. I see what you mean. (All this have to be fixed when the new runner is released...)

fritjof-b commented 1 year ago

Great, had to make sure I wasn't fooling anyone. 👍

At least one done, happy new year for now!