Skip to content
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

in scripting, load inherited assemblies from the current AppDomain #1185

Merged
merged 2 commits into from
May 11, 2018

Conversation

filipw
Copy link
Member

@filipw filipw commented May 11, 2018

Fixes #1184

Rather than trying to resolve them from OmniSharp.deps.json with Microsoft.Extensions.DependencyModel, we just grab them from the current AppDomain. This is much simpler and much more reliable, because we have seen now that it's possible for Microsoft.Extensions.DependencyModel to throw on non-Windows platforms.

This is impossible to test from unit tests. In fact we have a unit test that check the correct behavior of the script host object (which is really the case here) but as mentioned in #1184, the problem only manifested itself in certain situation.

Copy link
Contributor

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix!

@DustinCampbell
Copy link
Contributor

Hey @filipw -- we'd like to take this fix as part of a 1.15.2 update to C# for VS Code. I'm going to merge this and cherrypick it to a new branch based on 1.30.0. Then, we can produce an OmniSharp release for 1.13.1 from that branch and use it in the C# for VS Code update. Sound good? We're aiming for early next week for that release.

cc @rchande and @TheRealPiotrP

@filipw
Copy link
Member Author

filipw commented May 11, 2018

great! that would be very much appreciated! 🤩

@DustinCampbell DustinCampbell merged commit c090661 into master May 11, 2018
@filipw filipw deleted the bugfix/unix-scripting branch October 16, 2018 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script project system fails to initialize in VS Code 1.15.0 (1.30.0 release of OmniSharp) on macOS
3 participants