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

No suggestions when using 1.6.39 #354

Open
CervEdin opened this issue Apr 18, 2024 · 6 comments
Open

No suggestions when using 1.6.39 #354

CervEdin opened this issue Apr 18, 2024 · 6 comments

Comments

@CervEdin
Copy link

Tried another codeium instance, version 1.6.39 and I'm not getting any suggestions.

I'm using version 1.6.28 (on another codeium instance) and it's working fine.

Hard to provide much in the way of useful debugging information, for example, not sure which version the language server on my system is running.

Digging around, the language server integration looks like a possible culprit.

cd ~ && find .local/share/.codeium/bin/ -ls
     4393      4 drwxr-xr-x   4 erik     erik         4096 Apr 18 10:45 .local/share/.codeium/bin/
    63917      4 drwxr-xr-x   2 erik     erik         4096 Apr 18 10:45 .local/share/.codeium/bin/f485965568948013d9f47815917f2f1f3a99089d
    63927 124816 -rwxr-xr-x   1 erik     erik     127805376 Apr 18 10:45 .local/share/.codeium/bin/f485965568948013d9f47815917f2f1f3a99089d/language_server_linux_x64
    63657      4 drwxr-xr-x   2 erik     erik          4096 Apr 18 10:41 .local/share/.codeium/bin/c0233f8d8a2279e99bfde38bb3cca2bb50dc8392
    63913     36 -rw-r--r--   1 erik     erik         34245 Apr 18 10:41 .local/share/.codeium/bin/c0233f8d8a2279e99bfde38bb3cca2bb50dc8392/language_server_linux_x64.gz

for one it doesn't look like the language server is extracted.

Also, the commit of tag 1.6.39 5b8f68d is the same as 1.8.5 and I'm not sure if the language server version 1.8.5 is supposed to work with 1.6.39 or not

@pqn
Copy link
Contributor

pqn commented Apr 18, 2024

Can you try the latest commit?

@CervEdin
Copy link
Author

@pqn makes no difference. Trying 1.6.36 didn't work either.

How can I debug this?

@pqn
Copy link
Contributor

pqn commented Apr 23, 2024

The code to do the extraction hasn't changed in recent memory. You could try manually unzipping it to see if it can skip that step.

@CervEdin
Copy link
Author

The plot thickens. It's not a zip file, it's an HTML file with a 404

@CervEdin
Copy link
Author

Pretty sure the problem is due to changes in commit fd440cd
The download based on the portal url isn't working for me.
The response of that curl is a 404 page and not the archive of the language server.

Looks like the code for extracting the archive isn't catching errors from gzip, rather it seems to happily make it executable.
Since it's readable (a file which exists), it's not reported as an error.

  else
    if !executable('gzip')
      call codeium#log#Error('Failed to extract language server binary: missing `gzip`.')
      return ''
    endif
    call system('gzip -d ' . s:bin . '.gz')
    call system('chmod +x ' . s:bin)
  endif
  if !filereadable(s:bin)
    call codeium#log#Error('Failed to download language server binary.')
    return ''
  endif

Looks like I was able to solve this for myself by manually constructing the url and downloading it from the github url
https://github.com/Exafunction/codeium/releases/download/language-server-v1.8.5/language_server_linux_x64.gz

Side note, there also appears to exists another version
https://github.com/Exafunction/codeium/releases/download/language-server-v1.6.39/language_server_linux_x64.gz

which matches the tagged version of my plugin which I was instructed to install, but it appears the newer one is working ok 👌

@pqn
Copy link
Contributor

pqn commented Apr 23, 2024

FYI @fortenforge

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

No branches or pull requests

2 participants