-
Notifications
You must be signed in to change notification settings - Fork 1.1k
The REPL stopped reading classfiles from the current working directory #16715
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
Comments
Note that this is showing the perils of punctuation, not the parent directory:
It "defaults" to and redundantly The debug option is I see 3.1 is when the generic runner entrypoint was introduced? There is an ancient history of wishing to remove |
related history at #12571 I doubt that having |
The
That makes zero sense to me. Less than zero. I have snippets for testing, and obviously I want to try them out from the REPL. IIRC there is a special line of code in Scala 2 that allows REPL-hosted code to hack the "empty" package. JLS adds that we're living in the least useful of all possible worlds:
|
It seems we won't be changing the current behaviour. |
Compiler version
Regression appeared in 3.1.0.
Minimized code
First, I create a file and I compile it in the current directory.
Then:
However, in Scala 3.0.2:
Also note that if I run
scala
withcs launch scala:3.1.0
instead of using the binary published in the release, then it works as in 3.0.2.Expectation
The current working directory should be included in the classpath, by default, as it was the case in 3.0.2, as it is the case in 2.13, and as it is documented:
Related discussion: VirtusLab/scala-cli#1686
The text was updated successfully, but these errors were encountered: