Skip to content

[READY] Update Go completer #1098

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

Merged
merged 1 commit into from
Sep 9, 2018
Merged

[READY] Update Go completer #1098

merged 1 commit into from
Sep 9, 2018

Conversation

micbou
Copy link
Collaborator

@micbou micbou commented Sep 4, 2018

As discussed in issue #1097, switch the Gocode version to mdempsky's fork. This requires moving the Gocode submodule to third_party/go/src/github.com/mdempsky/gocode and setting GOPATH to third_party/go when building Gocode. Do the same for Godef. This way, using Manishearth's fork is not needed anymore.

The following changes to the Go completer are required with this new version of Gocode:

  • the status endpoint has been removed so the server is now assumed to be healthy if it's running;
  • the null response is returned when there are no completions.

Closes #1090.
Closes #1092.
Closes #1097.


This change is Reviewable

Switch Gocode to mdempsky's fork and use the official repository for Godef.
Move Gocode and Godef submodules to third_party/go/src/github.com to allow
building them in place. Since the status endpoint has been removed from Gocode,
assume the server is healthy if it's running. Handle a null response from
Gocode.
Copy link
Collaborator

@bstaletic bstaletic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, this is :lgtm:, but we should somehow remember to update gocode again, once go modules are supported.

Reviewed 9 of 9 files at r1.
Reviewable status: 0 of 2 LGTMs obtained (and 1 stale)

@codecov
Copy link

codecov bot commented Sep 4, 2018

Codecov Report

Merging #1098 into master will increase coverage by 1.25%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1098      +/-   ##
==========================================
+ Coverage   96.31%   97.56%   +1.25%     
==========================================
  Files          89       89              
  Lines        6624     6948     +324     
==========================================
+ Hits         6380     6779     +399     
+ Misses        244      169      -75

@flowchartsman
Copy link

Please merge this change and roll a release, it's making my days full of headaches.

@bstaletic
Copy link
Collaborator

@flowchartsman We have a rule that requires two LGTM's from two team members before we merge any PR.

If you really need this PR merged, do the following:

  • cd /path/to/YouCompleteMe/third_party/ycmd
  • git checkout master
  • git pull
  • git fetch origin +refs/pull/1098/merge
  • git checkout FETCH_HEAD
  • Rebuild what's necessary.

@flowchartsman
Copy link

flowchartsman commented Sep 7, 2018

Sure. In the meantime, I'll venmo 50$ to whomever LGTMs and lands this. I do really need it :)

@puremourning
Copy link
Member

We’re doing this in our spare time (see CONTRIBUTING.md). I don’t have a lot of that right now sorry so there has been a delay. I will try to get to it today but nagging doesn’t really help.

@flowchartsman
Copy link

flowchartsman commented Sep 8, 2018 via email

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM sorry for the delay.

Reviewable status: 1 of 2 LGTMs obtained

@micbou
Copy link
Collaborator Author

micbou commented Sep 9, 2018

Thanks for the review.

@zzbot r+

@zzbot
Copy link
Contributor

zzbot commented Sep 9, 2018

📌 Commit 2b3e1cf has been approved by micbou

@zzbot
Copy link
Contributor

zzbot commented Sep 9, 2018

⌛ Testing commit 2b3e1cf with merge 10dc665...

zzbot added a commit that referenced this pull request Sep 9, 2018
[READY] Update Go completer

As discussed in issue #1097, switch the Gocode version to [mdempsky's fork](https://github.com/mdempsky/gocode). This requires moving the Gocode submodule to `third_party/go/src/github.com/mdempsky/gocode` and setting `GOPATH` to `third_party/go` when building Gocode. Do the same for Godef. This way, using [Manishearth's fork](https://github.com/Manishearth/godef) is not needed anymore.

The following changes to the Go completer are required with this new version of Gocode:
 - the `status` endpoint has been removed so the server is now assumed to be healthy if it's running;
 - the `null` response is returned when there are no completions.

Closes #1090.
Closes #1092.
Closes #1097.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/1098)
<!-- Reviewable:end -->
Copy link
Member

@Valloric Valloric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit late, but :lgtm: from me as well.

Reviewable status: 1 of 2 LGTMs obtained (and 1 stale)

@zzbot
Copy link
Contributor

zzbot commented Sep 9, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: micbou
Pushing 10dc665 to master...

@zzbot zzbot merged commit 2b3e1cf into ycm-core:master Sep 9, 2018
zzbot added a commit to ycm-core/YouCompleteMe that referenced this pull request Oct 7, 2018
[READY] Update ycmd

Include the following changes:
 - PR ycm-core/ycmd#1075: remove Node.js workaround for Debian-based distributions;
 - PR ycm-core/ycmd#1077: update Boost to 1.68;
 - PR ycm-core/ycmd#1078: add semantic trigger for Julia;
 - PR ycm-core/ycmd#1081: improve type information on C++ member functions;
 - PR ycm-core/ycmd#1086: check if Python headers are installed before building;
 - PR ycm-core/ycmd#1088: raise proper exception for commands when file is still being parsed in C-family languages;
 - PR ycm-core/ycmd#1098: update Go completer;
 - PR ycm-core/ycmd#1099: update regex submodule;
 - PR ycm-core/ycmd#1100: add Python path to debugging information;
 - PR ycm-core/ycmd#1103: support framework headers completion and code navigation in C-family languages;
 - PR ycm-core/ycmd#1107: update Clang to 7.0.0;
 - PR ycm-core/ycmd#1109: update jdt.ls to 0.25.0;
 - PR ycm-core/ycmd#1110: handle null hover response from language servers;
 - PR ycm-core/ycmd#1111: update list of completion kinds defined by LSP;
 - PR ycm-core/ycmd#1113: send completion item kinds capability to language servers;
 - PR ycm-core/ycmd#1116: update Parso to 0.3.1 and Jedi to 0.13.1.

Closes #3138.
Closes #3145.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3175)
<!-- Reviewable:end -->
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

Successfully merging this pull request may close these issues.

Official gocode is not supported anymore
6 participants