Skip to content

[2.x] vf in scalacOptions#1545

Merged
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/scalacoptions
Apr 29, 2025
Merged

[2.x] vf in scalacOptions#1545
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/scalacoptions

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Apr 6, 2025

Ref sbt/sbt#6027

Problem

Compiler options for the compiler plugins ends up capturing the absolute path, specific to the machine.

Solution

This substitutes dollar in scalacOptions with the path.

**Problem**
Compiler options for the compiler plugins ends up capturing the absolute path,
specific to the machine.

**Solution**
This substitutes dollar in scalacOptions with the path.
@eed3si9n eed3si9n force-pushed the wip/scalacoptions branch from 62a9ba0 to a11be8c Compare April 7, 2025 08:03
@eed3si9n eed3si9n merged commit cce336a into sbt:develop Apr 29, 2025
16 of 17 checks passed
@eed3si9n eed3si9n deleted the wip/scalacoptions branch April 29, 2025 06:28
speedcoder430 added a commit to speedcoder430/sbt that referenced this pull request Feb 20, 2026
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)
eed3si9n pushed a commit to sbt/sbt that referenced this pull request Feb 20, 2026
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 #8740

Generated-by: GitHub Copilot (Claude Opus 4.6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant