These are chat archives for rust-lang/rust

1st
Jun 2017
Christian Howe
@cjhowe7
Jun 01 2017 03:01
emacs rust is amazing
especially if you use gdb
Zizheng Tai
@ZizhengTai
Jun 01 2017 07:54
seems like people are using all sorts of things
Zizheng Tai
@ZizhengTai
Jun 01 2017 08:04
is anyone using intellij?
Anton Ugryumov
@dvec
Jun 01 2017 08:05
I am using
Ilya Bogdanov
@vitvakatu
Jun 01 2017 08:05
I know about guys who use it, yes
Zizheng Tai
@ZizhengTai
Jun 01 2017 08:06
Do we have any autocomplete functionality for macros?
(not just in intellij)
I've been using vim and intellij, both of which can't seem to autocomplete macros
Anton Ugryumov
@dvec
Jun 01 2017 08:11
What are we talking about? Intellij has autocomplete when creating macros, but doesn't have autocompletion for them usage
Zizheng Tai
@ZizhengTai
Jun 01 2017 08:11
Usage
Can any of the IDEs/editors do it?
Anton Ugryumov
@dvec
Jun 01 2017 08:14
I don't know about this. I only used Intellij and Atom. Also I saw development in Sublime Text, but didn't see autocompletion there
Alex Kavanagh
@ajkavanagh
Jun 01 2017 08:27
+1 neovim + vim.rust + YouCompleteMe
Zizheng Tai
@ZizhengTai
Jun 01 2017 09:03
@AUgryumov Do you know if intellij-rust can rustfmt-on-save?
@ajkavanagh +1 except I'm using vim instead of neovim. But I'm having trouble to get syntastic to work with them. I can have autocomplete with YCM but can't get syntax analysis.
Anton Ugryumov
@dvec
Jun 01 2017 09:08
rustfmt-on-save? Is it formatting code on save? But what for is it? Isn't simpler to format code before save? Definitely, i don't understand you
Zizheng Tai
@ZizhengTai
Jun 01 2017 09:10
@AUgryumov I mean how to make the IDE run rustfmt on the code every time I save the code. Sorry for the confusion.
Anton Ugryumov
@dvec
Jun 01 2017 09:16
But if you do this, then each time you see the formatted code, because it will be saved (except for the first time)
I'm don't understand you again
Zizheng Tai
@ZizhengTai
Jun 01 2017 09:18

then each time you see the formatted code

And that's just what I want to see

I want to keep the code formatted so that if i insert something messy it immediately gets formatted when I save it
Anton Ugryumov
@dvec
Jun 01 2017 09:20
Intellij doesn't supports this, but you can write already formatted code.
Alex Kavanagh
@ajkavanagh
Jun 01 2017 09:30
@ZizhengTai yes, I don't think I've got syntastic working yet, either. I may have to rummage around in my init.vim :)
Zizheng Tai
@ZizhengTai
Jun 01 2017 09:34
:+1:
Alex Kavanagh
@ajkavanagh
Jun 01 2017 09:47
@ZizhengTai syntastic + rust.vim in neovim working for me. just had to force it on with: let g:syntastic_rust_checkers = ['rustc'] in my init.vim.
Zizheng Tai
@ZizhengTai
Jun 01 2017 09:49
cool! i'll try that, thanks!
Matthew Skolaut
@tech2077
Jun 01 2017 21:18
Is there way to reduce the memory footprint of cargo through any options?
I'm in a build environment with limited memory (qemu-static userspace) and I'm getting what seems like memory errors as cargo runs
devlinzed
@devlinzed
Jun 01 2017 21:31
@tech2077 cargo build --jobs=1 may be the best you can do, but I am new to rust.
cargo or rustc may have additional args/env vars that can enforce a memory limit
Matthew Skolaut
@tech2077
Jun 01 2017 22:43
Thanks, seems like it's still crashing so the memory limit may be rather low