omnisharp-sublime: OmniSharp: Error talking to localhost

Platform

  • Linux
  • Windows
  • OSX

Type

  • This is an issue
  • This is a feature request
  • Other

Checklist

  • It hasn’t been fixed in the latest master
  • I can reproduce this issue in a fresh Sublime Text install without other extensions

Versions

output of mono --version:

5.16.0.179

output of msbuild /version:


Details

This might be less of a bug and more of an issue with my setup. I was using the setup detailed here https://www.youtube.com/watch?v=z7na1MuMDRg and it was working up until about a week ago. I tried several different solutions I found for recent issues I found on the internet (reinstalling from scratch, doubling the time for connection timeout, updating Mono to latest, etc and it keeps failing). I was hoping my problem might just be something obvious I’m not seeing. Every time I launch ST I get the error:

“OmniSharp: Error talking to http://localhost:xxxxx/checkreadystatus”

Thanks in advance for your help! Hopefully it’s something simple.

How-To

How do I reproduce this issue?

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 3
  • Comments: 31 (9 by maintainers)

Most upvoted comments

Same Error! Same output as @kufii when execute omnisharp.cmd. Solution: I found msbuild /version output right not mean omnisharp server can run correctly. Just adding only the filepath of msbuild.exe to PATH can arrive this. With visual studio installed, it provides vcvars64.bat to set environment correctly, but temporary. So I add call vcvars64.bat to the head of omnisharp.cmd then it works. Remember to add the filepath of vcvars64.bat into the PATH! Good luck!

read the README, you need msbuild

Fascinatingly, I have been trying to make this work in Windows 10 for hours then gave up. In my Linux laptop, it just worked out of the box.

Well to be fair, I already access to Mono and MSBuild in my Linux, so that’s most likely the reason why.

Sublime Text and Omnisharp must have access to both Mono and MSBuild. I tried using mono --version and msbuild --version in Windows Terminal (using Powershell), yet none of them worked (even if I have BOTH of them installed, most likely they still aren’t in PATH, will test again if I regained my sanity). Bonus points if you use the Terminus package for Sublime Text.

I’m also getting the OmniSharp: Error talking to localhost/checkreadystatus error on version 2.0.0. My msbuild version:

$ msbuild /version
Microsoft (R) Build Engine version 16.5.0-ci for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

16.5.0.26101

I have installed the net core sdk, and tried manually starting the server