Commit a00814a
authored
[2.x] fix: Resolve virtual file refs in scaladoc options (sbt#8768)
When `semanticdbEnabled := true` is set on Scala 2.x projects, the
`doc` task fails because `${CSR_CACHE}` placeholders in scalacOptions
(specifically the `-Xplugin:` path for the semanticdb compiler plugin)
are not resolved before being passed to Scaladoc.
This fix resolves virtual file references (containing $) in
scalacOptions before passing them to the Scaladoc bridge, matching
what zinc's MixedAnalyzingCompiler already does for compilation
(see sbt/zinc#1545).
Fixes sbt#8740
Generated-by: GitHub Copilot (Claude Opus 4.6)1 parent c045c72 commit a00814a
4 files changed
Lines changed: 13 additions & 1 deletion
File tree
- main/src/main/scala/sbt
- sbt-app/src/sbt-test/project/semanticdb-doc
- src/main/scala
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2064 | 2064 | | |
2065 | 2065 | | |
2066 | 2066 | | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2067 | 2074 | | |
2068 | 2075 | | |
2069 | 2076 | | |
| |||
2077 | 2084 | | |
2078 | 2085 | | |
2079 | 2086 | | |
2080 | | - | |
| 2087 | + | |
2081 | 2088 | | |
2082 | 2089 | | |
2083 | 2090 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments