-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] Generate AbstractZincFile
during -sourcepath
workflow
#1309
Conversation
internal/compiler-bridge/src/main/scala/xsbt/CallbackGlobal.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1304 (comment)
internal/compiler-bridge/src/main/scala/xsbt/CallbackGlobal.scala
Outdated
Show resolved
Hide resolved
ZincPlainFile
during -sourcepath
workflowZincPlainFile
during -sourcepath
workflow
ZincPlainFile
during -sourcepath
workflowAbstractZincFile
during -sourcepath
workflow
99fbd8f
to
6a1ef09
Compare
In certain codepath, unit.source.file is a PlainFile, which causes a MatchError. This PR converts PlainFile to AbstractZincFile, avoiding the MatchError.
cf8095d
to
7696f6c
Compare
@eed3si9n While the PR is in My concern is that since this PR involves |
Yea. Now that AnalysisCallback is AnalysisCallback3, we should just land this. |
This PR fixes #1304, #963
Issue
zinc/internal/compiler-bridge/src/main/scala/xsbt/API.scala
Line 62 in 5eb0de1
In certain codepath,
unit.source.file
is aPlainFile
, which causes aMatchError
.Fix
When
unit.source
is built, convertunit.source.file
toAbstractZincFile
.Validating the fix
The PR includes reproduction scripted test by lrytz. The test passes after the fix.