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

Error talking to http://localhost:38771/checkreadystatus #249

Closed Userwithaname closed 5 years ago

Userwithaname commented 5 years ago

Platform

Type

Checklist

Details

OmniSharp no longer works. This is the full console output when opening a C# file in a fresh Sublime Text install with no other extensions:

DPI scale (detected): 1
startup, version: 3176 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/me/.config/sublime-text-3/Packages
state path: /home/me/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/me/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.0883427
startup time: 0.151957
first paint time: 0.153319
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin OmniSharp.OmniSharpSublime
plugins loaded
omnisharp plugin_loaded
reloading settings Packages/User/Package Control.sublime-settings
Package Control: No updated packages
solution_path:/home/me/Test
omni_port:38771
"/home/me/.config/sublime-text-3/Packages/OmniSharp/prebuilt-omnisharp-roslyn/omnisharp" -s "/home/me/Test" -p 38771 --hostPID 15529
solution path: /home/me/Test
======== request ======== 
 Url: http://localhost:38771/checkreadystatus 
 Data: {"column": "1", "filename": "/home/me/Test/Test.cs", "line": "16", "buffer": "using System;\nnamespace HelloWorld\n{\n    class Hello \n    {\n        static void Main() \n        {\n            Console.WriteLine(\"Hello World!\");\n\n            // Keep the console window open in debug mode.\n            Console.WriteLine(\"Press any key to exit.\");\n            Console.ReadKey();\n        }\n    }\n}\n"}
HTTPConnectionPool(host='localhost', port=38771): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))
solution path: /home/me/Test
======== request ======== 
 Url: http://localhost:38771/checkreadystatus 
 Data: {"column": "1", "filename": "/home/me/Test/Test.cs", "line": "16", "buffer": "using System;\nnamespace HelloWorld\n{\n    class Hello \n    {\n        static void Main() \n        {\n            Console.WriteLine(\"Hello World!\");\n\n            // Keep the console window open in debug mode.\n            Console.WriteLine(\"Press any key to exit.\");\n            Console.ReadKey();\n        }\n    }\n}\n"}
HTTPConnectionPool(host='localhost', port=38771): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))
solution path: /home/me/Test
======== request ======== 
 Url: http://localhost:38771/checkreadystatus 
 Data: {"column": "1", "filename": "/home/me/Test/Test.cs", "line": "16", "buffer": "using System;\nnamespace HelloWorld\n{\n    class Hello \n    {\n        static void Main() \n        {\n            Console.WriteLine(\"Hello World!\");\n\n            // Keep the console window open in debug mode.\n            Console.WriteLine(\"Press any key to exit.\");\n            Console.ReadKey();\n        }\n    }\n}\n"}
HTTPConnectionPool(host='localhost', port=38771): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))
solution path: /home/me/Test
======== request ======== 
 Url: http://localhost:38771/checkreadystatus 
 Data: {"column": "1", "filename": "/home/me/Test/Test.cs", "line": "16", "buffer": "using System;\nnamespace HelloWorld\n{\n    class Hello \n    {\n        static void Main() \n        {\n            Console.WriteLine(\"Hello World!\");\n\n            // Keep the console window open in debug mode.\n            Console.WriteLine(\"Press any key to exit.\");\n            Console.ReadKey();\n        }\n    }\n}\n"}
HTTPConnectionPool(host='localhost', port=38771): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))
solution path: /home/me/Test
======== request ======== 
 Url: http://localhost:38771/checkreadystatus 
 Data: {"column": "1", "filename": "/home/me/Test/Test.cs", "line": "16", "buffer": "using System;\nnamespace HelloWorld\n{\n    class Hello \n    {\n        static void Main() \n        {\n            Console.WriteLine(\"Hello World!\");\n\n            // Keep the console window open in debug mode.\n            Console.WriteLine(\"Press any key to exit.\");\n            Console.ReadKey();\n        }\n    }\n}\n"}
HTTPConnectionPool(host='localhost', port=38771): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))

How-To

Rosalie241 commented 5 years ago

give me the output of these commands:

mono --version
msbuild /version
Userwithaname commented 5 years ago

This is the output of mono --version:

Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

I do not have msbuild installed, nor do I know how to install it. Is that a new dependency? (It used to work fine without it until recently.) I will go look for the msbuild package and report back if installing it fixes the problem.

Rosalie241 commented 5 years ago

Yes, it's a new dependency, read the README

Userwithaname commented 5 years ago

Where can I find msbuild? It's not in the default Ubuntu repositories, and I couldn't find anything useful about it online. Even after building it from source (github.com/Microsoft/msbuild), the command is still not available.

Rosalie241 commented 5 years ago

https://www.mono-project.com/download/stable/ add the mono repo to your ubuntu system, then install msbuild @Userwithaname

Userwithaname commented 5 years ago

Thank you for the link, installing msbuild fixed the problem.