Closed maverick1872 closed 7 months ago
Did you try :Copilot status
?
Unfortunately from what I can tell that's only useful in the situation where Copilot is successfully started. In this instance I have a project that's on Node 14.x and so when loading nvim it's the nvm node binary that is found first. Of course this is a version of node that's not supported. As such Copilot would not start at all. To resolve I had to explicitly tell copilot (thanks for callout in readme btw) via it's setup configuration to use my system node binary via the following:
require('copilot').setup {
copilot_node_command = os.getenv 'SYSTEM_NODE_PATH',
}
The above scenario should be reproducible just by setting node version to something <18 and attempting to start Copilot I'd imagine.
Problem
Spent some time diagnosing an issue today. Come to find out it was just due to an unsupported node version in a project that caused
copilot.lua
to fail to startup. This failure was not immediately recognizable unfortunately.Desire
Introduction of some health checks that could be surfaced via
:checkhealth Copilot
to do some sane precondition checks to validate environment is healthy for Copilot's use.