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

racerd completion failure: CouldNotOpenTerminal #2222

Closed
c4rlo opened this issue Jun 26, 2016 · 10 comments · Fixed by ycm-core/ycmd#580
Closed

racerd completion failure: CouldNotOpenTerminal #2222

c4rlo opened this issue Jun 26, 2016 · 10 comments · Fixed by ycm-core/ycmd#580

Comments

@c4rlo
Copy link

c4rlo commented Jun 26, 2016

Trying to use the Rust completion, I get the following error:

HTTPError: 500 Server Error: Internal Server Error for url: http://127.0.0.1:55381/list_completions

Debug info:

Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: True
-- Clang version: clang version 3.8.0 (tags/RELEASE_380/final)
-- racerd
--   listening at: http://127.0.0.1:55381
--   racerd path: /home/carlo/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/rust/../../../t
hird_party/racerd/target/release/racerd
--   stdout log: /tmp/ycm_temp/racerd_55381_stdout.log
--   stderr log: /tmp/ycm_temp/racerd_55381_stderr.log
-- Server running at: http://127.0.0.1:48275
-- Server process ID: 13709
-- Server logfiles:
--   /tmp/ycm_temp/server_48275_stdout.log
--   /tmp/ycm_temp/server_48275_stderr.log

Looking at the racerd stderr logfile, I see:

ERROR:iron::iron: Error handling:
Request {
    url: Url { scheme: "http", host: Ipv4(127.0.0.1), port: 55381, path: ["list_completions"], username: None, password: None, query: None, fragment: None }
    method: Post
    remote_addr: V4(127.0.0.1:37504)
    local_addr: V4(127.0.0.1:55381)
}
Error was: CouldNotOpenTerminal

This is on Arch Linux.

Looks like this this comes out of the iron framework's logger component. And looks like they've recently merged a related-looking PR.

@Valloric
Copy link
Member

@jwilm

@Ravenow
Copy link

Ravenow commented Jul 1, 2016

As temp workaround u could use vim from any terminal emulator. I have subj problem only in gVim

@andoriyu
Copy link

I have the same problem in NeoVim.

@jwilm
Copy link
Contributor

jwilm commented Aug 23, 2016

racerd is updated with the latest logger. ycmd still needs to be updated with the latest racerd submodule, but I've run out of time this morning.

@puremourning
Copy link
Member

@jwilm if it is just updating the submodule to master, I can do it this evening?

@puremourning
Copy link
Member

@andoriyu could you post a reliable test case I can use to confirm it is resolved?

@jwilm
Copy link
Contributor

jwilm commented Aug 23, 2016

@puremourning In theory, it's just updating the submodule, but I wanted to test in an editor that everything is working ok. There's also a change appveyor won't be happy with the latest racerd (would probably just need to update rust compiler version).

@andoriyu
Copy link

@puremourning no idea how to test it, but I know that test suit you have now is failing when you run in it inside neovim (it has terminal emulator within)

@puremourning
Copy link
Member

We don't support neovim, sorry and i'm not sure what you mean by the test suite failing. That could be for any number of reasons.

In any case, @jwilm after updating the submodule and running the tests, i get successful completions in Vim for the rust test files in ycmd/tests/rust/testdata, so it seems good to me. I'll push the branch and see what appveyor makes of it. If it works, bonza. If not, then meh.

@andoriyu if you want to try out the fix, you can just check out my branch of ycmd (in third_party/ycmd) or manually pull the third_party/ycmd/third_party/racerd submodule in your YCM installation.

@andoriyu
Copy link

@puremourning I mean test suit was failing when it was run inside of neovim because of "CouldNotOpenTerminal".

It's all working now in NeoVim.

homu added a commit to ycm-core/ycmd that referenced this issue Aug 26, 2016
[READY] Update racerd to master

Fixes ycm-core/YouCompleteMe#2222 (comment) by updating racerd to master.

WIP because @jwilm thinks appveyor might barf.

Edit: Technically only fixes above issue when ycmd submodule updated in YCM

<!-- 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/580)
<!-- Reviewable:end -->
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants