-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unable to import a package in the REPL version 3.2.0 #16269
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
Thanks for reporting and for your great example. I could reproduce using So I am wondering; is this an SBT issue or is it related to Dotty? |
I have no idea if it is sbt specific or scala 3.2 specific. Due to the error message I suspected it has something to do with the compiler. There is scala.io which is imported automatically. I guess the error shows up because import resolution looks for the element "github" within the scala.io. package. That way the error message "value github is not a member of io" |
just updated my example. I added a package io.xyz.test |
@som-snytt I have this nagging feeling that some change you were involved with might be responsible for this...? some thing about precedence between the different places an identifier can come from? does this ring a bell for you? I'm not spotting anything relevant in the 3.2.0 release notes (but that's a big haystack of bullets to try to find a needle in) |
ah, I found it. duplicate of #15904 |
I didn't even have to nag! |
Compiler version
Scala version 3.2.0
Minimized example
See the example at https://github.com/gmixa/ImportTest
Including class graph via build.sbt . (see minimized example) ends up with the given output
when you do
you get the output below.
Scala Versions 3.1.0 and 3.0.0. give no message. Scala 2.13.10 and Scala 2.12.17 print out a success message.
Due to no replay in Scala 3.1.0 and 3.0.0 I am unsure if the import is accepted or not.
Output
Expectation
Import should just pass with a success message!
The text was updated successfully, but these errors were encountered: