Commit 8c14f5a
committed
Fix documentation generation from tasty
When running scaladoc with `-from-tasty`, documentation generation for
scala-library-bootstrapped failed with capture checking errors.
Two issues were identified and fixed:
1. Capture checking was re-running on already capture-checked code from tasty,
causing spurious errors. Now `ccEnabled` and `ccEnabledSomewhere` return
false when `-from-tasty` is set.
2. The `-sourcepath` setting was causing source files to be loaded, which is
unnecessary when compiling from tasty (doc comments are stored in tasty).
The original comment said it was needed for `Definitions#init`, but that
mechanism (ScalaShadowingPackageClass) was removed long ago.1 parent 6462d7d commit 8c14f5a
File tree
2 files changed
+13
-11
lines changed- compiler/src/dotty/tools/dotc/config
- project
2 files changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 | | |
145 | | - | |
146 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
155 | 160 | | |
156 | | - | |
157 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
1315 | | - | |
| 1315 | + | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | 1335 | | |
1340 | 1336 | | |
1341 | 1337 | | |
| |||
0 commit comments