Improve exception logic for missing Python models#714
Conversation
|
@keyboardDrummer-bot can you resolve the conflicts and fix the build? |
|
I've merged Regarding the build failure: the Two things that will likely need updating once CI runs:
I'll update both once CI reports the actual output. |
MikaelMayer
left a comment
There was a problem hiding this comment.
Yes this is a good soundness fix.
atomb
left a comment
There was a problem hiding this comment.
I'm not sure I understand the translation of exceptions from Python well enough to be sure whether this is correct, but I noticed one place where the code and comment seem inconsistent.
|
The conflicts have already been resolved (from my earlier merge), and the build is now green — all 15 CI checks are passing ✅ There's one outstanding review comment from @atomb on |
|
I've pushed the fix in draft PR #788 (targeting this branch):
|
Addresses feedback from @keyboardDrummer in #714: 1. Updated the comment in `inferStmt`'s `.Assign` case to accurately describe the behavior: "Use the single target's type as the expected type for the value" 2. Removed the redundant `match targetType.val` — since `defaultHoleType` is `bareType .Unknown`, matching `.Unknown => defaultHoleType` is a no-op. Replaced with just `targetType` directly. 3. Inlined the now-unnecessary `inferredType` binding.
|
@keyboardDrummer-bot, can you fix the merge conflicts? |
Pull request was converted to draft
- PythonToLaurel.lean: keep both exceptionCheck from main and .Hole holeExceptHavoc from this branch - PreludeVerifyTest.lean: update assertion IDs to match merged code
|
I've resolved the merge conflicts and pushed the fix. Here's what I did:
The build and |
|
I've resolved the merge conflict by merging Note: since this PR's code changes in |
|
The "Build and test Lean (stable)" CI failure was caused by stale assertion IDs in Fixed by updating the three assertion IDs: (The other failing check, |
keyboardDrummer-bot
left a comment
There was a problem hiding this comment.
Responding to @tautschnig's two review comments. Both are good observations — the code duplication is straightforward to fix with a helper, and the path explosion in the test output is a consequence of the havoc-at-each-call-site approach. Deferring to @keyboardDrummer on whether to proceed with both changes.
|
@keyboardDrummer-bot please resolve merge conflicts |
….lean) Remove md field from Procedure constructions since PR #769 moved MetaData from Procedure into the Identifier name field.
|
Merge conflicts resolved and pushed. The conflict was in Build passes locally (492/492 jobs). |
|
👋 Hi, @keyboardDrummer, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
|
@keyboardDrummer-bot please resolve merge conflicts. |
|
Merge conflicts resolved. There was one conflict in |
|
The branch is already up to date with I addressed @tautschnig's review comments:
Build passes (101/101 jobs). |
|
The branch is already up to date with The open review thread on |
MikaelMayer
left a comment
There was a problem hiding this comment.
Havoc-ing maybeExcept is a rightful soundness fix.
Changes
maybe_exceptTesting
test_missing_modelsBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.