RustAutoComplete
RustAutoComplete copied to clipboard
ST3: Windows, Linux - not working
Autocomplete - just silence. Goto definition - error: "/path/to/tmpxyz": no such file or directory
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"
]
}
Nope, racer was spawned, but without any visible reactions at ST view.
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": "("}
]
}
Yep, problem issued on Windows only.
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.