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

allow mainargs to work with scala-cli without the --objectWrapper flag #140

Open
benwbooth opened this issue Jun 14, 2024 · 0 comments
Open

Comments

@benwbooth
Copy link

benwbooth commented Jun 14, 2024

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.

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

1 participant