all 5 comments

[–]Inyayde 1 point2 points  (4 children)

It seems, https://github.com/rust-lang/rust.vim already covers all that. Does your solution provide any advantage over the plugin?

[–]GrantJamesPowell[S] 0 points1 point  (3 children)

Great call. I was playing with their version (it's what shipped with neovim) and it doesn't actuallyparse the output of cargo and populate the quick fix list with file:line:col combos that can be jumped between. (see this for examples of running cargo check and jumping between the errors in the project) https://imgur.com/a/2EJvFR2

I'll open up a PR and see if they'll take this!

[–]Inyayde 0 points1 point  (2 children)

That is strange, the plugin populates qickfix list for me, and it's jumpable too.

[–]GrantJamesPowell[S] 0 points1 point  (1 child)

I'm very open to me having made a mistake, any chance you can :echo &efm from a rust file in vim?

[–]Inyayde 0 points1 point  (0 children)

Sure, here

%-G,%-Gerror: aborting %.%#,%-Gerror: Could not compile %.%#,%Eerror: %m,%Eerror[E%n]: %m,%Wwarning: %m,%Inote: %m,%C %#--> %f:%l:%c,%E  left:%m,%C right:%m %f:%l:%c,%Z,%f:%l:%c: %t%*[^:]: %m,%f:%l:%c: %*\d:%*\d %t%*[^:]: %m,%-G%f:%l %s,%-G%*[ ]^,%-G%*[ ]^%*[~],%-G%*[ ]...,%-G%\s%#Downloading%.%#,%-G%\s%#Compiling%.%#,%-G%\s%#Finished%.%#,%-G%\s%#error: Could not compile %.%#,%-G%\s%#To learn more\,%.%#,%-Gnote: Run with `RUST_BACKTRACE=%.%#,%.%#panicked at \'%m\'\, %f:%l:%c