Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Racer works from cli but not in atom #72

Open
leshow opened this issue Aug 1, 2016 · 5 comments
Open

Racer works from cli but not in atom #72

leshow opened this issue Aug 1, 2016 · 5 comments

Comments

@leshow
Copy link

leshow commented Aug 1, 2016

using rustup
installed racer with cargo install racer
apm install language-rust linter-rust racer

I added my rust src path and the path to cargo in the racer settings.
path to racer executable: /home/leshow/.cargo/bin/racer
path to rust source code directory: /home/leshow/Development/rust/rust/src/

when I start to type
use std::io::B nothing happens, a hidden file seems to flash in the file tree to the left but I get no completions. If i mess up the rust src path then I get error outputs, but with everything configured correctly I get nothing.

however it works from the cli

> racer complete std::io::B
MATCH BufReader,48,11,/home/leshow/Development/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufReader<R>
MATCH BufWriter,300,11,/home/leshow/Development/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufWriter<W: Write>
MATCH BufRead,1199,10,/home/leshow/Development/rust/rust/src/libstd/io/mod.rs,Trait,pub trait BufRead: Read
MATCH Bytes,1544,11,/home/leshow/Development/rust/rust/src/libstd/io/mod.rs,Struct,pub struct Bytes<R>
@jkbellew
Copy link

[Enter steps to reproduce below:]

  1. Open up the main.rs file.
  2. Begin typying, std:
  3. Error then accounts telling me that the racerBinPath is not set but it is and there are other errors but this is the only I was able to catch.

Atom Version: 1.9.8
System: Mac OS X 10.11.6
Thrown From: Atom Core

Stack Trace

Atom racer is not properly configured.

At undefined

undefined

Commands

  6x -0:30.7.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "activate-power-mode",
      "atom-sharp",
      "metrics"
    ],
    "projectHome": "/Users/jason/workspace",
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  },
  "editor": {
    "fontFamily": "Hack",
    "fontSize": 12,
    "tabType": "soft"
  }
}

Installed Packages

# User
advanced-open-file, v0.16.3 (inactive)
atom-beautify, v0.29.10 (active)
atom-language-rust, v0.8.1 (active)
atom-yeoman, vundefined (active)
atomic-emacs, v0.9.2 (active)
build, v0.65.0 (active)
build-cargo, v0.16.0 (active)
busy, v0.6.0 (active)
json-schema, v0.1.15 (active)
language-rust, v0.4.6 (active)
linter, v1.11.16 (active)
linter-rust, v0.5.0 (active)
markdown-document, v0.2.0 (inactive)
minimap, v4.24.7 (active)
minimap-cursorline, v0.2.0 (active)
omnisharp-atom, v0.30.4 (active)
racer, v0.20.0 (active)
terminal-plus, v0.14.5 (active)
theme-flux-solar, v0.2.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (active)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (active)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (inactive)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.46.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

@fasiha
Copy link

fasiha commented Jan 5, 2017

@macshaggy What is your “Path to to the Racer executable” in Settings→Packages→racer? If you installed it with rustup, it should be equal to /Users/<your username>/.cargo/bin/racer.

@fasiha
Copy link

fasiha commented Jan 5, 2017

@leshow what OS? I’m on macOS and have the same situation. Only difference is my path to Rust source is /Users/<username>/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src which I installed via rustup component add rust-src. I’m on macOS. No completions ever appear for std::s, even though racer prints lots in the command-line and I get no other errors in Atom.

@abradley2
Copy link

Having the same issue
~/.cargo/bin/racer will use racer just fine, but it won't work as the "Path to the Racer executable" setting

@bunnybooboo
Copy link

@abradley2 I had issues with this today but maybe my fix also solves your problem? #61 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants