-
Notifications
You must be signed in to change notification settings - Fork 146
Ensure a main class element is findable in Scala code passed by stdin
#933
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
Ensure a main class element is findable in Scala code passed by stdin
#933
Conversation
88c319d
to
b1d11ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, we should fix following use case and update scala-cli integration test
lwronski@VL-D-0317 scala-cli % scala-cli version
0.1.4
lwronski@VL-D-0317 scala-cli % scala-cli https://gist.github.com/lwronski/ab522c25905a50d07d0e4cb3e1fcf5d5
Hello
lwronski@VL-D-0317 scala-cli % git branch
* fix-main-class-for-stdin-scala-code
main
lwronski@VL-D-0317 scala-cli % ./mill scala https://gist.github.com/lwronski/ab522c25905a50d07d0e4cb3e1fcf5d5
Compiling project (Scala 3.1.1, JVM)
Warning: Flag -bootclasspath set repeatedly
Warning: Flag -classpath set repeatedly
[error] ab522c25905a50d07d0e4cb3e1fcf5d5-main/Hello.scala:3:11: Not found: Messages
Error compiling project (Scala 3.1.1, JVM)
Compilation failed
1 targets failed
cli.run subprocess failed
Should be fixed now. The issue involved wrongly passing the |
modules/build/src/main/scala/scala/build/preprocessing/ScalaPreprocessor.scala
Outdated
Show resolved
Hide resolved
modules/build/src/main/scala/scala/build/preprocessing/ScalaPreprocessor.scala
Show resolved
Hide resolved
bcb58b1
to
773e4c8
Compare
…dd a relevant integration test
- add missing type declarations - remove redundant braces - other small tweaks
773e4c8
to
7cebce4
Compare
Fixes #907