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

Omnisharp's mono tries to use system mono lib instead of bundled mono #556

Closed
benknoble opened this issue Jan 30, 2020 · 4 comments
Closed

Comments

@benknoble
Copy link

benknoble commented Jan 30, 2020

I get this output when OmniSharp tries to start up in vim:

channel 0 open: 'dyld: Library not loaded: /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/libintl.8.dylib'
channel 0 open: '  Referenced from: /Users/Knoble/.cache/omnisharp-vim/omnisharp-roslyn/bin/mono'
channel 0 open: '  Reason: image not found'
channel 0 open: '/Users/Knoble/.cache/omnisharp-vim/omnisharp-roslyn/run : ligne 28 : 54423 Abort trap: 6           "${mono_cmd}" "${omnisharp_cmd}" "$@"'

I can confirm that running the run script and the bin/mono fail, so this may be more for OmniSharp/omnisharp-roslyn.

I have an (old?) mono install floating around:

+λ ls /Library/Frameworks/Mono.framework/Versions/5.4.1/                              
Commands/   bin/        etc/        lib/        share/                                
VERSION     docs/       include/    man/        updateinfo

Regardless, I'm not sure why this mono is searching /Library/Frameworks if it was supposed to be fully bundled?

After installing an up-to-date mono with brew, the bundled mono still looks in /Library/Frameworks where the new version is not.

@benknoble
Copy link
Author

benknoble commented Jan 30, 2020

With :let g:OmniSharp_server_use_mono = 1 in my config, I get a prompt to install the server, even though I already have it?

But... everything appears to be working now...

@nickspoons
Copy link
Member

Yeah this kind of issue is best dealt with in the omnisharp-roslyn repo.

I don't know why you're getting prompted to install the server, but if everything is working, might as well close the issue? Feel free to open a new issue if you continue getting prompted.

@benknoble
Copy link
Author

@nickspoons do you know who could migrate this issue to them? It seems odd that omnisharp wasn't using the bundled mono, and I'd bet they'd want to know about it

@nickspoons
Copy link
Member

@benknoble can you just recreate the issue at OmniSharp-roslyn? I don't have any special permissions there.

I imagine they'll be interested in your OS details, and the full output of starting the server manually from the command line (the Vim integration parts are not relevant there).

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

No branches or pull requests

2 participants