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

Can't install dap-mode package on Emacs 29.4 #815

Open
yogeshwani opened this issue Nov 20, 2024 · 6 comments
Open

Can't install dap-mode package on Emacs 29.4 #815

yogeshwani opened this issue Nov 20, 2024 · 6 comments

Comments

@yogeshwani
Copy link

yogeshwani commented Nov 20, 2024

Hi

Trying to install the dap-mode package using M-x package-list-packages and upon saying 'y' on the prompt to install I get an error on Emacs saying.

Symbol's value as a variable is void : setq

Can some help me here as I don't know what is happening ?
Thanks!

@yogeshwani
Copy link
Author

Any update on this please @yyoncho ?

@sergeyklay
Copy link

Have you tried a clean installation of Emacs? For example, do you observe any issues when starting Emacs with the -Q parameter? I installed dap-mode without any problems with my Emacs configuration.

@yogeshwani
Copy link
Author

yogeshwani commented Nov 25, 2024

Hi @sergeyklay

Thanks for your reply. I have now installed Ubuntu 24.04 on a machine and did sudo apt install emacs which gave me version 29.3.

I then used the init.el from my repo at https://github.com/yogeshwani/emacs_config/blob/main/init.el
Upon starting emacs with -Q parameter I don't see any issues. However, I do get the following warnings


Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/yasnippet-20241013.1557/yasnippet-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/pyvenv-20211014.707/pyvenv-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/posframe-20241023.319/posframe-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/pfuture-20220913.1401/pfuture-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/lsp-ui-20240514.1943/lsp-ui-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/lsp-docker-20240419.1428/lsp-docker-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/highlight-indentation-20210221.1418/highlight-indentation-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/frame-local-20180330.940/frame-local-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/elpy-20240109.1445/elpy-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/company-box-20240320.921/company-box-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/clang-format-20241019.2151/clang-format-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/cfrs-20220129.1149/cfrs-autoloads)
Error loading autoloads: (file-missing Cannot open load file No such file or directory /home/yogesh/.emacs.d/elpa/avy-20241101.1357/avy-autoloads)

Also, I get the error as shown in the image below.
image

Thanks again for all your time and help!

@yogeshwani
Copy link
Author

Any idea why this is failing @yyoncho ??

@sergeyklay
Copy link

sergeyklay commented Dec 5, 2024

@yogeshwani As expected, the issue isn't with dap-mode but with your configuration. I'd suggest fixing the following mistakes and giving it another shot:

@@ -37,7 +37,6 @@
 (require 'package)
 
 (setq package-archives '(("melpa" . "https://melpa.org/packages/")
-                         ("org"   . "https://orgmode.org/elpa/")
                          ("elpa"  . "https://elpa.gnu.org/packages/")))
 
 (package-initialize)
@@ -196,7 +195,7 @@
 (use-package company
   :ensure t
   :hook ((emacs-lisp-mode . (lambda ()
-			      setq company-backends '(company-elisp))))
+			      (setq company-backends '(company-elisp)))))
          (emacs-lisp-mode . company-mode)
   :config
   ;; this disables the M-<number> key to select from the drop down
@@ -299,12 +298,12 @@
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )
-
+
 ;;;### (autoloads nil nil ("elpa/rainbow-mode-1.0.6/rainbow-mode-autoloads.el"
 ;;;;;;  "elpa/rainbow-mode-1.0.6/rainbow-mode-pkg.el") (0 0 0 0))
 
 ;;;***
-
+
 ;;;### (autoloads nil "elpa/rainbow-mode-1.0.6/rainbow-mode" "elpa/rainbow-mode-1.0.6/rainbow-mode.el"
 ;;;;;;  (0 0 0 0))
 ;;; Generated autoloads from elpa/rainbow-mode-1.0.6/rainbow-mode.el

@yogeshwani
Copy link
Author

@sergeyklay

Thanks for taking the time and coming back to me. I will update my config and try this out. Thanks a lot again!

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

2 participants