As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Emacs Lisp error: (void-variable Alias)

How can I figure out where the problem exists from the following Emacs Error? Debugger entered--Lisp error: (void-variable Alias) eval-buffer(#<buffer *load*-879707> nil "/home/hagbard/...
0 votes
2 answers
35 views

How do you troubleshoot an .el file not loading even though it's on load-path filepath?

I've copied a file to a path that's definitely listed in load-path symbol. But the file doesn't get loaded when running emacs with --debug-init flag. How would you find out what causes it? It uses ...
0 votes
2 answers
99 views

Scripted bookmark jump not working after startup

Add the following to .spacemacs: (defun my-bookmark-set (char) (interactive "cPlease enter a bookmark name to set: ") (bookmark-set (char-to-string char))) (defun my-...
0 votes
1 answer
35 views

Trying to auto load these packages in Clojure files, they worked the first time but don't work anymore

I have the following function to auto start raindow-delimters and paredit (defun my-lisp-hook () (enable-paredit-mode 1) (rainbow-delimiters-mode 1)) (add-hook 'clojure-mode-hook 'my-lisp-hook) ...
0 votes
1 answer
243 views

How can we get input using emacs?

In order to compile my lua code i use this config (defun lua-main-compile () "use lua to compile my lua code" (interactive) (compile "lua main.lua")) In my lua code ...
0 votes
1 answer
28 views

Emacs GNUS Fullscreen Article, Args out of range: 0

I'm trying to get GNUS to show article fullscreen after select on summary screen. I found out about gnus-buffer-configuration variable where is configuration of how screen should by displayed. I also ...
1 vote
1 answer
221 views

Loading charset map: No such file or directory, JISX0208

Trying to save files I have suddenly started recieving the following error: Loading charset map: No such file or directory, JISX0208 In *Messages* this is reported as: find-coding-systems-region: ...
5 votes
1 answer
133 views

Unable to load color "#FFFFFF" (mouse-face)

Using Emacs 27.1 (mac port, BigSur), I get a strange behavior when I set the mouse face color using an hexadecimal description. Running emacs -Q -l show-bug.el, with show-bug.el being: (font-lock-mode ...
0 votes
0 answers
29 views

Random warning popping up occasionally when using eshell

I occasionally get this warning while running eshell: Warning (comp): tramp-loaddefs.el.gz:745:2478: Warning: reference to free variable ‘tramp-remote-path’ and was wondering how to fix it. According ...
0 votes
1 answer
8 views

helm-projectile-recentf, "Can't rotate non image file"

When I hit M-r to get an exact match, helm-projectile-recentf, I get: Debugger entered--Lisp error: (cl-assertion-failed ((and (file-exists-p file) (string-match (image-file-name-regexp) file)) "...
0 votes
1 answer
57 views

code execution issue in org mode on windows

I issue emacs -Q yes.org where yes.org is (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) #+begin_src python :results output print(2) #+end_src I first evaluate the loading ...
1 vote
1 answer
306 views

the following functions might not be defined at runtime: lsp-format-buffer, lsp-organize-imports function ‘dap-go-setup’ is not known to be defined

I 've below emacs init file config setup I'm getting below error in the emacs startup. I don't know what might be the root cause of the issue the following functions might not be defined at runtime: ...
1 vote
1 answer
142 views

dired-do-delete fails to delete file

In Dired, with point on a file name, I invoke dired-do-delete and confirm. The line disappears, as it normally does when a file is deleted. But the file is not in fact deleted, as I can see by e.g. ...
0 votes
1 answer
46 views

How to debug emacs lisp? (e.g. Symbol's value as variable is void: n)

When I start Emacs, I get the error message: Symbol's value as variable is void: n I am pretty sure, it is just a typo in my init.el, but how can I find it? Shouldn't there be a debugger, which tells ...
1 vote
1 answer
84 views

"Invalid version list `(4 5 -4 414)'" when running `M-x package-list-packages`

When following a suggestion for solving another problem, I'm doing M-x package-list-packages. However, that gives me the error message Invalid version list `(4 5 -4 414)'. What does this mean, and ...
0 votes
1 answer
122 views

I got an error: Package 'tabbar-20160524' is a system package,not deleting

I installed spacemacs using "git clone https://github.com/syl20bnr/spacemacs.git ~/spacemacs/.emacs.d" but I got an error: Package 'tabbar-20160524' is a system package,not deleting.... When I ...
1 vote
1 answer
118 views

How to debug my init.el if --debug-init does not help?

Despite having --debug-init in .xinitrc (exec dbus-launch --exit-with-session emacs --debug-init), I'm not getting any leading details on this error. Error in dotspacemacs/user-config: Symbol’s value ...
0 votes
1 answer
115 views

emacs 26.1 "Symbol’s function definition is void: bibtex-completion-candidates-formatter"

I have updated to Emacs 26.1. and reinstalled all packages. When running helm-bibtex, the bibliographies are loaded, but then the process terminates with the following error message: helm-bibtex-...
0 votes
1 answer
360 views

emacs org-mode error during installation in windows

While I try to install org-mode using M-x package-install RET org RET, I am getting the following error. I am new to both emacs and org-mode and using Windows 10. Debugger entered--Lisp error: (void-...
1 vote
1 answer
1k views

Debugging and setting breakpoints in Java code built with Gradle

I am using Emacs (v24.4) for writing Java applications. I have created a Java library that I am building using Gradle (v2.2) and testing with Spock Framework where I have all my test cases. I would ...
3 votes
1 answer
764 views

trace-redisplay: How to see stderr from within Emacs?

When building Emacs, I use ./configure --enable-checking='glyphs' so that I can take advantage of some of the built-in tools such as M-x trace-redisplay. The redisplay debugging messages can be seen ...
0 votes
0 answers
47 views

Emacs breaks entire system, can't find log

I'm having a real problem with Emacs in that it keeps breaking my entire system in irregular intervals. More precisely, at some point my screen starts to go black, then flickers back up again, then ...
0 votes
2 answers
141 views

Font issues using monokai on emacs 27.2 on WINDOWS 10

Hello guys i am experiencing some font issues using the theme monokai on windows 10 and emacs 27.2. Emacs seems to compile everything quite nice even there are not error and warnings. However, when i ...
0 votes
1 answer
29 views

debugging helm-bibtex cannot open PDF with the default emacs viewer

I cannot get helm-bibtex open pdfs from the helm-bibtex buffer with all bibliography nicely listed in an organized view showing which reference has a pdf or not. I usually get this view by M-x helm-...
2 votes
1 answer
277 views

Line numbers in backtrace?

I'm working on debugging this backtrace (from Emacs bug #12145, shortened): Debugger entered--Lisp error: (wrong-type-argument "markerp nil") signal(wrong-type-argument ("markerp nil&...
3 votes
1 answer
506 views

toggle-debug-on-error only works for the first error, how can i fix this?

when I enable debug on error it works perfectly the first time. when I go and fix my error and rerun my function debug on error no longer triggers for new errors. Is there a way to enable it so ...
0 votes
0 answers
14 views

How to debug "Don’t know how to make a localized variable an alias" errors at startup?

Background: my company provides (confidential) elisp libraries for editing source code in several languages, including TypeScript. I added some lines to load these libraries to my init.el: (require '...
1 vote
1 answer
80 views

How to log backtrace to a file instead of popping it up and blocking following backtraces

With emacs if there is a backtrace buffer open, new backtrace is ignored. I find it is unconvenient when I am trying to find out which function/hook changes a variable. I use debug-watch as described ...
0 votes
1 answer
71 views

inludegraphics macro does not ask for width etc. but only for llx, lly

Using GNU Emacs 26.3, I have a tex file with \usepackage{graphicx} and AUCTeX enabled. However, inserting a includegraphics macro does not prompt for the optional arguments defined in graphicx.el ...
1 vote
0 answers
73 views

dap-mode: Initialize request failed: "program" property is required for launch

I am trying to use LLDB to debug my rust code. To edit the code, I use rustic-mode with lsp-mode, and to perform debugging I am trying to use dap-mode. Currently, this is how I initialize dap-mode in ...
0 votes
0 answers
40 views

errors related to agenda

#+startup: logdrawer #+SEQ_TODO: URGENT(u!) TODO(t!) SOMEDAY(s!) | DONE(d@) CANCEL(c@) * Task ** TODO Pay bill DEADLINE: <2023-02-20 Mon> :LOGBOOK: - State "TODO" from ...
0 votes
1 answer
27 views

Syntax issue using `add-to-list`

This set up ignores the custom-set-variables statement and generates the warning reproduced below. If I uncomment the first statement, however, it works. This is probably a novice's issue... Is there ...
0 votes
1 answer
59 views

Emacs on MacOS 12.5+: Commands failed with 127

I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS ...
1 vote
0 answers
103 views

`add-load-path!` relative directory in Doom Emacs defaults to `~/.emacs.d/lisp` instead of ~/.doom.d/ where `config.el` sits

As described in the title above, the following code in config.el: (add-load-path! "lisp") adds "home/user/.emacs.d/lisp/lisp" to load-path instead of "/home/sati/.doom.d/lisp&...
2 votes
1 answer
973 views

Non-hex digit used for Unicode escape error when setting org-latex-classes

When I try to set org-latex-classes with the following code: (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \usepackage{xeCJK} %\usepackage[heading]{...
2 votes
1 answer
865 views

How to use `next-error` and `previous-error` without the compilation buffer visible

I want to be able to use grep to find matching lines and to be able to jump through them using next-error and previous-error however I don't feel the need to have the match list on screen and it takes ...
0 votes
1 answer
19 views

How to stop evaluating within .emacs for debugging purposes?

I think I have a problem in my .emacs file and would like to place in it some function that would cause emacs to stop evaluating. I could then start a binary search to see where the problem is ...
3 votes
2 answers
126 views

Get asked to confirm safe theme forever

I created a theme which I stored in ~/.emacs.d/themes/, added this directory to custom-theme-load-path, and put (load-theme "the-theme.el") in my init.el. Now restarting emacs, I get prompted whether ...
7 votes
1 answer
1k views

Packages I never knew they existed cause problems

I'm using Kubuntu 22.04 and I tried to configure my doom-emacs Installation. Then I got these weird error-messages and couldn't figure out how to fix them. So I uninstalled doom and emacs completely ...
2 votes
1 answer
311 views

Emacs hangs/crashes when opening files with special unicode characters, does not crash with -nw

I'm using Arch Linux, i3wm and emacs 27.1, and I'm having an issue where emacs hangs when opening certain files, but I can't seem to find a pattern as to which files cause the hang. When emacs hangs, ...
0 votes
1 answer
41 views

Emacs Social Sciences Starter Kit - Not Loading

I am trying to install Kieran Healy's Emacs Social Sciences Starter Kit. I think I followed the instructions meticulously (details below) but – to cut to the chase – when I launch emacs, I get vanilla ...
5 votes
1 answer
1k views

How to get a stack trace for "Eager macro-expansion failure:"

On startup I'm getting this message: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2) How can I find whats causing the warning? --debug-init doesn't do anything in this case as ...
1 vote
0 answers
215 views

Error after upgrade

I upgraded doom yesterday. Unfortunately, since then I get the following error whenever I doom run : Warning (initialization): An error occurred while loading ‘/Users/*****/.emacs.d/.local/etc/@/init....
4 votes
3 answers
1k views

"Symbol’s value as variable is void: org-priority-highest" using org-agenda

While I'm trying to access any of the org-agenda options or commands! I always get this error Symbol’s value as variable is void: org-priority-highest and the list shows nothing even though I've set ...
3 votes
1 answer
319 views

Wrong type argument: filenamep error after switching to Emacs v28

I use emacs in -nw mode on a computer cluster, and was using Emacs v25. I asked my sys admin to install a newer version (27 or higher) because global-display-line-numbers-mode was apparently not ...
1 vote
2 answers
92 views

Editing Go(lang) code freezes PC

Everytime I open a golang file and start editing, (even a file with just the following in) package models import "github.com/gofrs/uuid" type Client struct { ID uuid.UUID `...
0 votes
0 answers
29 views

Setting breakpoints using emacs python pdb

So I often use the emacs pdb tool (started with M-x pdb) to debug python code. There is one small issue I don't know how to deal with. When I start pdb to run a specific file the file appears to open ...
6 votes
2 answers
1k views

How to write assertions

How does one write assertions in Emacs Lisp? I know that cl-macs.el has cl-assert and cl-check-type, but I'm wondering if there's a native Emacs way to perform something that basic.
5 votes
1 answer
164 views

Function add-variable-watcher does not watch "last-command" variable

I have added a watcher function to watch the last-command variable. (defun my-watch (symbol newval op where) (message "Hello")) (add-variable-watcher 'last-command #'my-watch) The ...
0 votes
1 answer
44 views

Why is debug-on-error always enabled at startup?

Whenever I start up emacs, debug-on-error is enabled. I can't figure out why, there's nowhere where I explicitly enable it. Is there any way for me to figure out where it's coming from?

1
2 3 4 5
11