Open hegde-atri opened 1 year ago
Experiencing the same problem mentioned above. I'm using DoomEmacs too, so I suspect (?) it could potentially be framework-related. No completion showed whatsoever, except sometimes when inside Normal Mode, as @hegde-atri already mentioned. I'd love to use Codeium on Emacs too, as it already works flawlessly on my nvim configuration.
got similar issue but probably different
found this in codeium-log
https://github.com/Exafunction/codeium/releases/download/language-server-v1.2.52/language_server_linux_arm.gz 6.01 secs status: 200
/nix/store/cs6ps5m9b7sk4bf8wbihwaqm8xyscis3-emacs-28.2/bin/emacs: /home/<username>/.cache/doom/codeium/codeium_language_server: No such file or directory
Process codeium exited abnormally with code 127
then, also tried to launch app manually
> . /home/<username>/.cache/doom/codeium/codeium_language_server
fish: Job 1, '/home/<username>/.cache/doom/codei…' terminated by signal SIGSEGV (Address boundary error)
(Vmware VM on M1 with NixOS 23.05)
@strobe we don't support NixOS directly, but you can try something like what's mentioned in this PR: https://github.com/Exafunction/codeium.vim/pull/149
Anyone got this working with doom emacs?
I have found that it doesn't work when I have eglot enabled. When I turn it off it works as expected, trying to get both to work together.
@fortenforge so how do you add anything to the default command? I have the same issue on NixOS, and steam-run fixes the SIGSEGV error.
https://github.com/Exafunction/codeium.el/blob/main/codeium.el#L371
you probably want to modify this line to add "steam-run"
I added "steam-run" at the 4th line and it worked, thanks
(codeium-def codeium-command (api state)
(unless (codeium-state-manager-directory state)
(setf (codeium-state-manager-directory state) (make-temp-file "codeium_" t)))
`("steam-run",(codeium-get-config 'codeium-command-executable api state) ;; here
"--api_server_url" ,(codeium-get-config 'codeium-api-url api state)
"--manager_dir" ,(codeium-state-manager-directory state)
"--register_user_url" ,(codeium-get-config 'codeium-register-user-url api state)
,@(if (codeium-get-config 'codeium-enterprise api state) '("--enterprise_mode"))
"--portal_url" ,(codeium-get-config 'codeium-portal-url api state)))
Configuration
Using Doom Emacs (latest version using doom upgrade) and Emacs 29.0.91 In packages.el:
(package! codeium :recipe (:host github :repo Exafunction/codeium.el"))
In config.el:Trying this out, the completion system does something, but I cannot accept it the completion nor can I view it. It only appears in normal mode (nothing during insert mode).![image](https://github.com/Exafunction/codeium.el/assets/51457719/ba8a819a-f82e-4db1-bb1e-0ccab841b271)
I have tried quite a few keybinds to try and accept the suggestions. Any tips or feedback on anything I did wrong?