OmniSharp / omnisharp-sublime

C# IDE Plugin for Sublime Text 3
http://omnisharp-sublime.readthedocs.org/en/latest/
MIT License
551 stars 64 forks source link

Package Control has wrong Omnisharp release #266

Open kimbo12 opened 3 years ago

kimbo12 commented 3 years ago

Platform

Type

Checklist

Versions

output of mono --version:

N/A

output of msbuild /version:

N/A

Details

What's the bug? Omnisharp for sublime is using the wrong the release. When a project is setup you get the below error. Current Omnisharp release is using stdio not HTTP requests.

HTTPConnectionPool(host='localhost', port=63919): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(10061, 'No connection could be made because the target machine actively refused it', None, 10061)))

How-To

How do I reproduce this issue? 1)Install Omnisharp through Package Control. - https://packagecontrol.io/packages/OmniSharp 2)Setup project. 3)Get Connection error. 4)Close Sublime. 5)Download http release from https://github.com/OmniSharp/omnisharp-roslyn/releases - I downloaded "omnisharp.http-win-x86.zip". Release will vary depending on system. 6)Rename ~\Packages\OmniSharp\prebuilt-omnisharp-roslyn\prebuilt to prebuiltOLD 7)Extract zip. Create new folder named prebuilt and place extracted files there. 8)Open Sublime project again. No error and working.

supercomputer1 commented 3 years ago

Thank you, this fixed the localhost connection problems for me. I've tried different omnisharp releases previously.. but the http version worked perfectly.

beautifulcoder commented 1 year ago

I tried the latest release and it broke. This specific version seems to do the trick:

https://github.com/OmniSharp/omnisharp-roslyn/releases/tag/v1.37.8