• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Intelligent code completion for Rust in the Atom Editor. Requires Racer.

Racer

Providing intelligent code completion and "find definition" for Rust via Racer.

A screenshot of racer at work

Installation

  1. Ensure you have the Atom package language-rust installed and active.
  2. Ensure you have Racer properly installed.
  3. Ensure you have a copy of the rustc source code extracted on your disk.
  4. Install this package via Atom's package manager:
  • go to Preferences > Packages, search for racer, and install it
  • OR use the command line apm install racer).

Configuration

go to Preferences > Packages, search for racer, and click Settings

Display Name Description Required Name
Path to the Racer executable Full path (including executable) of Racer's binary (e.g. /Users/me/racer/bin/racer or c:\racer\bin\racer.exe) YES racer.racerBinPath
Path to the Rust source code directory Should point to the rustc source directory (e.g. /Users/me/code/rust/src/) YES racer.rustSrcPath
Autocomplete Scope Blacklist Scopes for which no suggestions will be made (e.g. .source.go .comment) NO racer.autocompleteBlacklist
Show position for editor with definition Can be Right or New. If Right is selected and your view is vertically split, the item will be open in the rightmost pane of the current active pane's row. NO racer.show

Usage

Just type some code in a .rs file, and racer will automatically show you some suggestions (using the autocomplete+ package provided by Atom).

You can also find definition of your current element by pushing the F3 key.

FAQ:

Racer doesn't work, or I see plugin errors when I type:

Your configuration is probably wrong:

  • The path to Racer has to point to the Racer binary executable (this is NOT a directory we request here).
  • The Rustc source has to point to the base directory of the source code.
  • The Atom package language-rust is installed and active.

My project tree (tree-view) flickers:

We use temporary files to communicate with racer and need to place them along with your source files.

We shaped them as ._racertmpXXXXX because the ._* files are ignored by default by Atom.

Change your configuration so that the tree-view package follows Atom ignore rules!

  • Open Settings > Packages
  • Search the core package called tree-view, click Settings
  • Check the box called Hide Ignored Names

Note: by the way, you can control what is ignored in the main Atom settings top panel.

  • Open Settings > Settings (the first tab)
  • Search the "core settings" section for the Ignored Names field
  • check that it's either empty (default), or contains ._*, or add yourself a ._racertmp* entry if you already changed the settings.

Why do you constantly put (and remove) temporary files in my project:

We use temporary files to communicate with racer and need to place them along with your source files so that racer:

  • locates your project,
  • provides completion for your whole projects code,
  • locates your cargo file if it exists and use it to provide completion for your dependencies.

More Repositories

1

atom-elm

An atom package providing syntax highlighting and snippets for the Elm language.
CoffeeScript
65
star
2

datomex

Elixir driver for the Datomic REST API
Elixir
47
star
3

supermemo

An Elixir implementation of the Supermemo 2 algorithm
Elixir
18
star
4

kitsune

An Elixir library for transforming the representation of data
CSS
11
star
5

OpalConsole

A Chrome extension to compile and run Opal in the browser. Inspired by CoffeeConsole.
JavaScript
10
star
6

smart_diff

A port to Ruby of the htmlizing portion of @yinwang0's psydiff to showcase jruby-parser's semantic diffing
CSS
8
star
7

demoApp

Working through Michael Hartl's Rail's Tutorial, but using Tower.js instead of Ruby on Rails
CoffeeScript
8
star
8

sublime-coffeescript-function-finder

A Sublime Text plug-in for finding function definitions in coffeescript. Adapted from @timdouglas 's sublime-find-function .
Python
5
star
9

towerBot

an irc bot built with Tower.js
CoffeeScript
5
star
10

arango

ArangoDB driver for Elixir.
Elixir
4
star
11

firstApp

Working through Michael Hartl's Rail's Tutorial, but using Tower.js instead of Ruby on Rails β€”
JavaScript
4
star
12

.dotfiles

Help yourself if you see anything of interest. You might take a peek at my Sublime Text 2 setup.md. Everything as-is, no guarantees, etc.
Shell
4
star
13

spellbook

A code completion tool for Elixir
Elixir
3
star
14

blog

The repo for http://ericwest.io
Elixir
3
star
15

tower-docs

Tower.js Documentation
CoffeeScript
2
star
16

FileTree

A simple ruby library for manipulating filepaths as tree structures
Ruby
2
star
17

Coffee-Ember-Brunch

A fork of @icholy 's Ember-Brunch skeleton converted to coffee-script
CoffeeScript
2
star
18

sampleApp

Working through Michael Hartl's Rail's Tutorial, but using Tower.js instead of Ruby on Rails β€”
CoffeeScript
2
star
19

first_app

My first app for Ruby on Rails tutorial
Ruby
1
star
20

link_extractor

From ElixirSips, episode 092 http://elixirsips.com/episodes/092_link_extractor.html
Elixir
1
star
21

demo_app

Ruby on Rails Tutorial demo application
Ruby
1
star
22

zappaEmberApp

zappajs, emberjs, brunch, websockets... not working yet!
CoffeeScript
1
star
23

sample_app

Ruby on Rails Tutorial Sample Application
Ruby
1
star
24

microKanren

An implementation of microKanren in Elixir
Elixir
1
star
25

SampleDrools

Attempts at using Drools from JRuby
Java
1
star
26

quote_bot

A simple quote bot for Slack
Ruby
1
star
27

flashMessages

Rails-like flash messages for Towerjs
1
star
28

PDFConverter

A JRubyFX project
Ruby
1
star
29

docker-phoenix

Dockerfile for phoenix
Shell
1
star
30

funfunankideck

grab tweets from https://twitter.com/funfunconv and build anki deck
Elixir
1
star
31

SublimeJRubyFXML

Basic syntax highlighting for FXML and tools for working with JRubyFX
Python
1
star