Questions tagged [debugging]
Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.
400
questions
0
votes
0answers
171 views
ac-php “Wrong type argument: hash-table-p, nil” when calling company-complete
I'm using emacs 27 compiled from git sources and company for code completion.
I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
0
votes
1answer
120 views
How to edit code in the source window using realgud?
I've started using realgud:pdb for python debugging in emacs: https://github.com/realgud/realgud
When you begin a realgud session, it opens a command window and a source window.
Keys like 'n' and 'b'...
1
vote
1answer
53 views
How do I reset minibuffer when it seems to act like a regular buffer?
Occasionally the minibuffer acts somewhat like a "regular" buffer. By that I mean that when I type C-x o my cursor jumps to that buffer and then waits for me to type something.
But I can't write ...
1
vote
1answer
63 views
Error in custom eshell function (exit and close window)
I got the below function from an article on howardism.org. Its purpose is to exit eshell and close the corresponding window.
;; GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of ...
3
votes
1answer
3k views
Melpa - 'Failed to download melpa'
I am on a fresh install of emacs 26.3, and I have the following in my init.el:
(require 'package)
(add-to-list 'package-archives
'("melpa", "http://melpa.org/packages/") t)
(package-...
4
votes
3answers
283 views
How to trace the evaluation of all forms in the body of an Elisp function
When working with bash scripts, when something is not behaving the way you want it to, you can add a
set -x
and the next time you run the script you can see the methods and the sub methods being ...
0
votes
0answers
40 views
How to eliminate emacs -Q startup lag
I'm trying out emacs. With no .emacs file and starting emacs 26.1 with emacs -Q on Debian 10, it takes two seconds for the welcome screen to show up. Before the welcome screen, there is a message "...
2
votes
1answer
384 views
How to enable Backtrace?
I'm following the tutorial's "Making error": reproduced in the screenshot below. The manufactured error does not open the Backtrace window as it should. The same page says "It is possible to prevent ...
2
votes
1answer
177 views
sudden let-alist feature failure
This morning, I wake up and restart my Emacs.app (26.3 GNU Emacs but the emacsformacosx.com version, from brew cask) and get stuck at this:
Eager macro-expansion failure: (error "Loading file /Users/...
6
votes
0answers
1k views
How to debug C++ (dap-mode + LLDB or GDB)
I want to use dap-mode to debug a C++ code. Until now I followed instructions dap-mode (LLDB) and lldb-vscode. I further enabled the mode and UI via
(dap-mode 1)
(dap-ui-mode 1)
When I execute dap-...
0
votes
1answer
35 views
eval-expression on (setq helm-debug t) does not change describe-variable output
I'm running this version of Emacs:
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-23, modified by Debian
Installed on Ubuntu 19.10 via apt, and not built from source.
...
0
votes
0answers
97 views
Error running timer āac-update-greedyā: (void-variable org-link-types)
I very recently updated to Emacs 26.3 and Org 9.2.6, and am getting the above-mentioned error whenever I type "[[" in an org-mode buffer to type a hyperlink. Unsurprisingly, no error after turning off ...
1
vote
2answers
141 views
Installing helm-projectile results in “mapc: Lisp nesting exceeds āmax-lisp-eval-depthā”
Context
Linux Mageia 7.
Emacs 26.3 (vanilla install).
Problem
Reproducible steps:
(Re)Move the content of ~/.emacs.d/elpa.
Start emacs with no configuration (emacs -Q).
In the *scratch* buffer, ...
1
vote
2answers
51 views
how to prevent debugger from taking focus when you evalute lisp expresison with errors
How to reproduce:
write some faulty elisp code
press C-x C-e for eval-last-sexp
the debugger will appear (*backtrace* window) and take the focus of the cursor.
I'd like the focus to remain with ...
1
vote
0answers
48 views
Debugger breaks with Args out of range: “”, 0
When forge is installed on a system with no compiler, I sometimes get this error which breaks magit. I'd like to figure out the traceback for this error so I can add some proper error handling, ...
1
vote
1answer
509 views
How can I make emacsclient use an existing window in the current frame?
I'm on MS Windows, if that makes a difference.
My desired behavior:
There is only one frame visible at any time.
Visiting a file should use an existing window in that frame.
(This is the default ...
0
votes
0answers
101 views
list-packages has become very slow [duplicate]
After upgrading emacs from 24.4 to 26.3 on Windows, everything works fine except for one thing: the list-packages window has become horribly slow. Like, the cursor moves one second after the keystroke....
1
vote
2answers
106 views
Problem with giving inputs to a function programmatically
Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
3
votes
1answer
142 views
Unable to run nov-mode on Windows
disclaimer: I'm still relatively new to Emacs.
When I open an Epub on MS Windows, Emacs opens it using Zip-Archive mode and displays its content (which is normal afaik).
However, when I start nov-...
1
vote
1answer
281 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]{...
0
votes
1answer
105 views
How to check whether an optional param was input?
I have a command with an optional argument whose value is a number.
I need:
If no input argument then use default value (1000) else use input arg.
(random t)
(defun insert-random-number-at-point(&...
0
votes
2answers
48 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-...
1
vote
0answers
73 views
Unsure what to make of the following Emacs prompt to change my init file
Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen:
An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el':
...
1
vote
0answers
112 views
Impossible to answer y-or-n-p prompt in EXWM if X window is focussed
When a y-or-n-p question (e.g. The file you want to open is very large. Really want to open it?) pops up in the minibuffer while an EXWM buffer is focussed, I have no option to answer the question (...
2
votes
1answer
212 views
How to use edebug on a function
I am trying to debug a problem with the alert.el package using edebug. However, I am unable to step through the alert function.
I expect the debugger to enter the function and allow me to step ...
1
vote
1answer
140 views
Help? - Freeze up to 10 seconds happening on windows when exiting (kill-emacs) when desktop-save-mode and back-button-mode are enabled
I've spent a full working day trying to somehow resolve this, no luck, so I'm turning to this place hoping for help.
Recently I started experiencing freeze of something like up to 10 seconds when ...
0
votes
1answer
39 views
Making resize-mini-windows buffer-local while locally let-bound
Upon striking C-x s (save-some-buffers) or C-x C-c,
it report errorsin mini-buffer
Making resize-mini-windows buffer-local while locally let-bound.
Search the above errors but return no helpful ...
2
votes
2answers
332 views
problem with starting emacs via emacsclient
I have no problems starting Emacs from a terminal, while if I start it from the desktop (I have a desktop file containing emacsclient -ca '') Emacs starts with a putt-ugly font (see below a screenshot)...
1
vote
1answer
870 views
I see “Unnecessary call to āpackage-initializeā in init file” but can't find the call to `package-initialize`
I'm running Emacs from HEAD on Mac OS. I installed emacs-plus using the --HEAD argument with homebrew.
I did a whole grep for (package-initialize) in ~/.emacs.d/. The only reference I found to it is ...
0
votes
1answer
19 views
Remove the auto-generated marks from dired buffer
Upon invoking dired with C-x d, it display
Five of the files have already been marked automatically ,
Consult with the manual of operation on files
Strik U and * u to remove the mark but failed.
...
2
votes
1answer
170 views
Org agenda suddenly broken after installing org-mac-link
Org agenda is suddenly broken Symbolās value as variable is void: org-tag-group-re. How to fix it?
Diagnosis:
The problematic code seems to be this:
;; org-mac-link
(push (expand-file-name "~/....
0
votes
1answer
33 views
Skip the first breakpoint in entry file with Geben
Simple question, how can I run the XDebug debugger with Geben without it stopping execution on the first line of the entry file. What I would like is for the scripts to run normally but only stop on a ...
1
vote
1answer
58 views
elisp debugger jumping windows around
I'm trying to use the built-in elisp debugger, invoked by debug, and read the source code at the same time. Unfortunately, whenever I continue execution, with either c or d, the debugger jumps around ...
1
vote
1answer
118 views
Reading at buffer position 2767`
I got such a error report but confused with 'position 2767`
Debugger entered--Lisp error: (void-variable |)
eval-buffer(#<buffer *load*-518868> nil "/home/me/.emacs.d/lisp/init-company.el" ...
1
vote
1answer
30 views
Org Link to png file displays as wildcard rather than the image file itself
When I click on a link to a certain recent screenshot, this is shown rather than the image itself.
/Users/satibodhi/Creation/notes:
wildcard 愷{氵尸}.png
-rw-r--r--@ 1 satibodhi staff 2373 Jul ...
1
vote
0answers
339 views
IO Error writing filename: Input/Output error
Using emacs 24.3-22 on CentOS 7.6.1810. Writing to home directory on cifs mounted share.
When writing a file auto-saves will work, but actually clicking the save button or doing Save As gives IO ...
0
votes
0answers
37 views
Debugger entered--Lisp error: (wrong-type-argument wholenump -98) [duplicate]
I am working on Org 9.1.8 and emacs 26.1,
Every time I invoke Enter, it prompts
Debugger entered--Lisp error: (wrong-type-argument wholenump -98)
make-list(-98 nil)
lisp-indent-initial-state()...
1
vote
0answers
624 views
Symbol's function defintion is void: org-show-all
I get the above error when trying to archive my org agenda using C-c C-x C-a and/or C-c C-x C-s, according to instructions over here. My archive location is set the default.
UPDATE:
After following @...
0
votes
2answers
71 views
Symbol's value as variable is void: āyes-or-no-p
I have the following lines in my config file:
(fset 'yes-or-no-p 'y-or-n-p)
(setq confirm-kill-emacs āyes-or-no-p)
The latter line is what's throwing the error. I would like to be able to use 'y-or-...
0
votes
0answers
49 views
Org-table misaligns with Chinese data
Org table vertical lines do not align properly with Chinese data.
| ęØé”äø | ęØé”äŗ | ęØé”äø |
|----------+--------------+----------|
| äøęå蔨 | ē“ē·ęå°äøęŗ | åé樣å |
| é | ęÆäøęÆ | åé” |
| ...
0
votes
1answer
82 views
after-change-functions global value gets set to nil sometimes
I'm facing a strange issue and I don't know how to debug it. In the middle of work after-change-functions just gets set to nil. I use doom-modeline and it installs hooks to after-change-functions to ...
0
votes
0answers
35 views
org-mind-map unable to find flatten and dot command
I get the following error when running org-mind-map.
Paths the each are as follows:
$ which unflatten
/usr/local/bin/unflatten
$ which dot
/usr/local/bin/dot
How to tell org-mind-map to access ...
0
votes
1answer
153 views
Ditaa source code evaluated with no result
The code below evaluated successfully but ~/Downloads/foo.png is empty. A look at the downloads folder shows that no file has been generated. What went wrong?
#+begin_src ditaa :file ~/Downloads/foo....
0
votes
0answers
62 views
`scad-mode` (derived from CC Mode) hangs Emacs. How to debug/fix?
I have found that scad-mode.el, a derived mode from CC Mode, which can be found here:
https://github.com/openscad/openscad/blob/master/contrib/scad-mode.el
hangs emacs if I type
#(
into the window,...
2
votes
1answer
116 views
How can I debug a hang when debug-on-quit doesn't work?
I have a problem with haskell-mode where Emacs will hang every time I open up a Haskell file. Mashing Ctrl-g a few times will get the file opened.
So I would imagine setting debug-on-quit would allow ...
1
vote
1answer
212 views
can I use .dir-locals.el to set a default mode for files, and still allow dired?
I have a directory that is all little shell code snippets for being sourced.
Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly:
((nil . ...
0
votes
0answers
153 views
org-insert-link sometimes produces “wrong type argument: stringp, nil” after prolonged use of emacs
It usually happens after a couple of days of use that C-c C-l / org-insert-link inside .org files does not allow me to insert new links anymore.
What I want to do is interactively insert link ...
0
votes
0answers
60 views
Why an error when calling a command in a specific buffer?
Q: why do I get errors when calling a command from a specific buffer, but not in any other buffer?
Scratch all of what I had previously said about
call-interactively (see strikethrough below for ...
0
votes
1answer
85 views
Org-ref not communicating with Tex-live?
Org-ref cannot tell that I have biblatex-caspervector installed.
Is this because of some packages that I missed?
0
votes
0answers
92 views
org-mode internal link works only in some cases
I have an .org document with the following structure.
* Headline 1
This is some text
* Headline 2
:Custom_id: h2
This is heading number two
** Sub heading 1
<<target>>
** Sub heading ...