-
-
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
Option to auto-open location list if tests fail #814
Comments
Hi @lorin It opens automatically. Are you sure it doesn't ? |
I did some digging to track this down. The problem seems to only manifest on neovim (not officially supported, I know...), and only when syntastic is loaded. Here's a minimal .nvimrc file that reproduces the issue on my machine:
(I'm using vim-plug as my plugin manager). |
I'm also using |
Nope, the problem is that both
Which is great: you can blame everything on syntastic, and since I'm not using |
@lcd047 I'm not trying to blame or start a tension. Please talk for yourself. Here is a gif that shows how vim-go behaves: And here is the code: https://github.com/fatih/vim-go/blob/master/autoload/go/cmd.vim#L63-L69 I even have an explicit settings just for jumping to the first error, called As you see it jumps to the first error. So vim-go works out of the box. Also we have extensive detailed settings and you can change the type via How is that, vim-go is the one that is broken? Every time there is a problem with vim-go, it's always due syntastic. Heck I even have a dedicated section just for it: https://github.com/fatih/vim-go#using-with-syntastic The first problem syntastic causes is that it builds on save. Which is an overkill for almost all projects. Because of these bad defaults, people complaint that this is an issue of vim-go, which again is not. And over and over I'm trying to explain people that this is not due vim-go. So please don't try to make myself the bad guy here. I'm always trying to find the middle ground. Thanks |
Then please stop assigning blame without doing proper research, thank you.
Then perhaps the answer to the OP's question should have been to set
Neither
Really? 814 issues and counting, every single one related to
Could be. However, this has nothing to do with the issue reported by OP.
|
I'm not blaming. I'm saying it's due syntastic, which is true ;)
It's because it's the only and most used Go plugin. We have tons of features, with those we have issues, feedbacks and co. I think it shows the quality of the project, if you could interpret it that way you would understand it.
Well I've just noted my frustration with syntastic. Because you started saying that I'm blaming. I'm saying again, I'm not, I'm just explaining that syntastic causes these problems, and build on save is amongst one of them.
It's pity that you can't change something because it's that way from the beginning. Imho it might be a good choice for pre 1.4.x but the compile time got worser after that. The go team is now working on a fix, though for large projects, build on save is still overkill and should be IMHO not the default. I've added already something into readme. Seems like you also added a notice in your doc. The problem though is, people rarely read these. That's why, by default it should be sane out of the box. I suggest you to change that default. Thanks |
@lcd047 also I'm more than happy to solve problems. If there is anything we can do make the situation better let me know. We had a massive refactoring the last months to support custom list (quickfix vs location list), just so we can prevent issues like this. If you think there are still improvements to co exists together, happy to hear them. |
On second thought, there is something I can do to solve this for good: drop all support for |
@lcd047 that would sadden a lot of people. People still use it. I think we just need to be more aware of the certain cases, slow save, not jumping to first error and then warn people about it. |
Hi guys! First let you know that i love vim-go and syntastic! <3 I use syntastic with go because even it lags a bit on my company's projects (maybe in bigger projects is worse, i don't know) when saving i like to have direct feedback on what's the build error. In 1.7 it's gonna be at least twice as faster we know that already. Then i wanted to report a possible improvement for the build time, not sure about it bu here it goes: based on this https://peter.bourgon.org/go-best-practices-2016/#build-and-deploy, looks like Hope it helps and thanks again. |
I genuinely believe most people who use both |
The "go" checker is a continuing source of problems for "vim-go", which is better at this game than syntastic anyway. Reference: fatih/vim-go#814
I apologize for commenting on a closed issue, but as a casual user that is not using a canned environment but has used vim-go and syntastic together for their various strengths, what is the best way forward here for someone that really likes having errors displayed for me on save? |
@jefferai Adding this to your vimrc file will do the trick:
This is documented in the README. |
@lorin it didn't work for me. I didn't know if that's because it's old information or just...didn't work. |
I figured that it was just "old information" which is why I posted here. |
The "go" checker is a continuing source of problems for "vim-go", which is better at this game than syntastic anyway. Reference: fatih/vim-go#814
If I run
:GoTest
, and there are test failures, to see them I need to open the location list (:lopen
). I would love if the location list opened automatically if any tests failed. An option to enable this would be great.The text was updated successfully, but these errors were encountered: