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

Fix handling for -Xlint:help #2781

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Mar 6, 2024

Fixes #2779
Also, improves the way we test compiler print options.

@Gedochao Gedochao marked this pull request as ready for review March 7, 2024 07:27
@Gedochao Gedochao merged commit 9c8b9de into VirtusLab:main Mar 14, 2024
69 checks passed
@Gedochao Gedochao deleted the maintenance/scalac-xlint-help branch March 14, 2024 09:40
"-Xshow-phases",
"-Xplugin-list",
"-Xlint:help",
"-Vphases"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are others, like -opt:help, -Xsource:help, -Xmixin-force-forwarders:help. Would it be possible to forward any ...:help?

Or a more general change where the compiler is invoked in case there are no source files?

Somewhat related

➜ sandbox scala-cli compile --server=false -S 2 -Vprint-args a.txt A.scala
[error]  a.txt: unrecognized source type (expected .scala or .sc extension, or a directory).
If a.txt is meant to be treated as a script, add a shebang header in its top line.
  #!/usr/bin/env -S scala-cli shebang
When a shebang header is provided, the script can then be run with the 'shebang' sub-command, even if no file extension is present.
  scala-cli shebang a.txt

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

Successfully merging this pull request may close these issues.

Cannot always print help from compiler
3 participants