Code Monkey home page Code Monkey logo

Comments (10)

frei-0xff avatar frei-0xff commented on August 23, 2024

I had the same issue. Message in the log file said:
Failed to download language server binary.
As far as I was able to debug this issue, the problem is in /autoload/codeium/server.vim line 126.
At least in nvim 0.6.0 expand('<script>:p:h:h:h') returns empty string which results in plugin trying to download language server binary to the path /bin and obviously not succeeding.

from codeium.vim.

kdurant avatar kdurant commented on August 23, 2024

I had the same issue.

from codeium.vim.

pqn avatar pqn commented on August 23, 2024

@juliosueiras I remember you modified that line, could it be we need to revert it? @frei-0xff what happens if you try to install at 78998ff instead?

from codeium.vim.

frei-0xff avatar frei-0xff commented on August 23, 2024

@frei-0xff what happens if you try to install at 78998ff instead?

It doesn't work too.
Code expand('<sfile>:h:h') returns string . in nvim 0.6.0.
So it is trying to create bin folder in the current directory and download language server binary there.
Update:
When code expand('<sfile>:h:h') is called in

let s:dir = expand('<sfile>:h:h')
it returns right result with absolute path to plugin directory, but when it is called in autoload/codeium/server.vim it returns .

from codeium.vim.

juliosueirasED avatar juliosueirasED commented on August 23, 2024

Would it make more sense to use an plugin variable as a way to define the location to download and store the language server binary?

from codeium.vim.

chrisgrieser avatar chrisgrieser commented on August 23, 2024

couldn't you install the language server binary in fn.stdpath("data")?

from codeium.vim.

chrisgrieser avatar chrisgrieser commented on August 23, 2024

okay, for whatever weird reason, I just installed codium on a different device, with 100% the same config and this issue does not occur on this device – suggestion occur just fine here.

Also, I did not need to set up any authentification on the second device, it just worked out of the box.

from codeium.vim.

juliosueiras avatar juliosueiras commented on August 23, 2024

it might make more sense to reuse the codeium config directory to download the binary? given that the <sfile>/<script> have unpredictable behaviour

from codeium.vim.

juliosueiras avatar juliosueiras commented on August 23, 2024

Created this PR #15 for that purpose

from codeium.vim.

pqn avatar pqn commented on August 23, 2024

couldn't you install the language server binary in fn.stdpath("data")?

Seems this may not exist in Vim.

Created this PR #15 for that purpose

This seems like a reasonable solution. Later we can add an override if people prefer.

from codeium.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.