Questions tagged [debugging]
Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.
514
questions
0
votes
0
answers
37
views
How to debug a bug in cl-generic.el?
While working on developing a fork of inf-ruby such as to use EIEIO and cl-generic in an approach, I've discovered what appears to be a bug in cl-generic.el.
I'm testing this presently with GNU Emacs ...
0
votes
1
answer
62
views
context-menu-functions changing
Running emacs 28.1 whenever I use a mode derived from text-moe or prog-mode the value of context-menu-function is replaced. What is doing this and how can I stop it?
The default is
(context-menu-undo
...
1
vote
0
answers
140
views
How to Debug Rust Executable with arguments in DAP-mode?
I did install dap-mode and configured it for Rust as instructed here and there. Although it looks like it is working, I have no idea of how to debug the executable with passed arguments.
0
votes
0
answers
63
views
Side effects of global-set-key?
I have had (global-set-key [f9] 'compile) in my Emacs init file for many years. With this setup, hitting [f9] and doing M-x compile RET should run the same commands the same way, right?
But today I ...
1
vote
1
answer
78
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 ...
3
votes
1
answer
70
views
How to debug reftex not working with multiple files
I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
1
vote
2
answers
91
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 `...
2
votes
1
answer
66
views
org-publish: Wrong number of arguments: plist-get
I tried to configure org-publish with some html variables, but I'm getting this error let: Wrong number of arguments: plist-get, 3. I've debug-on-error enabled but doesn't show up the minibuffer.
This ...
0
votes
0
answers
90
views
"let: Symbol's value as variable is void" when loading .dir-locals
I have the following .dir-locals:
((nil . ((eval . (let ((project-root-dir (expand-file-name (locate-dominating-file default-directory ".dir-locals.el"))))
(defun tokenize-...
2
votes
0
answers
41
views
"fileloop-next-file: Read error: Is a directory" when running project-query-replace-regexp
Hitting this error when trying to run project-query-replace-regexp. The project I'm working under has git submodules, if that could cause any issues? (Redacted some of the directories and search ...
2
votes
0
answers
52
views
Emacs sometimes freezes from PDFs
I'm currently using Emacs 27.1 running on Ubuntu 21.10. The problem I have is Emacs stop responding from time to time, but this only occurs when I open a PDF file or while I'm reading PDF books (...
0
votes
0
answers
252
views
Bug in emacs evil?
I'm running into some trouble with emacs evil.
I get the error
(wrong-number-of-arguments (3 . 4) 2)
and when I run debug I get the following message:
Debugger entered--Lisp error: (wrong-number-of-...
0
votes
1
answer
65
views
While running "package-refresh-content" show me this. Why? Emacs 28.1
Debugger entered--Lisp error: (error "Location https//elpa.gnu.org/packages/ is not a url nor an absolute file name")
signal(error ("Location https//elpa.gnu.org/packages/ is not a ...
0
votes
0
answers
173
views
"Wrong type argument" adding projects to treemacs
I'm just setting up Treemacs for the first time. I am using Emacs' built in project management (not Projectile) and ideally want Treemacs to always show only the current project.
Currently, if I run ...
1
vote
1
answer
1k
views
How does one fix the Warning (initialization): An error occurred while loading error?
What does this error mean:
Warning (initialization): An error occurred while loading ‘/Users/brandomiranda/.emacs’:
Wrong number of arguments: (3 . 4), 2
To ensure normal operation, you should ...
0
votes
1
answer
285
views
"Invalid read syntax: . in wrong context"
I wanted to add a new display setting to init.el file, but didn't like it and removed the line. Now when I start emacs I get this error:
Invalid read syntax: . in wrong context
Here is the init.el ...
1
vote
1
answer
218
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: ...
1
vote
0
answers
29
views
What is the preferred method of submitting a bug report on macOS?
On a Mac, when an application dies, a GUI window comes up with a place to type in some stuff if you want to and then hit "Report". Something goes off somewhere to someone but I'm 99% sure ...
0
votes
1
answer
83
views
Identification of emacs error reporting invalid read syntax ")"
Have been debugging a minor-mode I am writing. After much torture spend locating the problem, I have now narrowed things down to the following function. Still, I have not been able to fix the ...
0
votes
2
answers
198
views
Tools for locating and debugging errors
I am getting the following error, but am finding it difficult to locate the problem. Are there any tools for debugging in such instances?
Warning (initialization): An error occurred while loading ‘/...
1
vote
1
answer
24
views
doremi: previous event triggering an error
In this example, the function doremi https://www.emacswiki.org/emacs/DoReMi seems to be encountering a problem due to the previous input. Based upon that assumption, I have tried calling discard-...
0
votes
0
answers
40
views
What is "member" and why does it expect to find an `org` directory in my home directory?
Faced with some org-agenda problems, I tried this:
Blow away all emacs config that I know about
.emacs
.emacs.d
.spacemacs
.spacemacs.d
Follow spacemacs install docs from scratch (checking out ...
0
votes
0
answers
103
views
Void variable company-active-map
I am getting a weird void variable error despite using what I thought would be a very appropriate with-eval-after-load.
Here is my company config.
(use-package company
:commands (company-complete-...
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 ...
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 ...
1
vote
0
answers
28
views
How to trigger debugger on emacsclient error
I asked in a prior question about what might be causing my emacsclient widows to shutdown immediately with the following output on stderr: "ERROR: Beginning of buffer". I have tried to use ...
0
votes
1
answer
70
views
Different behavior between M-! and a terminal?
I'm writing a major mode to interface with a popular but clunky Monte Carlo program. I've also written a script that makes the interface a little more tolerable, and have written the following simple ...
0
votes
0
answers
126
views
Debugging Issue: After Updating Emacs Input Lags Massively
After updating Emacs, I am seeing incredibly lagging input performance. I thought the slowness was due to LSP, but it seems to persist even when I disable LSP-mode. Unless I disable all major and ...
0
votes
1
answer
155
views
dap-mode cpptools gives error `VTerm needs module support`
I am trying to use dap-mode to debug my C++ code.
My debug template looks like:
(dap-register-debug-template
"cpptools::Run Configuration"
(list :type "cppdbg"
:request ...
0
votes
3
answers
97
views
Why am I getting this error, saying that a comma is not a function?
In a related thread https://emacs.stackexchange.com/a/34336/2287, a string (containing JSON data) is converted using json-read-from-string. The value returned in that example looks like this:
((1 ...
0
votes
0
answers
27
views
Emacs displays letters and spaces as newlines until a non-letter/space char is entered
I am editing a C file, and it suddenly starts moving to a new line instead of showing the character I typed. This seems to be for letters and space.
However, it has saved the characters, and if I type ...
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)
...
3
votes
0
answers
309
views
How to use dap-mode with TypeScript?
https://github.com/emacs-lsp/dap-mode provides DAP debugging for various languages (along the same lines as LSP does for completion, formatting, etc).
How can I use that to debug programs written in ...
2
votes
0
answers
60
views
How to save a Slime Debugger buffer into a file, preserving all its data?
I am using Common Lisp, SBCL, Emacs, and Slime. Often, an error will happen while programming.
When an error occurs, Slime opens a Debugger buffer. Sometimes, I would like to save this debugger buffer ...
1
vote
1
answer
51
views
How to automate the test step in "debugging by bisection"?
Sometimes I run into a problem with Emacs that goes away if invoke Emacs with the --no-init-flag.
In other word, I can deduce that the problem in question is caused by code somewhere in my .emacs file....
0
votes
2
answers
485
views
How to debug error in process sentinel?
I've recently switched to doom emacs, and for the most part it's working great.
However, when I'm looking at a folder in dired-mode, if I copy a file using C the file is copied but *Messages* contains ...
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. ...
2
votes
0
answers
29
views
Debugging for Elisp threads?
Let's say some package does
(make-thread
(lambda ()
(message "Started thread.")
(error "Fit happens.")
(message "Finished thread.")))
Regardless of M-x ...
0
votes
1
answer
237
views
Julia mode in MacOS
I updated my macOS from Big Sur to Monterey and found that my julia command does not work. Specifically, I use the following init.el. So far, I could send line using C-return but, now I got a message &...
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
0
answers
86
views
`void-variable: Symbol’s value as variable is void: v` when deleting remote directory in dired
This recently started happening. Whenever I try to recursively delete any remote directory from dired (i.e. D over the dired entry), I get this after Emacs asks me for confirmation:
void-variable: ...
1
vote
1
answer
128
views
`while` is hanging
(defun test (n)
(let ((list1 ()))
(while (< (length list1) 10))
(push (random n) list1)
list1))
I'm trying to add (random n) to list1 while the length of list1 is ...
3
votes
1
answer
233
views
What's this `slot-missing: Invalid slot name: "#<forge-database forge-database-156f3376b4d8>", :file`
I somehow messed up my magit/forge db, and now emacs won't forgive me. Now I can't open magit's status buffer, and sometimes not even a file buffer opens.
This is all I can gather from the Messages ...
2
votes
1
answer
79
views
Find out where "Text is read only" coming from
My workflow involves converting a huge generated org-mode document that is created in a read only buffer and is automatically put together. When trying to export it to latex, sporadically I get the &...
0
votes
1
answer
54
views
debugging why emacs is autoformatting on save hook
I'm currently facing an issue where I am trying to save a file, but some save hook is triggering an auto formatting the file in a way that I do not want. I am not sure how to debug this issue. Ideally,...
2
votes
0
answers
88
views
shell-resync-dirs hangs
When I run shell-resync-dirs 1, the function hangs, until I press C-g, at which this point, what looks suspiciously like the output of my shell's dirs -l command 2 gets inserted into my buffer at ...
1
vote
1
answer
39
views
How are program arguments handled when a program/script is launched from Emacs?
I often find myself wondering how people handle program arguments when they are developing with Emacs. Let's say we have a Python script test.py and launching it requires supplying arguments, e.g. --...
1
vote
0
answers
81
views
Error sending mail via mu4e
I get the following error after sending mail via mu4e:
Error (message-sent-hook): Error running hook #[0 "\301\302\303 !\207" [mu4e-sent-func mu4e-sent-handler mu4e~proc-sent buffer-file-...
0
votes
0
answers
142
views
package-load-descriptor: End of file during parsing
I've encountered this error on an Arch Linux system running Emacs-27.2.
I sync my Emacs ~/.config/emacs/init.el which calls a host of other files located under ~/.config/emacs/settings/*-settings.el ...
1
vote
1
answer
112
views
Emacs 27: How to jump to backward found word when switched into reverse incremental search?
I am trying to apply following solution(How to jump to backward found word when switched into reverse incremental search?) into Emacs >27.1, (which works in emacs 26.3):
(define-advice isearch-...