Closed leshow closed 9 years ago
Hello @leshow
Oh, the path to the racer has to link to the binary file, not to the directory that contains it :)
So in:
"racerBinPath": "/usr/bin/racer/",
There is a /
that shouldn't be there. You probably should put /usr/bin/racer
in the settings.
Note: I already took some note to work on safety improvements to check that the paths are correctly setup before trying to call the executable, that would ease user's setup and provide better feedback that something in the path is not correctly set
@leshow tell us if it solved your issue :)
ah yes, that removes the error. however the suggestions are still not coming up as I type and I don't know why
@leshow good !
About the lack of suggestions, maybe it's the path to your src of rust that is wrong? you could probably confirm or infirm that by calling racer by hand.
You could try to trigger racer using a terminal and entering:
RUST_SRC_PATH=/home/leshow/Development/rust/rust/src/ /usr/bin/racer complete std::co
if it works, it should return some lines starting with MATCH ...
(4 of those here)
if it doesn't work, then it's your source path that is wrong and racer cant use it.
Note: If it was indeed a source path problem, dont forget to update your atom settings with the right one, and close and reopen atom for the change to propagate, or force a reload using the command palette and looking for "Windows:Reload". Our module doesn't track config changes automatically (once they've been set) for the moment
@leshow did it work?
~ ❯❯❯ racer complete std::co
[1] 15968 illegal hardware instruction (core dumped) racer complete std::co
(I have RUST_SRC_PATH exported as the same dir as the one configured in atom)
No it did not, so I imagine you're correct and my src path is messed up.
To get the rust src I cloned the rust-lang repo and pointed racer to that src directory, because I'm installing the rust-nightly from a bin. Was there something else I should've done?
@leshow Hum, I dont know. I dont really use the rust master. What I usually do is download the nightly src at https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz and put it somewhere in my home, then point the RUST_SRC_PATH
to the src subfolder and it works.
As for "racer" itself, this, I git and cargo build --release
myself, since it tends to follow the nightly and I might patch it at times :) You might want to try that ! Hope you'll have it working.
Do you mind if I close the issue, since it's not a atom-racer concern ?
of course, thank you very much for your help
@leshow my pleasure :)
[Enter steps to reproduce below:]
i installed the racer package (racer-git from AUR) I have the rust-nightly-bin package, which I don't believe includes a copy of the src so I cloned rust-lang and pointed racer to the src directory from the rust-lang repo
Can't seem to get the autocomplete to work.
Atom Version: 0.177.0 System: linux 3.18.5-1-ARCH Thrown From: racer package, v0.9.1
Stack Trace
Uncaught Error: spawn ENOTDIR
Commands
Config
Installed Packages
/cc @atom/core