-
Notifications
You must be signed in to change notification settings - Fork 298
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
Syntastic compatibility nonfunctional when using nightly #97
Comments
Notice: It also works fine for beta. Only nightly is affected. |
After further testing I believe the cause is due to the new error format. This is because, when using
while no issue occurs when Edit: Related to #88 |
A hint for people, looking for syntax-checking their work on nightly:While it's not possible to use syntastic with nightly atm., you can check your whole crate / project with snippets like these: Just parsing: ❯ find ./ | egrep "\.rs$" | xargs -L1 rustc -Z parse-only
#or with silversearcher
❯ ag -g \.rs\$ | xargs -L1 rustc -Z parse-only Run all passes without translation: ❯ find ./ | egrep "\.rs$" | xargs -L1 rustc -Z no-trans
#or with silversearcher
❯ ag -g \.rs\$ | xargs -L1 rustc -Z no-trans |
For those wanting to solve this problem with Neomake, the following Maker will solve this issue. A bit verbose, i'm including my docstrings on it.
This won't help you if you're looking for Syntastic support, but i quite like Neomake's take on this. Also useful, Even if you prefer Syntastic, this may be a nice temporary measure for some of you :) |
Thank you for this solution, but when I'm using this code and an error using Thanks! |
Hm, looks like I never made a link between this issue and PR #99. (now I have!) I have been using that branch for a while now and believe it solves the brunt of the issue, so I plan to close this once it goes through. (for any remaining problems I imagine it might be better to raise new issues) |
There are several factors possibly at play here (rustc, rustup, rust.vim, syntastic); I chose to report on
rust.vim
as it is the middleman.Steps to reproduce
Install both rust.vim and syntastic. For full disclosure: from a clean vim, I installed pathogen, cloned the plugin repos into
.vim/patho
, and used this.vimrc
Make two new crates, one on nightly
3. For each one, do the following:
Verify that all lights are green:
Insert a deliberate error (unpared parenthesis) and write the file.
What occurs
In
test-stable
: After the file is written, syntastic will flag errors in the gutter and statusline.In
test-nightly
: After the file is written, nothing happens.Versions installed
uname -a:
Linux lampam-ThinkPad-T430 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
rustup: rustup 0.5.0 (4be1012 2016-07-30)
rust.vim: (git hash) 7304385
syntastic: (git hash) aa2a09110956e46652a9cb247ec24a57797066fd
vim: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 16 2016 10:50:38)
Versions of
rustc
tested: (OK means syntastic highlights the error)OK: rustc 1.10.0 (cfcb716cf 2016-07-03)
OK: rustc 1.11.0-beta.3 (052e32bd9 2016-08-08)
FAIL: rustc 1.12.0-nightly (0ef24eed2 2016-08-10)
FAIL: rustc 1.12.0-nightly (8787a1233 2016-08-11)
The text was updated successfully, but these errors were encountered: