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

Autocompletion for Unity doesn't work #259

Open
TriggerEdge opened this issue Jul 31, 2019 · 7 comments
Open

Autocompletion for Unity doesn't work #259

TriggerEdge opened this issue Jul 31, 2019 · 7 comments

Comments

@TriggerEdge
Copy link

For some reason autocomplete has stopped working for unity classes. I started having this issue after some unity version 2018.3.6 onwards.

Here is a similar issue but for omnisharp-vim OmniSharp/omnisharp-vim#449

Any solution for this?

@Userwithaname
Copy link

Userwithaname commented Aug 25, 2019

I'm having the same issue (on Fedora). This is the output I get when opening an empty C# file (for clarity) in a fresh install with no other plugins (and pressing "Open C# Project" in Unity to generate the solution):

executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/luka/.config/sublime-text-3/Packages
state path: /home/luka/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/luka/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.110065
startup time: 0.2078
first paint time: 0.226942
git: tracking working dir /home/luka/Documents/Test Unity Project
git: tracking working dir /home/luka/Documents/Test Unity Project/Assets/PostProcessing
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.detect_indentation
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.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
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
solution_path:/home/luka/Documents/Test Unity Project
omni_port:51431
"/home/luka/.config/sublime-text-3/Packages/OmniSharp/prebuilt-omnisharp-roslyn/omnisharp" -s "/home/luka/Documents/Test Unity Project" -p 51431 --hostPID 8028
number of files to index (0) exceeds index_files_sanity_limit (524288), bailing out
Package Control: Skipping automatic upgrade, last run at 2019-08-25 15:50:57, next run at 2019-08-25 16:50:57 or after
solution path: /home/luka/Documents/Test Unity Project
======== request ======== 
 Url: http://localhost:51431/checkreadystatus 
 Data: {"column": "1", "filename": "/home/luka/test.cs", "line": "1", "buffer": ""}
HTTPConnectionPool(host='localhost', port=51431): Max retries exceeded with url: /checkreadystatus (Caused by ProtocolError('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')))
solution path: /home/luka/Documents/Test Unity Project
======== request ======== 
 Url: http://localhost:51431/checkreadystatus 
 Data: {"column": "1", "filename": "/home/luka/test.cs", "line": "1", "buffer": ""}
======== response ======== 
 true
======== end ========

@JCN9192
Copy link

JCN9192 commented Sep 27, 2019

I'm experiencing the same issue on Windows 10, newly installed sublime text and Omnisharp. Does anyone have a fix?

@0xafbf
Copy link

0xafbf commented Nov 19, 2019

I had a similar issue, just set up a new environment with ST3 + omnisharp + unity, and logs show like working, but it doesn't find usages, or definitions... It is working in my other environment, the difference is just a minor unity bump (2018.4.6 vs 2018.4.12)

@ColonelThirtyTwo
Copy link

Having the same issue on Arch Linux sublime text.

@gustavolsson-ikea
Copy link

Same here on OSX 10.15.2 and Unity 2019.3.5

@PilArSeKra
Copy link

I have a similar issue. My omnisharp server starts fine and autocompletion works for the base C# functions, but not for the unity-specific ones. It should be noted that it works in VSCode, but i really want to use ST3.

@meshonline
Copy link

meshonline commented Mar 14, 2021

Having the same issue on macOS 11.2.3, Sublime Text 3.22, mono 6.12.0.122, Unity 2019.4.19f1c1, I installed Omnisharp from within Sublime Text's package manager.

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

8 participants