{"action":"opened","issue":{"url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/224","labels_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/224/comments","events_url":"https://api.github.com/repos/OmniSharp/omnisharp-vim/issues/224/events","html_url":"https://github.com/OmniSharp/omnisharp-vim/issues/224","id":99569644,"number":224,"title":"ASP.NET 5 MVC 6 Errors","user":{"login":"jrock2004","id":655716,"avatar_url":"https://avatars.githubusercontent.com/u/655716?v=3","gravatar_id":"","url":"https://api.github.com/users/jrock2004","html_url":"https://github.com/jrock2004","followers_url":"https://api.github.com/users/jrock2004/followers","following_url":"https://api.github.com/users/jrock2004/following{/other_user}","gists_url":"https://api.github.com/users/jrock2004/gists{/gist_id}","starred_url":"https://api.github.com/users/jrock2004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrock2004/subscriptions","organizations_url":"https://api.github.com/users/jrock2004/orgs","repos_url":"https://api.github.com/users/jrock2004/repos","events_url":"https://api.github.com/users/jrock2004/events{/privacy}","received_events_url":"https://api.github.com/users/jrock2004/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T03:21:08Z","updated_at":"2015-08-07T03:21:08Z","closed_at":null,"body":"So I am using the omnisharp-vim plugin along with syntastic to show my errors in my web project. When I load a cs file up it is reporting all these errors. When I open the same project up in VS 2015 I do not see the same errors\r\n\r\n```\r\nMyProject.Web\\Controllers\\DashboardController.cs|11 col 52 error| 'MyProjectAuthorizeAttribute' is not a known identifier\r\nMyProject.Web\\Controllers\\DashboardController.cs|11 col 54 error| Error: ?\r\nMyProject.Web\\Controllers\\DashboardController.cs|12 col 51 error| 'BaseController' is not a known identifier\r\nMyProject.Web\\Controllers\\DashboardController.cs|14 col 27 error| 'ILogger' is not a known identifier\r\nMyProject.Web\\Controllers\\DashboardController.cs|15 col 44 error| 'ILoggerFactory' is not a known identifier\r\n```\r\n\r\nMaybe I am missing some configuration in my .vimrc file? \r\n\r\n```\r\n\" General -----------------------\r\nset nocompatible             \" Makes vim better\r\n\r\nscriptencoding utf-8         \" Setting everything to UTF-8\r\nset encoding=utf-8\r\nset history=256\r\nset timeoutlen=250\r\nset clipboard+=unnamed\r\nlet g:autotagTagsFile = \".git/tags\"\r\nset tags=./.git/tags,tags,./.git/coffeetags,coffeetags;$HOME\r\n\r\nset nobackup\r\nset nowritebackup\r\nset noswapfile\r\n\r\nset hlsearch\r\nset ignorecase\r\nset smartcase\r\nset incsearch\r\n\r\n\" turn off search highlight\r\nnnoremap <leader><space> :nohlsearch<CR>\r\n\r\nlet mapleader = ','\r\nlet maplocalleader = '\t'\r\nlet g:netrw_banner = 0\r\n\r\n\r\n\" Formatting --------------------\r\nset nowrap\r\n\r\nset tabstop=4\r\nset softtabstop=4\r\nset shiftwidth=4\r\n\r\nset backspace=indent\r\nset backspace+=eol\r\nset backspace+=start\r\n\r\nset autoindent\r\nset cindent\r\nset indentkeys-=0#\r\nset cinkeys-=0#\r\nset cinoptions=:s,ps,ts,cs\r\nset cinwords=if,else,while,do\r\nset cinwords+=for,switch,case\r\n\r\nset linespace=4\r\nset listchars=tab:>.,trail:.,extends:\\#,nbsp:.\r\nset list\r\n\r\n\" Plugins ------------------------\r\nfiletype off \r\n\r\nset rtp+=~/.vim/bundle/Vundle.vim\r\ncall vundle#begin()\r\n\r\nPlugin 'gmarik/Vundle.vim'\r\nPlugin 'OmniSharp/omnisharp-vim'\r\nPlugin 'tpope/vim-dispatch'\r\nPlugin 'scrooloose/syntastic'\r\nPlugin 'Shougo/unite.vim'\r\nPlugin 'xero/sourcerer.vim'\r\nPlugin 'bling/vim-airline'\r\nPlugin 'airblade/vim-gitgutter'\r\nPlugin 'ap/vim-css-color'\r\nPlugin 'groenewege/vim-less'\r\nPlugin 'hail2u/vim-css3-syntax'\r\nPlugin 'kien/ctrlp.vim'\r\nPlugin 'jasoncodes/ctrlp-modified.vim'\r\nPlugin 'kaneshin/ctrlp-git-log'\r\nPlugin 'jiangmiao/auto-pairs'\r\nPlugin 'lokaltog/vim-easymotion'\r\nPlugin 'majutsushi/tagbar'\r\nPlugin 'mattn/ctrlp-git'\r\nPlugin 'tacahiroy/ctrlp-funky'\r\nPlugin 'mattn/emmet-vim'\r\nPlugin 'mtscout6/rainbow_parentheses.vim'\r\nPlugin 'mtscout6/vim-ctags-autotag'\r\nPlugin 'mtscout6/vim-tagbar-css'\r\nPlugin 'scrooloose/nerdtree'\r\nPlugin 'terryma/vim-multiple-cursors'\r\nPlugin 'tpope/vim-fugitive'\r\nPlugin 'tpope/vim-git'\r\nPlugin 'tpope/vim-markdown'\r\nPlugin 'tpope/vim-surround'\r\n\r\n\r\ncall vundle#end() \r\nfiletype plugin indent on\r\n\r\n\" Rainbow\r\nmap <leader>rt :RainbowParenthesesToggle<CR>\r\nmap <leader>r( :RainbowParenthesesLoadRound<CR>\r\nmap <leader>r[ :RainbowParenthesesLoadSquare<CR>\r\nmap <leader>r{ :RainbowParenthesesLoadBraces<CR>\r\nmap <leader>r< :RainbowParenthesesLoadChevrons<CR>\r\n\r\n\" File Type Settings --------------------\r\n\r\n\" Markdown editing\r\nautocmd Filetype markdown setlocal wrap\r\nautocmd Filetype markdown setlocal linebreak\r\nautocmd Filetype markdown setlocal nolist\r\nautocmd Filetype markdown setlocal columns=80\r\nautocmd Filetype markdown setlocal tw=80\r\nautocmd Filetype markdown setlocal wm=4\r\n\r\n\" GVIM Options -----------------------\r\nset guioptions-=m\r\nset guioptions-=T\r\nset guioptions-=r\r\nset guioptions-=L\r\n\r\n\" Visual ------------------------\r\nsyntax on\r\n\r\nset showmatch\r\n\r\nif has('gui_running')\r\n\tset guifont=InputMono:h14\r\n\r\n\tcolorscheme sourcerer\r\n\r\n\tif has('mac')\r\n\tset noantialias\r\n\tendif\r\nendif\r\n\r\nset novisualbell\r\nset noerrorbells\r\nset vb t_vb=\r\nset laststatus=2\r\n\r\n\" Airline Settings\r\nlet g:airline_powerline_fonts = 1\r\nlet g:airline#extensions#tabline#enabled = 1\r\n\" Default\r\nlet g:airline#extensions#tmuxline#enabled = 0\r\n\" Presentation\r\n\"let g:airline#extensions#tmuxline#enabled = 1\r\n\r\n\" Ctrl-P settings\r\nlet g:ctrlp_working_path_mode = 'r'\r\nlet g:ctrlp_extensions = ['tag', 'buffertag', 'line', 'funky']\r\n\", 'git-log', 'git_branch', 'git_files', 'modified']\r\nlet g:ctrlp_custom_ignore = 'node_modules\\|DS_Store\\|git|bower_components'\r\nmap <leader>t :CtrlP<CR>\r\nmap <leader>gs :CtrlPGitFiles<CR>\r\nmap <leader>gb :CtrlPGitBranch<CR>\r\nmap <leader>gl :CtrlPGitLog<CR>\r\nmap <leader>gm :CtrlPModified<CR>\r\n\r\n\r\n\" ctrlp-modified\r\nmap <Leader>m :CtrlPModified<CR>\r\nmap <Leader>M :CtrlPBranch<CR>\r\n\r\n\" Tagbar settings\r\nmap <F8> :TagbarToggle<CR>\r\n\r\n\" Emmet settings\r\nimap <C-e> <C-y>,\r\n\r\n\" Multiple Cursor Settings\r\nlet g:multi_cursor_use_default_mapping=0\r\nlet g:multi_cursor_start_key='<leader>m'\r\nlet g:multi_cursor_next_key='<C-n>'\r\nlet g:multi_cursor_prev_key='<C-p>'\r\nlet g:multi_cursor_skip_key='<C-x>'\r\nlet g:multi_cursor_quit_key='<Esc>'\r\n\r\n\" Git Gutter Settings\r\nhighlight clear SignColumn\r\nmap ]h <Plug>GitGutterNextHunk\r\nmap [h <Plug>GitGutterPrevHunk\r\nmap <leader>hv <Plug>GitGutterPreviewHunk\r\nmap <Leader>hs <Plug>GitGutterStageHunk\r\nmap <Leader>hr <Plug>GitGutterRevertHunk\r\n\r\n\" NERD Tree Settings\r\nmap <TAB> :NERDTreeToggle<CR>\r\nmap <leader>ff :NERDTreeFind<CR>\r\nlet NERDTreeShowHidden=1\r\nlet NERDTreeIgnore=[]\r\n\r\n\" Syntastic Settings\r\nlet g:syntastic_always_populate_loc_list = 1\r\nlet g:syntastic_auto_loc_list = 1\r\nlet g:syntastic_check_on_open = 1\r\nlet g:syntastic_check_on_wq = 0\r\n\"let g:syntastic_<filetype>_checkers = ['omnisharp']\r\nlet g:syntastic_cs_checkers = ['syntax', 'semantic', 'issues']\r\n\r\n\" Omnisharp settings\r\nlet g:OmniSharp_server_type = 'roslyn'\r\nlet g:OmniSharp_selector_ui = 'unite'\r\nlet g:OmniSharp_selector_ui = 'ctrlp'\r\nlet g:OmniSharp_timeout = 1\r\nset noshowmatch\r\nset completeopt=longest,menuone,preview\r\nset splitbelow\r\n\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\nnnoremap <leader><space> :OmniSharpGetCodeActions<cr>\r\n\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```\r\n\r\nThanks"}}