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

Errors on formatting buffer via vfmt disappears after some time #23

Open
ep4sh opened this issue Aug 17, 2021 · 0 comments · May be fixed by #28
Open

Errors on formatting buffer via vfmt disappears after some time #23

ep4sh opened this issue Aug 17, 2021 · 0 comments · May be fixed by #28

Comments

@ep4sh
Copy link

ep4sh commented Aug 17, 2021

Summary

Errors on formatting buffer via vfmt disappears after some time

Steps to reproduce

  • Vim version : version 8.2.2891

plugins:

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'fatih/vim-go'
Plug 'AndrewRadev/splitjoin.vim'
Plug 'tweekmonster/gofmt.vim'
Plug 'mbbill/undotree'
Plug 'hashivim/vim-terraform'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'vim-airline/vim-airline'
Plug 'flazz/vim-colorschemes'
Plug 'preservim/nerdtree'
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
Plug 'editorconfig/editorconfig-vim'
Plug 'vim-scripts/groovy.vim'
Plug 'NLKNguyen/papercolor-theme'
Plug 'ollykel/v-vim'

vimrc:

" v settings
"
" Disable highlight white space after "[]".
let g:v_highlight_array_whitespace_error = 0

" Disable highlight white space around the communications operator that don't follow the standard style.
let g:v_highlight_chan_whitespace_error = 1

" Disable highlight instances of tabs following spaces.
let g:v_highlight_space_tab_error = 1

" Disable highlight trailing white space.
let g:v_highlight_trailing_whitespace_error = 1

" Disable highlight function calls.
let g:v_highlight_function_calls = 1

let g:v_highlight_fields = 1

" Enable automatically formatting file via "v fmt -" before writing buffer.
let g:v_autofmt_bufwritepre = 1

Expected Behavior

2021-08-18_01-10

Observed Behavior

Error detected while processing BufWrite Autocommands for "*.v"..function _VFormatFile:
line    4:
While formatting the buffer via vfmt, the following error occurred:
line    5:
"bla.v" 4L, 33B written
Press ENTER or type command to continue

2021-08-18_01-111

Explanation

Errors on formatting buffer via vfmt disappears after some time. I am not sure whether it bug or not...

Implementation

Unfortunately, I have not ideas how to fix it :( I would really be interested in helping but even can't recognize this is an error of my setup or v-vim plugin. It might be reasonable to open a new buffer (I guess vim-go acts like this) for errors:
image

Appreciate your time and suggestions. Thanks!

premek added a commit to premek/v-vim that referenced this issue Apr 6, 2022
@premek premek linked a pull request Apr 6, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant