-
Notifications
You must be signed in to change notification settings - Fork 263
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
Warn when using non doo file as a library #5313
Merged
keyboardDrummer
merged 26 commits into
dafny-lang:master
from
keyboardDrummer:warnNonDooLibrary
Apr 11, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
27948b8
Include libraries of projects referenced through source or libraries
keyboardDrummer 942394e
Add warning when using non-doo files with --library
keyboardDrummer e4f9a0d
Update tests
keyboardDrummer d827340
Add release note
keyboardDrummer 6919db7
Update warning
keyboardDrummer 5f1d9fb
Couple of fixes
keyboardDrummer 3b06f43
Async fixes
keyboardDrummer 3bdbe2a
Resolve warnings
keyboardDrummer f2c0cec
Tiny refactor
keyboardDrummer 379700f
One fix to Server.Main
keyboardDrummer cf8e18b
Fix tests
keyboardDrummer 13eaf8e
Fix ProducerLibrary test
keyboardDrummer c08ac17
Merge branch 'master' into projectAsLibrary
robin-aws d3da45f
Merge remote-tracking branch 'origin/master' into projectAsLibrary
keyboardDrummer 17fa4c9
Fix warning
keyboardDrummer f804f17
Merge branch 'master' into projectAsLibrary
keyboardDrummer 3f49b9c
Stop accepting project files as source files
keyboardDrummer 946ccfa
Slightly more refactoring
keyboardDrummer b6078e4
Merge branch 'master' into warnNonDooLibrary
keyboardDrummer 48e7d10
Merge remote-tracking branch 'origin/master' into warnNonDooLibrary
keyboardDrummer 969b504
Code review
keyboardDrummer 74e3329
Rename .feat file
keyboardDrummer ea414fa
Bring back null checks
keyboardDrummer db82322
Update message
keyboardDrummer 51d1f1c
Merge remote-tracking branch 'origin/master' into warnNonDooLibrary
keyboardDrummer 493c8b1
Merge branch 'master' into warnNonDooLibrary
keyboardDrummer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 is a bit dangerous though, isn't it? If there's some packaging error and the main stdlib doo file is missing, we'll silently ignore it. Better to throw a description internal exception I think.
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.
Oof, I don't recall why this was needed. Well, fastest way to remember is to remove it again ^,^
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.
Without it, the tests fail:
Seems there is no custom check to prevent
--unicode-char false
and--standard-libraries
from being used together. This is discovered and reported in the call toDafnyFile.CreateAndValidate
, after which it still returns null and should not crash because of that.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.
Ah that's fair, if the file is missing it should fail more loudly. I forgot that
CreateAndValidate
only returns null if the file wasn't valid.