zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.13k stars 41 forks source link

Suggestion does not show for some language #34

Closed y9c closed 2 years ago

y9c commented 2 years ago

After setup this plugin. Copilot works properly in one of my machines. But in WLS2 of windows system. Copilot dose not output any suggestions for some of the languages (python, perl, etc.), while other language works properly.

asciicast

y9c commented 2 years ago

This bug should be in copilot.lua or copilot.vim side.

The wasm in https://github.com/zbirenbaum/copilot.lua/tree/master/copilot/dist might cause the error. Language with wasm file can not start copilot correctly.

yngwi commented 1 year ago

Hi, I'm having a similar problem: most languages seem to work fine (for instance php) but I can't get suggestions for Javascript / Typescript. Is there anything I can do on my end to fix this? Thanks!

zbirenbaum commented 1 year ago

Hi, I'm having a similar problem: most languages seem to work fine (for instance php) but I can't get suggestions for Javascript / Typescript. Is there anything I can do on my end to fix this? Thanks!

There were some updates today that might resolve this, try syncing and see. If it's still broken open an issue in copilot.lua

willian commented 1 year ago

I synced and it is not working for me as well. It works with .lua, but not with JavaScript / TypeScript files

zbirenbaum commented 1 year ago

@willian @yngwi Make sure the node version you use with copilot.lua 16. 9/10 times that is the problem, higher versions don’t work properly.

yngwi commented 1 year ago

Indeed it was my problem. now everything works just fine.

catgoose commented 1 year ago

@willian @yngwi Make sure the node version you use with copilot.lua 16. 9/10 times that is the problem, higher versions don’t work properly.

Would there be problems using mode 14.20? I can't get copilot suggestions to populate and I wonder if that's the issue.