defuz / RustAutoComplete

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

Not working on OSX and generate lots of tmp files. #32

Open ipfans opened 8 years ago

ipfans commented 8 years ago

RustAutoComplete v0.8.0 SublimeText 3.0 beta 3083

Snapshot:

2016-01-06 4 45 18

It is not show up the completion and generate lots of tmp files in rust src/ directory.

My Config is

{
    "racer": "racer",

    "search_paths": [
        "/path/to/rustc-1.5.0/src"
    ]
}

racer is already into $PATH, and RUST_SRC_PATH already set.

VoR0220 commented 8 years ago

I got it to work on mine. You're not supposed to set it to the compiler, you're supposed to set it to the src of your Cargo folder (so where your project is). Overall I just set my search path to ~/src/*. However, the temp file generation is very much an irritating nuisance. That definitely needs to be fixed.

ysimonson commented 8 years ago

I was getting the same issues, but they were fixed once I properly configured it - autocomplete works, and no polluting temp files. At least with the latest version.

Make sure you: 1) Have racer installed and in your PATH 2) Have the directory to rust compiler's source code properly configured in the plugin's user settings (see the readme)

If that doesn't work, the console might tell you what's up (apple+backtick)

takama commented 8 years ago

I was getting the same issues, probably it needs of racer path into package user settings anyway.

lunemec commented 8 years ago

+1 I was running into the same issue, I had incorrect tracer PATH, sublime wasn't able to find it although I have correct system $PATH. The path should be a absolute path to the binary, just to be sure. The plugin should let the user know it is not properly configured and do nothing instead of generating tons of tmp files.

Kerollmops commented 8 years ago

Same issue for me. All is correctly configured...

perlun commented 7 years ago

For me, it works on OSX but it does generate lots of temp files. 😉

idevz commented 7 years ago

@ysimonson thanks for your comments, it works for me.

sp-1234 commented 7 years ago

@ysimonson what the hell is apple+backtick?

upd: by guessing and finding it in menu (View->Show Console) I found that it's Ctrl+backtick

ysimonson commented 7 years ago

@sp-1234 it should be the command key rather than control key, since this issue is about OS X. I'm accustomed to calling it the apple key, which is its old name.

sp-1234 commented 7 years ago

@ysimonson that's fine, but don't expect everyone else to understand it, because it's nowhere labeled as "apple key"

StefanoChiodino commented 7 years ago

Console said racer could not be found. I had it set to just racer, because the folder was in the $PATH and I can use it from iTerm. So I just put the full path in the settings!