Closed Milly closed 5 months ago
Looks like a case of #146 ? Filtering them out doesn't make those imports updatable but maybe better than throwing.
Can we show warnings on them? Do you think it too annoying?
Let me fix CI first...
I believe I can fix #146 in this week so we might just wait for it instead.
Looks like a case of #146?
That's right. Sorry I missed it.
Filtering them out doesn't make those imports updatable but maybe better than throwing. Can we show warnings on them? Do you think it too annoying?
Production code should not generate assertion errors or should be caught properly. This is because the cause of the error is unknown to the user. Of course, it is acceptable to include assert()
for developers.
It should be one of the following:
Sorry pushed invalid code, so force pushed...
Production code should not generate assertion errors or should be caught properly. This is because the cause of the error is unknown to the user. Of course, it is acceptable to include assert() for developers.
Absolutely right. That's why the behavior is labeled as a bug.
Appreciate your additional work, which looks good as a tentative fix. I will probably re-write an equivalent logic in core/graph.ts when I fix #146, but let me merge your change as an emergent patch if you don't mind your PR would be reverted eventually.
@Milly Can I squash your commits and rewrite the message on merging?
An assertion error occurs if
graph.modules[].dependencies[]
has an error data like following:I don't know if it's okay to simply filter. Now it works for me.