-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add syntastic_rustc_config_file handling #1112
Conversation
Oh please, you can do much better than that. Like, add an option to Still, can you pleaes give an example why is all this needed in the first place? |
I'm using this to add an external library to the checker. It doesn't make sense to do this globally so I thought a project-local config file would be the way to do this: This is how I set up C++ projects. Is there a better way to provide library paths on a project local basis? It was my intention to reuse the ReadConfig function but I didn't want to start changing it without some comments on what would be best to do. I don't know if any other checkers would use library paths like this, I guess it's just a rust quirk that libraries are linked with |
This is better, but it still seems to be way overkill. Config files are useful for long, complicated lists of options. As far as I can tell, in your case a simple autocmd /some/path/*.rs let g:syntastic_rust_rustc_args='-L /some/other/path' |
Hmm, to me it just seems more intuitive to put these options in a file with the projects they relate to. Having a stack of Unless you mean in a local vimrc but I thought they were frowned upon. Would it not make sense for rustc to read config files, given many other checkers do? |
Using |
Add args from g:syntastic_rustc_config_file to rustc command.
OK, what if I don't touch the ReadConfig and just use args as:
or
Then there's no extra option. (I re-read the wiki entry on config files) |
Like I said, for better or worse, using |
Between #947, #1114, and #1112, this checker is too controversial to maintain in syntastic. Please consider using it as an external checker if you need it: https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide#external
Between vim-syntastic#947, vim-syntastic#1114, and vim-syntastic#1112, this checker is too controversial to maintain in syntastic. Please consider using it as an external checker if you need it: https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide#external
Add args from g:syntastic_rustc_config_file to rustc command.
Had to borrow syntastic#c#ReadConfig code to parse the -L flag.
Could this function be made more general to allow reuse?