Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-copilot: Error loading autoloads #16658

Closed
komali2 opened this issue Nov 13, 2024 · 1 comment
Closed

github-copilot: Error loading autoloads #16658

komali2 opened this issue Nov 13, 2024 · 1 comment

Comments

@komali2
Copy link

komali2 commented Nov 13, 2024

Description :octocat:

I'm trying to install the Github Copilot layer: https://develop.spacemacs.org/layers/+web-services/github-copilot/README.html#install

When I install per the instructions and restart spacemacs, I get the following error:

Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/user/.emacs.legacy/elpa/30.0/develop/copilot-20240907.62759/copilot-autoloads)

I've confirmed the copilot directory exists. It looks like this:

  -rw-r--r--  1 user user 1219 Nov 13 15:17   packages.el
  -rw-r--r--  1 user user  695 Aug 19 13:54   README.org

No copilot commands are available.

Reproduction guide 🪲

  • Have github-copilot in layer list
  • Start emacs
  • Observe the error in the message buffer
  • Observe that no github copilot mode commands are available

Observed behaviour: 👀 💔

An error in the message buffer.

Expected behaviour: ❤️ 😄

Github copilot commands are available.

System Info 💻

  • OS: gnu/linux
  • Emacs: 30.0.50
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. d52d633)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(ruby php nginx csv lua emacs-lisp helm (lsp :variables lsp-idle-delay 0.5)
      treemacs rust yaml go
      (auto-completion :variables auto-completion-return-key-behavior 'nil
                       auto-completion-tab-key-behavior 'cycle
                       auto-completion-enable-sort-by-usage t
                       auto-completion-enable-help-tooltip 'manual
                       auto-completion-private-snippets-directory nil)
      better-defaults git markdown
      (org :variables org-directory "~/Org" org-projectile-file
           "~/Org/projects.org" org-enable-roam-support t
           org-enable-org-journal-support t org-roam-directory "~/Org/notes/"
           org-roam-index-file "~/Org/notes/20200526213916-index.org"
           org-default-notes-file (concat org-directory "/inbox.org")
           org-roam-v2-ack t org-enable-hugo-support t org-startup-indented t
           org-refile-targets
           '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
           org-outline-path-complete-in-steps nil org-refile-use-outline-path t
           org-startup-with-inline-images t org-image-actual-width '(300)
           org-enable-roam-ui t org-enable-roam-protocol t)
      (shell :variables shell-default-height 30 shell-default-position 'bottom)
      (spell-checking :variables spell-checking-enable-by-default nil) c-c++
      semantic syntax-checking version-control javascript python sql html
      (typescript :variables typescript-indent-level 2)
      (node :variables node-add-modules-path t) racket tern common-lisp colors
      react (svelte :variables svelte-backend 'lsp) tree-sitter github-copilot)
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Backtrace 🐾

<<BACKTRACE IF RELEVANT>>
@komali2
Copy link
Author

komali2 commented Nov 13, 2024

This error occurs if you have installed the copilot.el package previously manually, so it exists in your elpa directory but not in such a way that spacemacs put it there and did some magic.

rm -r /home/user/.emacs.legacy/elpa/30.0/develop/copilot-20240907.62759 , as in, deleting the copilot elpa directory,

and restarting emacs resolves the issue.

@komali2 komali2 closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant