These are chat archives for rust-lang/rust

10th
Oct 2015
cannot figure out where to put the global config on a win machine
need to configure for use behind proxy
Remi Rampin
@remram44
Oct 10 2015 17:47
That collapsing feature really seems unrelated to OO at all?
panicbit
@panicbit
Oct 10 2015 18:22
@JohanLarsson My guess is %AppData%\.cargo\ or C:\Users\You\.cargo\
@JohanLarsson Oh I suppose the rule is "any parent folder will do"
So you could put your ".cargo\config" in "C:\" and be super global :D
Johan Larsson
@JohanLarsson
Oct 10 2015 20:57
ty ty, will try
@remram44 I guess but writing the code with members inside the {} of the class, oo-style, makes it trivial for the editor.
compared to having impl anywhere
panicbit
@panicbit
Oct 10 2015 21:14
It is harder, but not by much. AFAIK, you can't write an impl for a struct in another file.
Trait impls are mor problematic though, since they depend on the exact type and scope.
(I'm thinking of code suggestions here)
code completion*
Johan Larsson
@JohanLarsson
Oct 10 2015 21:18
Am I supposed to put a Cargo.toml in ??.cargo\
panicbit
@panicbit
Oct 10 2015 21:21
No. The file needs to be called "config"
"??.cargo\config"
Johan Larsson
@JohanLarsson
Oct 10 2015 21:22
config with no suffix
panicbit
@panicbit
Oct 10 2015 21:22
yup
Johan Larsson
@JohanLarsson
Oct 10 2015 21:22
<- noob :)
ty sir & ty for your patience
panicbit
@panicbit
Oct 10 2015 21:22
Don't worry about asking questions
Peter Atashian
@retep998
Oct 10 2015 21:22
"C:\blah\blah\.cargo\config"
panicbit
@panicbit
Oct 10 2015 21:22
How are you supposed to learn if you are not supposed to ask questions?
Johan Larsson
@JohanLarsson
Oct 10 2015 21:23
nice with some activity here
Peter Atashian
@retep998
Oct 10 2015 21:23
friggin markdown on gitter interprets \. weirdly
Johan Larsson
@JohanLarsson
Oct 10 2015 21:23
usually it is just me writing and 17 reading
next up is trying to get racer working in sublime
cloned and built but no completion
panicbit
@panicbit
Oct 10 2015 21:24
@retep998 Oh crap. Didn't notice since I'm using the irc bridge
Johan Larsson
@JohanLarsson
Oct 10 2015 21:25
{
  // The full path to the racer binary. If racer is already
  // in your system path, then this default will be fine.
  "racer": "C:/Git/Rust/racer/target/release/racer/",

  // A list of search paths. This should generally just
  // be the path to the rust compiler src/ directory.
  "search_paths": [
    "C:/Git/Rust/rust/src"
  ]
}
panicbit
@panicbit
Oct 10 2015 21:25
The racer attribute needs to point to the binary itself
Johan Larsson
@JohanLarsson
Oct 10 2015 21:25
I think the search path is wrong
panicbit
@panicbit
Oct 10 2015 21:26
drop the slash
"racer": "C:/Git/Rust/racer/target/release/racer/",
Johan Larsson
@JohanLarsson
Oct 10 2015 21:26
ok appending racer.exe
panicbit
@panicbit
Oct 10 2015 21:26
argh
yup
Johan Larsson
@JohanLarsson
Oct 10 2015 21:27
no dice, restarted sublime
panicbit
@panicbit
Oct 10 2015 21:27
Things I noticed: Completion doesn't trigger on "." or ":" (as advertised in the global config)
Johan Larsson
@JohanLarsson
Oct 10 2015 21:28
hmm, that makes it useless no?
panicbit
@panicbit
Oct 10 2015 21:28
Also, racer fails to complete a lot of functions like Option::or_else
Well, if you know the first character of your function it will work^^
Johan Larsson
@JohanLarsson
Oct 10 2015 21:28
I tested with use std::
panicbit
@panicbit
Oct 10 2015 21:28
And I couldn't get completion for e.g. the current file :(
Johan Larsson
@JohanLarsson
Oct 10 2015 21:29
ok, maybe not worth fighting with then
panicbit
@panicbit
Oct 10 2015 21:29
At least not yet
Johan Larsson
@JohanLarsson
Oct 10 2015 21:29
would be nice
panicbit
@panicbit
Oct 10 2015 21:29
Racer is still in development
Johan Larsson
@JohanLarsson
Oct 10 2015 21:29
nice to explore libraries via completion
panicbit
@panicbit
Oct 10 2015 21:29
An official AST lib would be nice (like go has)
That would help racer trmendously I suppose
Johan Larsson
@JohanLarsson
Oct 10 2015 21:30
dunno what it means, compiler as a service?
panicbit
@panicbit
Oct 10 2015 21:30
AST?
Johan Larsson
@JohanLarsson
Oct 10 2015 21:31
I know the acronym but not really how an ast-lib would help :smile:
<- not a compiler writer
panicbit
@panicbit
Oct 10 2015 21:32
It would allow Racer to easily and correctly parse the Rust code.
Johan Larsson
@JohanLarsson
Oct 10 2015 21:36
do you write rust in your daily grind?
panicbit
@panicbit
Oct 10 2015 21:37
I try to use Rust when I can :)
My projects often don't get past the "ok, this prototypes works, I'm bored now" phase :P
Johan Larsson
@JohanLarsson
Oct 10 2015 21:40
hobby or work?
panicbit
@panicbit
Oct 10 2015 21:44
Hobby
I wouldn't mind to be employed as a rust developer :]
Johan Larsson
@JohanLarsson
Oct 10 2015 21:46
Me neither, I write C# for a living but sometimes think about getting a job in some other language
F# and Rust are high on that list
panicbit
@panicbit
Oct 10 2015 21:49
I'm currently studying CS. I would love to somehow bring Rust into the curriculum.
Peter Atashian
@retep998
Oct 10 2015 21:50
I'd be so happy if I could get a job doing Rust
Johan Larsson
@JohanLarsson
Oct 10 2015 21:50
I studied mechanical engineering, drew CAD for the last seven years.
Switched to programming this year.
huge wall of text but pretty good read