Skip to content

[2.x] Print warning about scala-reflect not found#8733

Merged
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/inform-sandwich
Feb 14, 2026
Merged

[2.x] Print warning about scala-reflect not found#8733
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/inform-sandwich

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Feb 12, 2026

Problem

scala-reflect not found issue is confusing.

Solution

Print out a specialized warning message. I'm going to use #8728 as a placeholder until we have some more official page from the Scala team.

Test

sbt:smorrebrod-root> compile
[info] Updating projectc_2.13
[info] Resolved projectc_2.13 dependencies
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] [sbt-8728] Smorrebrod - the end of Scala 2.13-3.x sandwich
[warn] Scala 3.8+ cannot be used in a Scala 2.13 subproject.
[warn] Dependency resolution failed because scala-reflect or -compiler 3.x does not exist.
[warn] This happens when a Scala 2.13 subproject depends on Scala 3.8+ directly or transitively.
[warn] To fix this, either
[warn]   - Keep Scala 3 subproject or transitive dependency to 3.7 or below, or
[warn]   - Migrate the Scala 2.13 subproject to Scala 3.x
[warn] See https://github.com/sbt/sbt/discussions/8728
[error] stack trace is suppressed; run last projectC / update for the full output
[error] (projectC / update) sbt.librarymanagement.ResolveException: Error downloading org.scala-lang:scala-reflect:3.8.1
[error]   Not found
[error]   Not found
[error]   not found: /Users/xxx/.ivy2/local/org.scala-lang/scala-reflect/3.8.1/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/scala-lang/scala-reflect/3.8.1/scala-reflect-3.8.1.pom
[error] elapsed time: 1 s, cache 100%, 26 disk cache hits

**Problem**
scala-reflect not found issue is confusing.

**Solution**
Print out a specialized warning message.
@eed3si9n eed3si9n force-pushed the wip/inform-sandwich branch from 2da61f5 to 5efac50 Compare February 14, 2026 07:44
@eed3si9n eed3si9n merged commit 38b4839 into sbt:develop Feb 14, 2026
15 checks passed
@eed3si9n eed3si9n deleted the wip/inform-sandwich branch February 14, 2026 08:02
eed3si9n added a commit to eed3si9n/sbt that referenced this pull request Feb 14, 2026
**Problem**
scala-reflect not found issue is confusing.

**Solution**
Print out a specialized warning message.
eed3si9n added a commit to eed3si9n/sbt that referenced this pull request Feb 14, 2026
**Problem**
scala-reflect not found issue is confusing.

**Solution**
Print out a specialized warning message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants