RustAutoComplete icon indicating copy to clipboard operation
RustAutoComplete copied to clipboard

ST3: Windows, Linux - not working

Open pravic opened this issue 8 years ago • 5 comments

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

pravic avatar Apr 01 '16 14:04 pravic

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"
    ]
}

peschkaj avatar Apr 08 '16 15:04 peschkaj

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

pravic avatar Apr 08 '16 16:04 pravic

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": "("}
    ]
}

alecdwm avatar Jun 22 '16 16:06 alecdwm

Yep, problem issued on Windows only.

pravic avatar Jun 22 '16 16:06 pravic

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

zoumi avatar Aug 29 '16 14:08 zoumi