{"action":"created","issue":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/222","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/222/comments","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/222/events","html_url":"https://github.com/OmniSharp/omnisharp-vim/issues/222","id":98865143,"number":222,"title":"Code completion not working","user":{"login":"JamesMcMahon","id":916676,"avatar_url":"https://avatars.githubusercontent.com/u/916676?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMcMahon","html_url":"https://github.com/JamesMcMahon","followers_url":"https://api.github.com/users/JamesMcMahon/followers","following_url":"https://api.github.com/users/JamesMcMahon/following{/other_user}","gists_url":"https://api.github.com/users/JamesMcMahon/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMcMahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMcMahon/subscriptions","organizations_url":"https://api.github.com/users/JamesMcMahon/orgs","repos_url":"https://api.github.com/users/JamesMcMahon/repos","events_url":"https://api.github.com/users/JamesMcMahon/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMcMahon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-04T00:48:03Z","updated_at":"2015-08-04T01:13:22Z","closed_at":null,"body":"It may be a local issue but I haven't been able to get code completion to work at all. I tried to trim my `vimrc` down to the bare minimum and include just the configuration from the README but I still have had no luck. I see the server itself boot and load the solution file with no errors. Other commands like `<leader>fs`, `<leader> cf` and `<leader>x` are working correctly.\r\n\r\nI am running Mac OSX Yosemite and MacVim 7.4 Snapshot 76 and installing the plugin through Vundle. Any suggestions about what may be going wrong or what I can do to debug further?\r\n\r\nHere is my vimrc, the majority of it is taken directly from the example file:\r\n\r\n```vim\r\n\" begin vundle configuration\r\n    set nocompatible\r\n    filetype off\r\n    set rtp+=~/.vim/bundle/vundle/\r\n    call vundle#rc()\r\n\r\n    \" begin vundle bundles\r\n        Plugin 'gmarik/vundle'\r\n\r\n        \" github bundles\r\n        Plugin 'ctrlpvim/ctrlp.vim'\r\n        Plugin 'scrooloose/syntastic'\r\n        Plugin 'ervandew/supertab'\r\n        \" C#\r\n            Plugin 'OmniSharp/omnisharp-vim'\r\n            Plugin 'tpope/vim-dispatch' \" for omnisharp async stuff\r\n    \" end vundle bundles\r\n    filetype plugin indent on\r\n\" end vundle configuration\r\n\r\n\"\"\" Example Omnisharp from README\r\n\" OmniSharp won't work without this setting\r\nfiletype plugin on\r\n\r\n\"This is the default value, setting it isn't actually necessary\r\nlet g:OmniSharp_host = \"http://localhost:2000\"\r\n\r\n\"Set the type lookup function to use the preview window instead of the status line\r\n\"let g:OmniSharp_typeLookupInPreview = 1\r\n\r\n\"Timeout in seconds to wait for a response from the server\r\nlet g:OmniSharp_timeout = 1\r\n\r\n\"Showmatch significantly slows down omnicomplete\r\n\"when the first match contains parentheses.\r\nset noshowmatch\r\n\r\n\"Super tab settings - uncomment the next 4 lines\r\n\"let g:SuperTabDefaultCompletionType = 'context'\r\n\"let g:SuperTabContextDefaultCompletionType = \"<c-x><c-o>\"\r\n\"let g:SuperTabDefaultCompletionTypeDiscovery = [\"&omnifunc:<c-x><c-o>\",\"&completefunc:<c-x><c-n>\"]\r\n\"let g:SuperTabClosePreviewOnPopupClose = 1\r\n\r\n\"don't autoselect first item in omnicomplete, show if only one item (for preview)\r\n\"remove preview if you don't want to see any documentation whatsoever.\r\nset completeopt=longest,menuone,preview\r\n\" Fetch full documentation during omnicomplete requests.\r\n\" There is a performance penalty with this (especially on Mono)\r\n\" By default, only Type/Method signatures are fetched. Full documentation can still be fetched when\r\n\" you need it with the :OmniSharpDocumentation command.\r\n\" let g:omnicomplete_fetch_documentation=1\r\n\r\n\"Move the preview window (code documentation) to the bottom of the screen, so it doesn't move the code!\r\n\"You might also want to look at the echodoc plugin\r\nset splitbelow\r\n\r\n\" Get Code Issues and syntax errors\r\nlet g:syntastic_cs_checkers = ['syntax', 'semantic', 'issues']\r\n\" If you are using the omnisharp-roslyn backend, use the following\r\n\" let g:syntastic_cs_checkers = ['code_checker']\r\naugroup omnisharp_commands\r\n    autocmd!\r\n\r\n    \"Set autocomplete function to OmniSharp (if not using YouCompleteMe completion plugin)\r\n    autocmd FileType cs setlocal omnifunc=OmniSharp#Complete\r\n\r\n    \" Synchronous build (blocks Vim)\r\n    \"autocmd FileType cs nnoremap <F5> :wa!<cr>:OmniSharpBuild<cr>\r\n    \" Builds can also run asynchronously with vim-dispatch installed\r\n    autocmd FileType cs nnoremap <leader>b :wa!<cr>:OmniSharpBuildAsync<cr>\r\n    \" automatic syntax check on events (TextChanged requires Vim 7.4)\r\n    autocmd BufEnter,TextChanged,InsertLeave *.cs SyntasticCheck\r\n\r\n    \" Automatically add new cs files to the nearest project on save\r\n    autocmd BufWritePost *.cs call OmniSharp#AddToProject()\r\n\r\n    \"show type information automatically when the cursor stops moving\r\n    autocmd CursorHold *.cs call OmniSharp#TypeLookupWithoutDocumentation()\r\n\r\n    \"The following commands are contextual, based on the current cursor position.\r\n\r\n    autocmd FileType cs nnoremap gd :OmniSharpGotoDefinition<cr>\r\n    autocmd FileType cs nnoremap <leader>fi :OmniSharpFindImplementations<cr>\r\n    autocmd FileType cs nnoremap <leader>ft :OmniSharpFindType<cr>\r\n    autocmd FileType cs nnoremap <leader>fs :OmniSharpFindSymbol<cr>\r\n    autocmd FileType cs nnoremap <leader>fu :OmniSharpFindUsages<cr>\r\n    \"finds members in the current buffer\r\n    autocmd FileType cs nnoremap <leader>fm :OmniSharpFindMembers<cr>\r\n    \" cursor can be anywhere on the line containing an issue\r\n    autocmd FileType cs nnoremap <leader>x  :OmniSharpFixIssue<cr>\r\n    autocmd FileType cs nnoremap <leader>fx :OmniSharpFixUsings<cr>\r\n    autocmd FileType cs nnoremap <leader>tt :OmniSharpTypeLookup<cr>\r\n    autocmd FileType cs nnoremap <leader>dc :OmniSharpDocumentation<cr>\r\n    \"navigate up by method/property/field\r\n    autocmd FileType cs nnoremap <C-K> :OmniSharpNavigateUp<cr>\r\n    \"navigate down by method/property/field\r\n    autocmd FileType cs nnoremap <C-J> :OmniSharpNavigateDown<cr>\r\n\r\naugroup END\r\n\r\n\r\n\" this setting controls how long to wait (in ms) before fetching type / symbol information.\r\nset updatetime=500\r\n\" Remove 'Press Enter to continue' message when type information is longer than one line.\r\nset cmdheight=2\r\n\r\n\" Contextual code actions (requires CtrlP or unite.vim)\r\nnnoremap <leader><space> :OmniSharpGetCodeActions<cr>\r\n\" Run code actions with text selected in visual mode to extract method\r\nvnoremap <leader><space> :call OmniSharp#GetCodeActions('visual')<cr>\r\n\r\n\" rename with dialog\r\nnnoremap <leader>nm :OmniSharpRename<cr>\r\nnnoremap <F2> :OmniSharpRename<cr>\r\n\" rename without dialog - with cursor on the symbol to rename... ':Rename newname'\r\ncommand! -nargs=1 Rename :call OmniSharp#RenameTo(\"<args>\")\r\n\r\n\" Force OmniSharp to reload the solution. Useful when switching branches etc.\r\nnnoremap <leader>rl :OmniSharpReloadSolution<cr>\r\nnnoremap <leader>cf :OmniSharpCodeFormat<cr>\r\n\" Load the current .cs file to the nearest project\r\nnnoremap <leader>tp :OmniSharpAddToProject<cr>\r\n\r\n\" (Experimental - uses vim-dispatch or vimproc plugin) - Start the omnisharp server for the current solution\r\nnnoremap <leader>ss :OmniSharpStartServer<cr>\r\nnnoremap <leader>sp :OmniSharpStopServer<cr>\r\n\r\n\" Add syntax highlighting for types and interfaces\r\nnnoremap <leader>th :OmniSharpHighlightTypes<cr>\r\n\"Don't ask to save when changing buffers (i.e. when jumping to a type definition)\r\nset hidden\r\n```"},"comment":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/comments/127445857","html_url":"https://github.com/OmniSharp/omnisharp-vim/issues/222#issuecomment-127445857","issue_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/222","id":127445857,"user":{"login":"JamesMcMahon","id":916676,"avatar_url":"https://avatars.githubusercontent.com/u/916676?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesMcMahon","html_url":"https://github.com/JamesMcMahon","followers_url":"https://api.github.com/users/JamesMcMahon/followers","following_url":"https://api.github.com/users/JamesMcMahon/following{/other_user}","gists_url":"https://api.github.com/users/JamesMcMahon/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMcMahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMcMahon/subscriptions","organizations_url":"https://api.github.com/users/JamesMcMahon/orgs","repos_url":"https://api.github.com/users/JamesMcMahon/repos","events_url":"https://api.github.com/users/JamesMcMahon/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMcMahon/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T01:13:22Z","updated_at":"2015-08-04T01:13:22Z","body":"`<C-x><C-o>` works for somethings but not everything. For instance, the example in the docs `Console.WL` doesn't complete.\r\n\r\nHere is  gif of it in action completing some keywords:\r\n![untitled2](https://cloud.githubusercontent.com/assets/916676/9051100/e6cd4ada-3a23-11e5-9439-337657f35822.gif)\r\n\r\nWatching the status bar it looks like Supertab is just doing keyword completion and not omni completion. Though in some case they seem to do the same thing.\r\n\r\nI'm using this through a Unity built solution file, so maybe the is why `Console.WriteLine` isn't completing?"}}