You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use mainargs with scala-cli. Right now using mainargs with the @main annotation on a case class causes a compiler error due to the way scala-cli wraps the program code by default. A workaround is to run scala-cli with the --objectWrapper flag, which changes the way scala-cli wraps the program code to make it compatible, but doing so causes scala-cli to emit a warning message about the --objectWrapper flag being an unstable experimental feature. lt would be nice if the @main annotation could be reworked to support running in scala-cli without requiring the use of the --objectWrapper flag.
The text was updated successfully, but these errors were encountered:
I would like to be able to use
mainargs
withscala-cli
. Right now usingmainargs
with the@main
annotation on a case class causes a compiler error due to the wayscala-cli
wraps the program code by default. A workaround is to runscala-cli
with the--objectWrapper
flag, which changes the wayscala-cli
wraps the program code to make it compatible, but doing so causesscala-cli
to emit a warning message about the--objectWrapper
flag being an unstable experimental feature. lt would be nice if the@main
annotation could be reworked to support running inscala-cli
without requiring the use of the--objectWrapper
flag.The text was updated successfully, but these errors were encountered: