-
Notifications
You must be signed in to change notification settings - Fork 682
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
Package manager nullability fixes #5255
Merged
JoeRobich
merged 24 commits into
dotnet:master
from
winstliu:users/winstonliu/misc-nullability
Jul 1, 2022
Merged
Package manager nullability fixes #5255
JoeRobich
merged 24 commits into
dotnet:master
from
winstliu:users/winstonliu/misc-nullability
Jul 1, 2022
Conversation
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
winstliu
force-pushed
the
users/winstonliu/misc-nullability
branch
from
June 5, 2022 04:41
e59609d
to
5b8983c
Compare
JoeRobich
approved these changes
Jul 1, 2022
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 @50Wliu! Sorry it took me so long to review.
} | ||
|
||
if (pkg.url === null) { | ||
eventStream.post(new InstallationFailure(installationStage, new Error("A release package of OmniSharp does not exist for this platform. Set \"omnisharp.path\" to \"latest\" in Settings to use an experimental build."))); |
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 removing this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Covers:
Notable changes:
architectures
to macOS x64 OmniSharp download (I hope this wasn't intentional to allow M1 Macs to download both ARM64 + x64 OmniSharps?architectures
is marked as non-null in IPackage).runtimeDependencies
from package.json.any
-typed package.json is non-null - but I mean, with the previous behavior we would just silently refuse to download OmniSharp. At least now there will be an obvious error thrown somewhere.semver.valid(version)
check.downloadAndInstallPackages
is only ever called with a list of validated OmniSharp packages (function should be renamed to reflect that...), so removed some unnecessary checks around that.While we're here, I'd like to understand the current state of how runtimeDependencies are defined/parsed, so that I have the context to create a followup PR cleaning up some of the associated logic.
installTestPath
used for anything? There's 0 references from AbsolutePathPackage and I don't see any meaningful reads from IPackage.fallbackUrl
is never defined in any of the packages in package.json. Is this something that should be kept around?