2022 Developer Survey is open! Take survey.

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
1 vote
1 answer
17 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 ...
user avatar
  • 1,153
2 votes
1 answer
43 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 ...
user avatar
0 votes
2 answers
26 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 `...
user avatar
  • 131
1 vote
1 answer
30 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 ...
user avatar
0 votes
0 answers
31 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-...
user avatar
  • 123
1 vote
0 answers
16 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 ...
user avatar
  • 163
2 votes
0 answers
30 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 (...
user avatar
  • 21
0 votes
0 answers
52 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-...
user avatar
0 votes
1 answer
41 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
1 vote
1 answer
53 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 ...
user avatar
0 votes
1 answer
52 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 ...
user avatar
1 vote
1 answer
39 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: ...
user avatar
1 vote
0 answers
26 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 ...
user avatar
  • 273
0 votes
1 answer
44 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 ...
user avatar
  • 159
0 votes
2 answers
89 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 ‘/...
user avatar
  • 159
1 vote
1 answer
21 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-...
user avatar
  • 17.6k
0 votes
0 answers
37 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 ...
user avatar
0 votes
0 answers
17 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-...
user avatar
  • 155
0 votes
0 answers
22 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 ...
user avatar
0 votes
2 answers
55 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 ...
user avatar
1 vote
0 answers
16 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
  • 113
0 votes
0 answers
49 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 ...
user avatar
  • 101
0 votes
0 answers
21 views

Shell-mode mapping stopped working after update to emacs 28

I have the following binding commands (define-key shell-mode-map (kbd "C-r") 'helm-comint-input-ring) for my comint shell mode to get command history. After update to emacs 28 this binding ...
user avatar
  • 111
0 votes
1 answer
62 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 ...
user avatar
0 votes
3 answers
67 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 ...
user avatar
  • 17.6k
0 votes
0 answers
23 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 ...
user avatar
0 votes
1 answer
25 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) ...
user avatar
1 vote
0 answers
38 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 ...
user avatar
0 votes
0 answers
24 views

Error: End of file while parsing JSON

Error "End of file while parsing JSON" while trying to make request to monero-daemon-rpc. (require 'json-rpc) (setf monerod (json-rpc-connect "localhost" 18081)) (json-rpc ...
user avatar
2 votes
0 answers
40 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 ...
user avatar
1 vote
1 answer
40 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....
user avatar
  • 2,889
0 votes
2 answers
123 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 ...
user avatar
1 vote
1 answer
53 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. ...
user avatar
  • 166
0 votes
0 answers
16 views

Proof general: Symbol’s value as variable is void: coq-prog-args

I'm trying to proof-assert-next-command-interactive, but get the following error in *Messages*: proof-activate-scripting: Symbol’s value as variable is void: coq-prog-args. I haven't found an ...
user avatar
2 votes
0 answers
21 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 ...
user avatar
  • 1,481
0 votes
1 answer
122 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 &...
user avatar
  • 101
0 votes
1 answer
47 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-...
user avatar
0 votes
0 answers
25 views

recursive require of slime error when trying to require symex

I'm getting the following error when doing (require 'symex) or (use-package symex). Error (use-package): symex/:catch: Recursive ‘require’ for feature ‘slime’ This is emacs 27.1 on Ubuntu 21.10 and ...
user avatar
0 votes
0 answers
58 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: ...
user avatar
  • 113
1 vote
1 answer
125 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 ...
user avatar
  • 91
2 votes
1 answer
96 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 ...
user avatar
  • 185
2 votes
1 answer
31 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 &...
user avatar
  • 141
0 votes
1 answer
24 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,...
user avatar
  • 101
0 votes
0 answers
12 views

dired--unhide: Buffer is read-only: #<buffer bufferName> when set bookmark in a dired buffer

When I use C-x r m in a Dired buffer to add this directory to my bookmark, it complains: dired--unhide: Buffer is read-only: # The enabled minor modes in this buffer include: Async-Bytecomp-Package ...
user avatar
  • 111
1 vote
0 answers
34 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 ...
user avatar
  • 2,889
1 vote
1 answer
28 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. --...
user avatar
0 votes
0 answers
26 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-...
user avatar
  • 635
0 votes
0 answers
12 views

Unable to open files for editing with GPG + EasyPG

I have been using GPG + EasyPG for encrypting/decrypting files on my Macbook. Recently, I moved to a new Macbook and tried setting things up similar to my previous setup. However, while the files are ...
user avatar

1
2 3 4 5
10