Sublime Text and Atom for edit Rust + install guide for Sublime


#1

I try ItelliJ for my Rust IDE but there not much help. Get a lot better on SublimeText. Is any one else work there? My linter not work properli when I in setting change for use_cargo = true

How to configure on Ubuntu:
if your install Rust from this comand in console “curl -s https://static.rust-lang.org/rustup.sh | sudo sh” u need get from git Rust code :

$ git clone https://github.com/rust-lang/rust.git $HOME/rust
$ export RUST_SRC_PATH=$HOME/rust/src

This need for Racer.
Links:
Racer : https://github.com/phildawes/racer

From Sublime Package I install:
1 Rust
2 RustAutoComplete
3 SublimeLinter-contrib-rustc


#2

If any one have questions with installation tools for Rust on Sublime ask there.


#3

I try Atom as well and found it similar. Much easier for configure autocomplete


#4

Yes. Well… I’m using Atom with rust for some time. However for now I’m not using some particular tool. The last time I tried to instal linter-rust I get some strange errors so I stopped searching for Atom Rust plugins (at least until 1.0 stable). However, if you have any suggestion to give me, it will be very appreciated. :slight_smile:


#5

On Atom Racer work ok, Problems with linter only on two Editors.
You right now is hard keep plugins up to date.
Atom on Windows if file size more than 2mb not open.


#6
{
"cmd":["rustc","$file","-o","$file_path/$file_base_name"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.rust",

"variants": [
    {
        "name": "Run",
        "cmd": ["./$file_base_name"]            
    }
]
}

This is my sublime.build file for rust. Why error like this appear?

Errno 2] No such file or directory: './hello_world'
[cmd: ['./hello_world']]
[dir: /Users/R/Desktop]
[path: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin]
[Finished]