Copilot stopped working
-
Hi all -
I just noticed that Copilot isn't doing anything for me anymore. It was working as of a couple days ago. I signed out and back in, and restarted Creator. Even updated to Creator 15.0.0. I'm getting none of the editor help I used to get. Anyone else seeing anything like this?
mz
-
Since node.js is used by Qt Creator, have a look at https://stackoverflow.com/questions/29283040/how-to-add-custom-certificate-authority-ca-to-nodejs
-
Hi,
Just in case, did you try to start creator from the command line with all logs activated to see if there's any message related ?
-
hi @SGaist I just now tried that - no messages at all. In Creator's "General Messages" section, however, I did get this:
LanguageClient Copilot: Error: [ghostText] Error on ghost text request: FetchError: self-signed certificate in certificate chain
Some searching revealed that the culprit might be my company's IT department.
There's a posted solution involving the use of win-ca, but I don't know how to invoke the 2nd step:
1. Just say npm install --save win-ca 2. Then call require('win-ca').
-
This seems to apply to VS Code.
I don't know wether it would be the same stuff in the case of Qt Creator. -
copilot works here with Qt Creator 15 on macOS.
-
@cristian-adam do you also have a firewall as @mzimmers has ?
-
Evidently my IT department is somewhat aware of this issue, though they don't know how to fix it for Creator (I'm the only one here who uses it). Here are their suggestions for Android Studio:
Android Studio Open Android Studio and navigate to Preferences > Tools > Server Certificates. Click the + button to add a new certificate. Select and import the rootcaCert.cer file. Restart Android Studio for the changes to take effect.
Any ideas on how this might translate to Creator?
-
Since node.js is used by Qt Creator, have a look at https://stackoverflow.com/questions/29283040/how-to-add-custom-certificate-authority-ca-to-nodejs
-
@cristian-adam that link looks very promising. It looks like there are a few variations on the proposed solution -- any idea which one I should use?
I'm running on Windows 11.
EDIT:
Problem solved.
set NODE_EXTRA_CA_CERTS=C:\ProgramData\Netskope\stagent\data\rootcaCert.cer
Or perform the equivalent from the Windows app to set environment variables.
The standard installation of Netskope only seems to include files in .pem.enc format, so my IT guy had to give me the .cer file. But...it works!
Thanks to all who looked.
-
M mzimmers has marked this topic as solved on