defuz / RustAutoComplete

A SublimeText binding for RACER (Rust auto completion tool)
MIT License
105 stars 20 forks source link

ST3: Windows, Linux - not working #33

Open pravic opened 8 years ago

pravic commented 8 years ago

Autocomplete - just silence. Goto definition - error: "/path/to/tmpxyz": no such file or directory

peschkaj commented 8 years ago

On Windows this happens when the path to racer isn't correctly set. Visit the package settings and point them to the racer executable directly. Example:

{
    // The full path to the racer binary. If racer is already
    // in your system path, then this default will be fine.
    "racer": "C:/Users/jeremiah/.cargo/bin/racer.exe",

    // A list of search paths. This should generally just
    // be the path to the rust compiler src/ directory.
    "search_paths": [
        "C:/Users/jeremiah/src/rust/src"
    ]
}
pravic commented 8 years ago

Nope, racer was spawned, but without any visible reactions at ST view.

alecdwm commented 8 years ago

Just to pitch in, things are working fine for me with ST3 (Build 3114) on Linux using the following config file:

{
    // The full path to the racer binary. If racer is already
    // in your system path, then this default will be fine.
    "racer": "/home/alec/.cargo/bin/racer",

    // A list of search paths. This should generally just
    // be the path to the rust compiler src/ directory.
    "search_paths": [
        "/usr/src/rust/src"
    ],

    // Additional situations to trigger auto complete
    "auto_complete_triggers": [
        {"selector": "source.rust", "characters": "."},
        {"selector": "source.rust", "characters": ":"},
        {"selector": "source.rust", "characters": "("}
    ]
}
pravic commented 8 years ago

Yep, problem issued on Windows only.

zoumi commented 7 years ago

It works well for me.My syetem is win7 b4bit.And I set nothing in the config file.Just put the CARGO_HOME and the RUST_SRC_PATH in system enviroments. Maybe you can try to update your sublime text to the newest version. dddd