-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
go_metalinter_deadline setting not respected #1142
Comments
Hi @horgh As you said it's a very small change indeed. The reason it's just for I'm ok if you open a PR. But please make it so the following logic applies
For For Also you have to remove these lines from the file:
because otherwise the |
Thanks very much for the background and for the pointers about how to do this! I will submit a PR shortly. |
#1142: go_metalinter_deadline applies in async mode now
This was merged. Thank you! |
Behavior
I have changed my
go_metalinter_deadline
to 15s. However, I found that metalinter still times out after 5 seconds.I believe this is because gometalinter defaults to a timeout of 5s, and in lint.vim there is a comment that says "we add deadline only for sync mode". I wonder if in the past gometalinter had no default deadline? It seems like we need it regardless.
I verified that if I move the line that adds
--deadline
to the command aboveif go#util#has_job() && has('lambda')
, that gometalinter uses my 15s deadline and gometalinter can complete.It seems like quite a small change to adjust this, but I thought I should make an issue rather than a PR in case there is a reason I do not understand that it is this way. If you like, I can make a PR.
Thank you for your time. This project is hugely useful!
Steps to reproduce:
g:go_metalinter_deadline = "15s"
in vimrcI normally develop on a faster machine, but I've been doing a little on an older server as I am not currently at home.
Configuration
Add here your current configuration and additional information that might be
useful, such as:
vimrc
you used to reproduce:The text was updated successfully, but these errors were encountered: