OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.71k stars 169 forks source link

ALE wont recognize OmniSharp as an available linter #671

Closed horttanainen closed 3 years ago

horttanainen commented 3 years ago

OmniSharp works fine (c+xc+o works) but ALE won't recognize it as an available linter when using the stdio server. ALE recognizes http server but that on the other hand won't work due to python which is always fucked.

I have the latest (as of today 28.12.2020) ALE and Omnisharp-vim versions installed but sadly vim plug will not give that information.

I am on macOS Mojave Version 10.14.6.

ALEInfo output:

 Current Filetype: cs
Available Linters: ['csc', 'mcs', 'mcsc']
  Enabled Linters: []
  Ignored Linters: []
 Suggested Fixers:
  'remove_trailing_lines' - Remove all blank lines at the end of a file.
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
  'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.
 Linter Variables:
 Global Variables:
let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
let g:ale_command_wrapper = v:null
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 1
let g:ale_completion_max_suggestions = 50
let g:ale_disable_lsp = 0
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 0
let g:ale_fixers = {}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'normal'
let g:ale_linter_aliases = {}
let g:ale_linters = {'cs': ['omnisharp'], 'python': ['flake8', 'mypy', 'pylint', 'pyls']}
let g:ale_linters_explicit = 0
let g:ale_linters_ignore = {}
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
let g:ale_lsp_root = {}
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = 0
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_info = '--'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '>>'
let g:ale_sign_style_warning = '--'
let g:ale_sign_warning = '--'
let g:ale_sign_highlight_linenrs = 0
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 0
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
  Command History:

My .vimrc:

call plug#begin('~/.vim/plugs')

Plug 'sjl/gundo.vim'
Plug 'tpope/vim-fugitive'
Plug 'ervandew/supertab'
Plug 'leafgarland/typescript-vim'
Plug 'christoomey/vim-tmux-navigator'
Plug 'benmills/vimux'
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
Plug 'lifepillar/vim-solarized8'
Plug 'tpope/vim-fireplace'
Plug 'tpope/vim-commentary'
Plug 'AndrewRadev/linediff.vim'
Plug 'tpope/vim-unimpaired'
Plug 'OmniSharp/omnisharp-vim'
Plug 'dense-analysis/ale'
" Initialize plugin system
call plug#end()

execute pathogen#infect()

" Tabs and stuff

:set hidden

" Line related stuff =========================================================== 

" Highlight column
set colorcolumn=81

" How many lines vim remembers
set history=1000

set number
set rnu
set ruler

:set wrap
:set linebreak
:set nolist  " list disables linebreak
:set textwidth=0
:set wrapmargin=0

" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l

" Automatic stuff ==============================================================

" Show absolute line numbers when vim is not focused
" au FocusLost * :set nornu
" au FocusGained * :set rnu

" Show absolute line numbers when in insert mode
autocmd InsertEnter * :set nornu
autocmd InsertLeave * :set rnu

" Jump to the last position when reopening a file
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
      \| exe "normal! g'\"" | endif

" Code style ===================================================================
set autoindent
set smartindent
set smarttab

set expandtab
set shiftwidth=2
set tabstop=2

set shiftround

" Syntax, color and highligthing ===============================================

syntax on 

filetype plugin indent on

set encoding=utf8

" set Vim-specific sequences for RGB colors
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

set background=light
colorscheme solarized8

set incsearch
set ignorecase
set smartcase

autocmd BufNewFile,BufRead *.fs setfiletype gforth
autocmd BufNewFile,BufRead *.red setfiletype red

" Menus ========================================================================

set completeopt=menuone,menu,longest

set wildignore+=.git
set wildmode=longest,list,full
set wildmenu

set cmdheight=1

" Gui ==========================================================================

:set guioptions-=m  "remove menu bar
:set guioptions-=T  "remove toolbar
:set guioptions-=r  "remove right-hand scroll bar

if has('gui_running')
  set guifont=Source_Code_pro:h14
endif

" Backup and saving ============================================================

set nobackup
set nowb
set noswapfile

" Mappings =====================================================================

let mapleader = ","
let g:mapleader = ","

" Use jk as esc in insert mode
inoremap jk <esc>

" Open vimrc in a vertical split for quick edit
if has("win32")
  nnoremap <leader>ev :vsplit ~/vimfiles/vimrc<cr>
else
    if has("unix")
    nnoremap <leader>ev :vsplit ~/.vim/vimrc<cr>
  endif
endif

" Source vimrc file wihtout closing vim
nnoremap <leader>sv :source $MYVIMRC<cr>

" Fast saving
nnoremap <leader>w :w!<cr>

" Use hjkl to move between windows
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l

" Tabs
map <leader>tn :tabnew<cr>
map <leader>tc :tabclose<cr>

" Splits

" Generate new vertical split
nnoremap <silent> vv <C-w>v

" Real delete
nnoremap <leader>d "_d
xnoremap <leader>d "_d
xnoremap <leader>p "_dP

" Unlearning section ===========================================================

" Gundo ========================================================================

" toggle gundo
nnoremap <leader>u :GundoToggle<CR>

" Nerd Tree ====================================================================

let g:NERDTreeWinPos = "right"
let NERDTreeShowHidden=0
let g:NERDTreeWinSize=35
map <leader>nn :NERDTreeToggle<cr>
map <leader>nb :NERDTreeFromBookmark<Space>
map <leader>nf :NERDTreeFind<cr>

" latex ========================================================================

let g:vimtex_view_general_viewer = 'SumatraPDF'
let g:vimtex_view_general_options
  \ = '-reuse-instance -forward-search @tex @line @pdf'
let g:vimtex_view_general_options_latexmk = '-reuse-instance'

" ale ==========================================================================
"
" Enable completion where available.
" This setting must be set before ALE is loaded.
"
" You should not turn this setting on if you wish to use ALE as a completion
" source for other completion plugins, like Deoplete.
let g:ale_completion_enabled = 1
" let g:ale_completion_delay = 500
set completeopt=menu,menuone,preview,noselect,noinsert

" let g:ale_linter_aliases = {'typescriptreact': 'typescript'}
let g:ale_linters = { 'cs': ['omnisharp'], 'python': ['flake8', 'mypy', 'pylint', 'pyls'] }

set omnifunc=ale#completion#OmniFunc

map <Leader>cc :ALEGoToDefinition<CR>
map <Leader>cv :ALEGoToDefinition -vsplit<CR>
map <Leader>ch :ALEGoToDefinition -split<CR>

" vimux ========================================================================

" Prompt for a command to run
map <Leader>vp :VimuxPromptCommand<CR>

" Run last command executed by VimuxRunCommand
map <Leader>vl :VimuxRunLastCommand<CR>

" Inspect runner pane
map <Leader>vi :VimuxInspectRunner<CR>

" Zoom the tmux runner pane
map <Leader>vz :VimuxZoomRunner<CR>

let g:VimuxResetSequence = ""

" FZF ==========================================================================

let $FZF_DEFAULT_COMMAND = 'rg --files --hidden'

map <C-p> :FZF<CR>
map <Leader>a :Rg 
map <Leader>gc :Commits<CR>

" OmniSharp ==============================================
let g:OmniSharp_server_use_mono = 1
let g:OmniSharp_server_stdio = 1

let g:OmniSharp_loglevel = 'debug'

let g:OmniSharp_selector_ui = 'fzf'
let g:OmniSharp_selector_findusages = 'fzf'

Here is Omnisharp log output (I intentionally did not use the debug flag as the debug log was too long for this commit):

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 28 2020 12:35:30), macOS version - x86_64

OmniSharp server started.
    Path: /Users/horttanainen/.cache/omnisharp-vim/omnisharp-roslyn/OmniSharp.exe
    Target: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/unity-learn-rogue.sln
    PID: 90452

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on MacOS 10.14.6 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.6.0 - "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.8.0 - "/Users/horttanainen/.cache/omnisharp-vim/omnisharp-roslyn/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.6.0 - "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /Users/horttanainen/.cache/omnisharp-vim/omnisharp-roslyn/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/unity-learn-rogue.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.UI.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.TestRunner.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Triangle.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEngineBridge.001.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.TestRunner.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.CollabProxy.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Path.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Sprite.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.UI.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Rider.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Tilemap.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VisualStudio.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/PsdPlugin.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VSCode.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Psdimporter.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEditorBridge.001.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.UI.csproj
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue' on host -1.
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assets/Scripts/MovingObject.cs added to workspace
Replaying requests for buffer 1
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.UI.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.UI.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.TestRunner.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.TestRunner.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEngine.TestRunner.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Triangle.Runtime.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Triangle.Runtime.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Triangle.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Runtime.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Runtime.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Runtime.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Runtime.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEngineBridge.001.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEngineBridge.001.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEngineBridge.001.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Runtime.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Runtime.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.TestRunner.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.TestRunner.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.TestRunner.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.TextMeshPro.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Timeline.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.CollabProxy.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.CollabProxy.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.CollabProxy.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Animation.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Path.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Path.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Path.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Sprite.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Sprite.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Sprite.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.UI.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.UI.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/UnityEditor.UI.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Rider.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Rider.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Rider.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Tilemap.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Tilemap.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Tilemap.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VisualStudio.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VisualStudio.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VisualStudio.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.SpriteShape.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/PsdPlugin.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/PsdPlugin.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/PsdPlugin.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Common.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VSCode.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VSCode.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.VSCode.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Psdimporter.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Psdimporter.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.Psdimporter.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.2D.PixelPerfect.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp-Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp-Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Assembly-CSharp-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.Editor.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.Editor.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.Mathematics.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEditorBridge.001.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEditorBridge.001.csproj'.
All projects loaded
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/Users/horttanainen/projects/moleing-rouge/unity-learn-rogue/Unity.InternalAPIEditorBridge.001.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: UnityEngine.UI
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: UnityEngine.TestRunner
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Animation.Triangle.Runtime
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.TextMeshPro
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Animation.Runtime
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.Timeline
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Assembly-CSharp
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.Mathematics
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.SpriteShape.Runtime
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.PixelPerfect
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.InternalAPIEngineBridge.001
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Common.Runtime
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: UnityEditor.TestRunner
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.TextMeshPro.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.Timeline.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.CollabProxy.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Animation.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Path.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Sprite.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: UnityEditor.UI
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.Rider.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Tilemap.Editor
Replaying on-load requests
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.VisualStudio.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.SpriteShape.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: PsdPlugin
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Common.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.VSCode.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.Psdimporter.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.2D.PixelPerfect.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Assembly-CSharp-Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.Mathematics.Editor
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: Unity.InternalAPIEditorBridge.001
Workspace complete: 32 project(s)

Do you have any idea what could be causing this issue?

nickspoons commented 3 years ago

g:ale_linters might be case sensitive?

let g:ale_linters = {
\ 'cs': ['OmniSharp']
\}
nickspoons commented 3 years ago

Note that OmniSharp does not show up as an available linter in :ALEInfo (AFAIR) because it is not an external executable for ALE to run, but rather sends diagnostics to ALE directly on request.

horttanainen commented 3 years ago

g:ale_linters might be case sensitive?

let g:ale_linters = {
\ 'cs': ['OmniSharp']
\}

Thanks for the quick reply. I changed that from OmniSharp to omnisharp myself as i noticed OmniSharp to be an alias for omnisharp: https://github.com/OmniSharp/omnisharp-vim/blob/master/ale_linters/cs/omnisharp.vim#L41-L43

It might be that I have understood something wrong. Is omnisharp supposed to provide autocompletion infromation for ALE?

nickspoons commented 3 years ago

That particular file is only for the HTTP/python version, see the note at the top: https://github.com/OmniSharp/omnisharp-vim/blob/master/ale_linters/cs/omnisharp.vim#L3-L5

It might be that I have understood something wrong. Is omnisharp supposed to provide autocompletion infromation for ALE?

I'm not totally sure what you mean by this. ALE doesn't provide autocompletion, it provides linting support (shows signs next to errors/warnings), and it gets the error/warning info from OmniSharp-vim. If you want autocompletion (suggestions as you type) use an autocompletion plugin like asyncomplete or deoplete etc.

horttanainen commented 3 years ago

Alrigth, thanks for the info.

ALE does provide autocompletion when configured. From the README:

ALE also offers its own automatic completion support, which does not require any other plugins, and can be enabled by changing a setting before ALE is loaded.

This works for typescript and I was living under the assumption that this was the case for every language with a LSP. I will have to look deeper into this. Thank you.

nickspoons commented 3 years ago

Huh, that's news to me. But it looks like it only provides automatic completion for LSP executables it is running itself, which is not the case here.