-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
REPL breakages importing from REPL artifacts or root imports (depending on version) #14781
Comments
I get:
|
Confirmed [edit: partially] fixed since 3.1.1, sorry for the noise. Usually I test on head, but I was probably in the middle of an edit. The remaining work item is the broken Oh wait, let me try one more time...
Also verified the error in paranoid mode, clean repo on HEAD.
|
I still can't reproduce any of this. |
I'll reopen if I can diagnose later when the pain point recurs. |
Note to future self: on the scala 2 ticket, I convinced myself that the "empty root package" aka "single tree" model is not evil. See comment at https://github.com/lampepfl/dotty/blob/release-3.2.2/compiler/src/dotty/tools/dotc/typer/Typer.scala#L186 At the language level, in the recently tweaked Scala 2 spec, the difference is between: The second model, in which a compilation unit is not a single tree, is closer to the previous (misleading) spec which implies that the The friction between It may be possible to identify circulating loci of namespace pollution much like the huge garbage patches of the Pacific. |
Just confirming that REPL was broken on 3.1.3 but fixed by 3.3.3. It had separate tickets on "priority of artifacts on class path". Edit: the OP was also correct, on 3.1.1 it correctly errors.
Maybe JDK module support is the feature request. |
Minimized code
or without REPL
Output
Random "root" symbols on the class path (see completions above) shadow things I actually care about.
Scala 2 is divided, in that REPL at least sees the
sun
and not its shadow:Expectation
My expectation was that I had graduated from studying Chapter 2 of the spec.
I needed
CollectionConverters
for a quickie test and couldn't remember how to spell it._root_.jdk
should be lowest-priority binding ofjdk
, below the root contextscala
that makesscala.jdk
available.The text was updated successfully, but these errors were encountered: