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

[READY] Update ycmd #2804

Merged
merged 3 commits into from
Oct 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 34 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,16 @@ Compiling YCM **without** semantic support for C-family languages:
The following additional language support options are available:

- C# support: install Mono with [Homebrew][brew] or by downloading the [Mono Mac
package][mono-install-osx] and add `--omnisharp-completer` when calling
package][mono-install-osx] and add `--cs-completer` when calling
`./install.py`.
- Go support: install [Go][go-install] and add `--gocode-completer` when calling
- Go support: install [Go][go-install] and add `--go-completer` when calling
`./install.py`.
- TypeScript support: install [Node.js and npm][npm-install] then install the
TypeScript SDK with `npm install -g typescript`.
- JavaScript support: install [Node.js and npm][npm-install] and add
`--tern-completer` when calling `./install.py`.
`--js-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add
`--racer-completer` when calling `./install.py`.
`--rust-completer` when calling `./install.py`.

To simply compile with everything enabled, there's a `--all` flag. So, to
install with all language features, ensure `xbuild`, `go`, `tsserver`, `node`,
Expand Down Expand Up @@ -253,15 +253,15 @@ Compiling YCM **without** semantic support for C-family languages:

The following additional language support options are available:

- C# support: install [Mono][mono-install-ubuntu] and add `--omnisharp-completer`
- C# support: install [Mono][mono-install-ubuntu] and add `--cs-completer`
when calling `./install.py`.
- Go support: install [Go][go-install] and add `--gocode-completer` when calling
- Go support: install [Go][go-install] and add `--go-completer` when calling
`./install.py`.
- TypeScript support: install [Node.js and npm][npm-install] then install the
TypeScript SDK with `npm install -g typescript`.
- JavaScript support: install [Node.js and npm][npm-install] and add
`--tern-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--racer-completer` when
`--js-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--rust-completer` when
calling `./install.py`.

To simply compile with everything enabled, there's a `--all` flag. So, to
Expand Down Expand Up @@ -320,15 +320,15 @@ Compiling YCM **without** semantic support for C-family languages:

The following additional language support options are available:

- C# support: install [Mono][mono-install-fedora] and add `--omnisharp-completer`
- C# support: install [Mono][mono-install-fedora] and add `--cs-completer`
when calling `./install.py`.
- Go support: install [Go][go-install] and add `--gocode-completer` when calling
- Go support: install [Go][go-install] and add `--go-completer` when calling
`./install.py`.
- TypeScript support: install [Node.js and npm][npm-install] then install the
TypeScript SDK with `npm install -g typescript`.
- JavaScript support: install [Node.js and npm][npm-install] and add
`--tern-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--racer-completer` when
`--js-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--rust-completer` when
calling `./install.py`.

To simply compile with everything enabled, there's a `--all` flag. So, to
Expand Down Expand Up @@ -405,15 +405,15 @@ Compiling YCM **without** semantic support for C-family languages:

The following additional language support options are available:

- C# support: add `--omnisharp-completer` when calling `install.py`.
- C# support: add `--cs-completer` when calling `install.py`.
Be sure that [the build utility `msbuild` is in your PATH][add-msbuild-to-path].
- Go support: install [Go][go-install] and add `--gocode-completer` when calling
- Go support: install [Go][go-install] and add `--go-completer` when calling
`install.py`.
- TypeScript support: install [Node.js and npm][npm-install] then install the
TypeScript SDK with `npm install -g typescript`.
- JavaScript support: install [Node.js and npm][npm-install] and add
`--tern-completer` when calling `install.py`.
- Rust support: install [Rust][rust-install] and add `--racer-completer` when
`--js-completer` when calling `install.py`.
- Rust support: install [Rust][rust-install] and add `--rust-completer` when
calling `install.py`.

To simply compile with everything enabled, there's a `--all` flag. So, to
Expand Down Expand Up @@ -476,15 +476,15 @@ Compiling YCM **without** semantic support for C-family languages:

The following additional language support options are available:

- C# support: install Mono and add `--omnisharp-completer` when calling
- C# support: install Mono and add `--cs-completer` when calling
`./install.py`.
- Go support: install [Go][go-install] and add `--gocode-completer` when calling
- Go support: install [Go][go-install] and add `--go-completer` when calling
`./install.py`.
- TypeScript support: install [Node.js and npm][npm-install] then install the
TypeScript SDK with `npm install -g typescript`.
- JavaScript support: install [Node.js and npm][npm-install] and add
`--tern-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--racer-completer` when
`--js-completer` when calling `./install.py`.
- Rust support: install [Rust][rust-install] and add `--rust-completer` when
calling `./install.py`.

To simply compile with everything enabled, there's a `--all` flag. So, to
Expand Down Expand Up @@ -1057,16 +1057,20 @@ define( [ 'mylib/file1', 'anotherlib/anotherfile' ], function( f1, f2 ) {

Completions and GoTo commands within the current crate and its dependencies
should work out of the box with no additional configuration (provided that you
built YCM with the `--racer-completer` flag; see the [*Installation*
section](#installation) for details). For semantic analysis inclusive of the
standard library, you must have a local copy of [the rust source
code][rust-src]. You also need to set the following option so YouCompleteMe can
locate it.

built YCM with the `--rust-completer` flag; see the [*Installation*
section](#installation) for details). For semantic analysis inclusive of the
standard library, you must have a local copy of [the Rust source
code][rust-src]. If using [rustup][], run the following command to download the
code:
```
rustup component add rust-src
```
YCM will find its location automatically. Otherwise, download the archive,
extract it somewhere, and set the following option so YCM can locate it:
```viml
" In this example, the rust source code zip has been extracted to
" /usr/local/rust/rustc-1.5.0
let g:ycm_rust_src_path = '/usr/local/rust/rustc-1.5.0/src'
" In this example, the Rust source code archive has been extracted to
" /usr/local/rust/rustc-1.20.0
let g:ycm_rust_src_path = '/usr/local/rust/rustc-1.20.0/src'
```

### Python Semantic Completion
Expand Down Expand Up @@ -3137,3 +3141,4 @@ This software is licensed under the [GPL v3 license][gpl].
[ninja-compdb]: https://ninja-build.org/manual.html
[vim-nerdtree-tabs]: https://github.com/jistr/vim-nerdtree-tabs
[++enc]: http://vimdoc.sourceforge.net/htmldoc/editing.html#++enc
[rustup]: https://www.rustup.rs/
Loading