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

Warning about experimental directives accepting no arguments contains garbage #2353

Closed
alexarchambault opened this issue Aug 17, 2023 · 0 comments · Fixed by #2355
Closed
Labels
bug Something isn't working

Comments

@alexarchambault
Copy link
Contributor

Version(s)
1.0.4

Describe the bug
When compiling a project with an experimental directive accepting no argument, such as //> using python, Scala CLI prints

The `//> using python "<EmptyValue>"` directive is experimental.

The "<EmptyValue>" part is superfluous, and shouldn't be printed.

To Reproduce

$ scala-cli compile -e '//> using python
object Foo'
The `//> using python "<EmptyValue>"` directive is experimental.
Please bear in mind that non-ideal user experience should be expected.
If you encounter any bugs or have feedback to share, make sure to reach out to the maintenance team at https://github.com/VirtusLab/scala-cli
Compiling project (Scala 3.3.0, JVM)
Compiled project (Scala 3.3.0, JVM)

Expected behaviour
Scala CLI doesn't print "<EmptyValue>", like

The `//> using python` directive is experimental.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant