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

Revisit launch on Mono #1789

Merged
merged 4 commits into from
Oct 16, 2017
Merged

Conversation

DustinCampbell
Copy link
Member

This change causes OmniSharp to be with the 'mono' on the path, if it is available and at least version 5.2.0. If 'mono' can't be found, we fall back to our local Mono.

In addition, I fixed a few bugs I noticed while testing:

  1. STDOUT lines received from OmniSharp are trimmed before processing to ensure that they are properly handled if they start with non-printable characters.
  2. Allow promise rejections from OmniSharp launch failures to propagate. If they aren't, any error messages will not be printed to the output.
  3. Ensure that the --assembly-loader=strict argument is passed to Mono in the proper order. Since it's an argument to Mono, it needs to appear before any OmniSharp arguments.

@DustinCampbell
Copy link
Member Author

One nice benefit of this change is that OmniSharp will run faster on OSX when running on a globally-installed Mono because of the AOT images that Mono installs for core framework assemblies.

@DustinCampbell DustinCampbell merged commit f993d74 into dotnet:master Oct 16, 2017
@DustinCampbell DustinCampbell deleted the tweak-mono-launch branch October 16, 2017 16:16
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.

3 participants