Commit b57b358
committed
Fix documentation generation from tasty with sourcepath
When running scaladoc with `-from-tasty` and `-sourcepath`, documentation
generation failed with capture checking errors and ambiguous reference 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. Source files from the sourcepath were being loaded and their symbols
entered, conflicting with symbols already loaded from tasty. Now
`initializeFromClassPath` skips source file symbol loading when
`-from-tasty` is set.
Additionally, the `classExistsOnSelf` check in Typer is skipped when compiling
from tasty to avoid false positives from re-typechecking.1 parent 6462d7d commit b57b358
File tree
4 files changed
+23
-10
lines changed- compiler/src/dotty/tools/dotc
- config
- core
- typer
- project
4 files changed
+23
-10
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 | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | | - | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | | - | |
| 221 | + | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| 229 | + | |
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3398 | 3398 | | |
3399 | 3399 | | |
3400 | 3400 | | |
3401 | | - | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
3402 | 3404 | | |
3403 | 3405 | | |
3404 | 3406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
1315 | | - | |
| 1315 | + | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| |||
0 commit comments