Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Copilot stopped working
Forum Updated to NodeBB v4.3 + New Features

Copilot stopped working

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
9 Posts 3 Posters 884 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #8

      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

      mzimmersM 1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        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 ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #3

          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').
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            This seems to apply to VS Code.
            I don't know wether it would be the same stuff in the case of Qt Creator.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #5

              copilot works here with Qt Creator 15 on macOS.

              copilot.png

              SGaistS 1 Reply Last reply
              0
              • cristian-adamC cristian-adam

                copilot works here with Qt Creator 15 on macOS.

                copilot.png

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @cristian-adam do you also have a firewall as @mzimmers has ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #7

                  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?

                  1 Reply Last reply
                  0
                  • cristian-adamC Offline
                    cristian-adamC Offline
                    cristian-adam
                    wrote on last edited by
                    #8

                    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

                    mzimmersM 1 Reply Last reply
                    2
                    • cristian-adamC cristian-adam

                      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

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by mzimmers
                      #9

                      @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.

                      1 Reply Last reply
                      2
                      • mzimmersM mzimmers has marked this topic as solved on

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved