edubkendo / atom-racer

Intelligent code completion for Rust in the Atom Editor. Requires Racer.
MIT License
115 stars 24 forks source link

Uncaught (in promise) Error: Git head failed #90

Open rugk opened 6 years ago

rugk commented 6 years ago

I installed racer and the rust source (and set them up in the config), so no error is popping up in Atom.

I also saw the temporary files being created, but I see no suggestions in Atom.

It shows me this in the developer console:

<embedded>:132586 Uncaught (in promise) Error: Git head failed

(Note: I do not use git in the project and I also installed rust's source via rustup, so git should not be used there.)

Atom 1.23.3 Windows 10

rugk commented 6 years ago

However, this eror also appeared before I installed the rust source and racer.

I think the bigger issue is this (also onyl in dev tools):

Uncaught (in promise) Error: Command failed: C:\Users\...\.cargo\bin\rustup.exe component add rls --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls' for target 'x86_64-pc-windows-msvc'

    at ChildProcess.exithandler (child_process.js:223)
    at emitTwo (events.js:106)
    at ChildProcess.emit (events.js:191)
    at maybeClose (internal/child_process.js:885)
    at Socket.<anonymous> (internal/child_process.js:334)
    at emitOne (events.js:96)
    at Socket.emit (events.js:188)
    at Pipe._handle.close [as _onclose] (net.js:501)

(BTW, I don't know why it is trying to use the nightly, I have installed both, but I'd be fine with the stable.)

MAnually executing the command there also fails (the stuff is installed for stable, though):

$ rustup component add --toolchain nightly rls-preview
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows-msvc'