-
Notifications
You must be signed in to change notification settings - Fork 274
Error message when entry function body cannot be produced [TG-8299] #4943
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
Error message when entry function body cannot be produced [TG-8299] #4943
Conversation
b3536cc
to
b590a06
Compare
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.
This PR failed Diffblue compatibility checks (cbmc commit: b590a06).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120286881
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.
Codecov Report
@@ Coverage Diff @@
## develop #4943 +/- ##
===========================================
- Coverage 69.26% 69.26% -0.01%
===========================================
Files 1307 1307
Lines 108102 108092 -10
===========================================
- Hits 74881 74871 -10
Misses 33221 33221
Continue to review full report at Codecov.
|
throw invalid_command_line_argument_exceptiont( | ||
"the program has no entry point", | ||
"function", | ||
"Specify an entry point that is in the analysis context"); |
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.
Not sure most readers would comprehend "in the analysis context". How about "Specify an entry-point function defined on the classpath"? If they're using "--context-exclude" and so on they presumably understand the hole they're making in the realm of loaded classes?
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.
That would be misleading. The case that it is not on the classpath is already covered elsewhere. This only happens with context restrictions.
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.
Hmm. Perhaps name-check the offending --context-exclude
argument?
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.
I don't understand
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.
For example, "The specified entry-point was not in the analysis context; check that it is included by your --context-include or --context-exclude options"
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.
Or even just "was not available"; I'm trying to avoid saying "the analysis context" and hoping they know what that means
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.
Ok, changed.
Side-note, and not for this PR (I should have talked about this back when |
This can happen when a body is not loaded. Previously crashed on a failed map.at
b590a06
to
18fa5da
Compare
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 18fa5da).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/120460442
Previously crashed on a failed map.at