ElmCast / elm-vim

Elm plugin for Vim
BSD 3-Clause "New" or "Revised" License
572 stars 102 forks source link

Error preview not showing in vim file #90

Open Fedreg opened 7 years ago

Fedreg commented 7 years ago

First off, this plugin is great! Thanks for the work on this!

When I get a compiler error it does not show up in the error pane (see picture). At first I thought this was normal behavior for the plugin but I saw a screencast where a detailed error message showed up on the lower portion of the user's screen. Could one of my other plugins be interfering with this? I couldn't find the issue and thought I'd check to see if anyone else had experienced this before manually removing each plugin. Thanks!

img_0665

ajhager commented 7 years ago

It looks like you are using syntastic. If so, what do your settings for it look like? I need to put the following in my vim config to the syntastic to put the errorsin the location list and open it automatically.

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
Fedreg commented 7 years ago

Thanks! I do use syntactic and tried adding those settings but no luck. Also use the "elm syntactic show warnings" setting (deleting that didn't help). Here is my vimrc

set encoding=utf-8 set scrolloff=3 set autoindent set showmode set showcmd set hidden set wildmenu set wildmode=list:longest set visualbell set cursorline set ttyfast set ruler set backspace=indent,eol,start set laststatus=2 set relativenumber set undofile set t_Co=256 set background=dark colo slate filetype plugin indent on syntax on inoremap jk set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab let mapleader = "" set nocompatible

call plug#begin('~/.vim/plugged') Plug 'ajh17/vimcompletesme' Plug 'othree/yajs.vim', { 'for': 'javascript'} Plug 'othree/es.next.syntax.vim' Plug 'elzr/vim-json' Plug 'othree/jsdoc-syntax.vim' Plug 'heavenshell/vim-jsdoc' Plug 'marijnh/tern_for_vim', { 'do': 'npm install'} Plug 'othree/jspc.vim' Plug 'moll/vim-node' Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdcommenter' Plug 'scrooloose/syntastic' Plug 'posva/vim-vue'
Plug 'tpope/vim-sensible' Plug 'morhetz/gruvbox' Plug 'vim-airline/vim-airline' Plug 'elmcast/elm-vim'

let g:polyglot_disabled =['elm'] let g:elm_detailed_complete = 1 let g:elm_format_autosave = 1 let g:elm_syntastic_show_warnings = 1

Plug 'sheerun/vim-polyglot'

call plug#end()