-
Notifications
You must be signed in to change notification settings - Fork 326
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
Report errors when generating indexes #6123
Report errors when generating indexes #6123
Conversation
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.
Thanks for the fix! This will make our lives much easier.
I'm wondering if we could add one more layer of safety - when loading the IR cache, can we check if the loaded IR contains any errors and reject such a cache as 'invalid', to force a recompilation? Then, even if somehow a cache with errors becomes generated, our compiler will try its best to recompile to see if the errors go away - and if not - it will at least display good errors.
It's part of the follow up work. |
f3ae5db
to
449e474
Compare
`--compile` command would run the compilation pipeline but silently omit any encountered errors, thus skipping the serialization. This maybe was a good idea in the past but it was problematic now that we generate indexes on build time. This resulted in rather obscure errors (#6092) for modules that were missing their caches. Making compilation more resilient to sudden cache misses is a separate item.
c488914
to
9f924bf
Compare
Pull Request Description
--compile
command would run the compilation pipeline but silently omit any encountered errors, thus skipping the serialization. This maybe was a good idea in the past but it was problematic now that we generate indexes on build time.This resulted in rather obscure errors (#6092) for modules that were missing their caches.
The change should significantly improve developers' experience when working on stdlib.
Important Notes
Making compilation more resilient to sudden cache misses is a separate item to be worked on.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
The documentation has been updated, if necessary.Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
Unit tests have been written where possible.If GUI codebase was changed, the GUI was tested when built using./run ide build
.