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
0answers
17 views

Portacle Emacs C-c C-c stopped working

I am a beginner Lisp programmer and new to Emacs. I work on Portacle. I must have done something because when I press C-c C-c to compile a function in a buffer I get: C-c C-c is undefined. This worked ...
0
votes
1answer
50 views

How do I solve `Lisp error: (void-function -compose)` when using lsp-dart?

When I load a Dart file with GNU Emacs 27.1-1 for OS X I get the following little error novel. Debugger entered--Lisp error: (void-function -compose) (-compose #'lsp--client-path->uri-fn #'lsp--...
0
votes
1answer
33 views

Tramp hangs indefinitely when using doas on Linux

Tramp works fine when I try to edit with sudo or ssh, but when I try to edit with doas it will hang (while also maxing out my cpu). Here is some tramp output: backtrace() tramp-signal-hook-...
1
vote
0answers
47 views

How can one debug a situation when emacs is unresponsive on Windows?

There is an operation in my setup which makes emacs unresponsive with high CPU. I checked the emacs process with process monitor, but it does not wait for an other process, so I guess it must be ...
0
votes
1answer
34 views

Debuggable emacs and vanilla emacs binaries

I'm running Ubuntu 20.04. I would like to build an emacs binary for general usage (no debug symbols) and another emacs binary (when something goes wrong). The build is pretty straight-forward, but I ...
0
votes
0answers
40 views

How to debug emacs config / need to rerun org-mode after startup

I run emacs on Windows and I start with this command: C:\path-to\emacs.exe -q --load "C:/path-to-git-tracked-config-folder/.emacs" --debug-init Emacs starts without error from --debug-init. ...
0
votes
0answers
14 views

Why does every command with `M-x cider-jack-in` raise an error?

Anyone knows why any command whatsover comes up with this error? ;; Startup: /usr/local/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "...
0
votes
0answers
39 views

org-capture: Capture abort: Wrong type argument: stringp, org-main-file

I know this error has come up here before, but none of the answers thus far have been able to help me and no amount of googling has got me anywhere. I've been using org-capture-templates for quite a ...
0
votes
1answer
42 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 ...
0
votes
0answers
15 views

savehist-mode: Lisp error: (void-variable pell-buffer)

I am using GNU Emacs 26.3 in macOS. For (savehist-mode 1) I keep getting following error: Debugger entered--Lisp error: (void-variable pell-buffer) signal(void-variable (pell-buffer)) savehist-...
0
votes
0answers
145 views

`wrong type argument: number-or-marker-p, nil` after upgrading auctex

After upgrading to auctex-13.0.1 I am getting the error wrong type argument: number-or-marker-p, nil whenever I try to compile a latex document in emacs. Activating toggle-debug-on-error and issuing C-...
0
votes
0answers
45 views

Custom theme problem - invalid face underline

I have a problem with creating my own custom theme. I'm new to doing this and my elisp knowledge is minimal. I've used the customise-create-theme option and it was working well but it seems that at ...
1
vote
0answers
40 views

Cannot call use-package on Emacs master

I can't use use-package with Emacs master. How can I find out why this is? For me, all calls (via eval-last-sexp) to use-package fail as Error (use-package): Cannot load X Disable showing Disable ...
0
votes
1answer
50 views

emacs 27 (lucid toolkit) daemon crashes every couple of minutes

Some variant of this has been asked before - emacs daemon crashing when it has been built with Gtk3 etc - but I couldn't find any solution to this. I've built Emacs 27.1 from source on Xubuntu 20.04 ...
0
votes
0answers
70 views

emacs27 : Depends: emacs27-common but it is not going to be installed

I has Emacs 25.3 emacs -version GNU Emacs 25.3.2 Copyright (C) 2017 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms ...
0
votes
0answers
29 views

Function: “Symbol's function definition is void” until I C-h C-f its definition, then works fine

I've defined a function that uses popup-tip. On startup, if I call the function, I get the error, Symbol's function definition is void: popup-tip. If I call Ch Cf for popup-tip, I can find the ...
2
votes
1answer
67 views

Error when first launching Spacemacs in macOS 11.0.1

I am trying to learn Emacs. I successfully installed it and went through the built-in tutorial. I thought that installing Spacemacs would be nice so I gave it a try. I followed a tutorial and now I am ...
0
votes
0answers
66 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
0answers
11 views

Help using compilation-mode or similar to use next-error to navigate bash debug output

Using "set -x" in bash script, outputs each executed command to an ouput file. eg here is part of the bash script #!/usr/bin/env bash # This is called by (my) .xinitrc, xdm and _should_ be ...
4
votes
1answer
47 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 ...
1
vote
1answer
70 views

Log Tramp traces to a file

I am experiencing some Emacs Tramp connection problems and want to ask for help. However in my case Emacs hangs completely because of Tramp and there is no way I can access Tramp debug files. (it is ...
0
votes
1answer
62 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
0answers
26 views

Link broken in inline comment

[[link]]@@comment:[[link]]@@ # [[link]] * link I get the message "No Link Found" when clicking on the [[link]] within the inline @@comment:[[link]]@@. The link works fine with emacs -Q, ...
0
votes
0answers
9 views

Use edebug to trace ivy-read OR how to prevent focusing in minibuffer

I would like to understand more of the internals of ivy-read. So I tried using edebug to trace some of the helper functions in ivy.el. However, upon entering edebug, the focus always is in the ...
0
votes
0answers
14 views

Fontlock markup disappers when visual line is active

I have the following setting in my .emacs.d folder. (defface org-commentary '((t :foreground "tan1")) "Face for commentary text in org mode") (defface org-commentary-delimiter ...
0
votes
1answer
28 views

How to modify a file you're debugging with realgud

I understand mechanically from here: debugging: how to optimize a RealGUD workflow How to edit code in the source window using realgud? I can use C-x C-q to disable read-only mode on the python file ...
0
votes
1answer
36 views

Realgud to default to my most recent python executable

When I run realgud for python debugging, with: M-x realgud:pdb I see this prompt: Run pdb (like this): python -m pdb /home/username/work/place/scratch.py I'm using a conda environment installed in ./...
1
vote
1answer
55 views

gdb over ssh via tramp fails (but gdb-gud works?)

I am running into an issue where the gdb command fails over tramp. The remote host is a simple linux box I am accessing via ssh. Even when I run emacs without my init file it still happens. Emacs 27....
0
votes
0answers
75 views

How can I get holding down the spacebar to work as expected

When I am editing text, if I press and release the spacebar it works as expected. However, if I hold down the spacebar I get the following message in the echo area. <Hangul> is undefined I saw ...
0
votes
1answer
32 views

How can I stop iso-transl running

I have run the macport emacs 27 on macOS. The bindings of my keys as as per mac-keys-mode (and aquamacs) and have Command key acting as alt. Thus all my key bindings are A-key This normally works. ...
0
votes
1answer
79 views

Emacs transparent after fresh install

Complete emacs beginner here. Just installed emacs in my Manjaro (awesomewm edition) machine using pacman. The emacs window is almost completely transparent, I can't read anything. If started from a ...
0
votes
0answers
14 views

GAP mode (interactive mode for working with GAP) swallows first lines of output

On Windows 10, I have emacs under cygwin which works well. In particular, I am running GAP in emacs using gap-mode and everything is OK. Now to use some other apps, I was forced to install another ...
0
votes
1answer
44 views

How to track down where Emacs message “<Scroll_Lock> is undefined” comes from?

I am using Emacs 25.5 and now am getting the message: "<Scroll_Lock> is undefined" appearing regularly in the Messages buffer. If I turn on debug-on-error, it doesn't stop on it and ...
1
vote
0answers
100 views

(Windows Terminal) and xterm-mouse-mode has a problem

Don’t really know where to post this issue, or even the nature of it, but it can get very frustrating. This is not exclusive to Windows Terminal, MobaXTerm has the same problem. So I use emacs under ...
0
votes
0answers
277 views

I broke Spacemacs

After editing my .spacemacs file, spacemacs is saying that there is an unmatched parenthesis and I need to go into startup recovery mode. After looking at the file, I have not found any problems. ...
0
votes
0answers
52 views

`company-ngram` backend error on windows 10

I am getting this error on windows 10 python 3.8 Emacs 27 and prelude configuration Company: backend company-ngram-backend error "Process company-ngram not running" with args (prefix) I am ...
1
vote
1answer
56 views

Emacs freezes when pressing ESC

My Emacs usually works well, but sometimes it freezes, to be more specific: It only freezes after pressing ESC. When the freeze begins, it will always freeze after pressing ESC: I kill Emacs, restart ...
0
votes
1answer
93 views

Buggy org export to LaTeX `itemize` and `enumerate` functions

A similar question has been put to the TeX community over here, which led to the insight that this is an org-export issue. Hence the current question: The org document below generates a tex file that ...
0
votes
1answer
31 views

Gnus fails opening larger imap group

If I try to open an larger imap group (a few thousand messages both read and unread) Gnus gives a warning: Wrong number of arguments: #, 2 And the Summary window is empty or it contains only some of ...
-1
votes
1answer
58 views

mark-sexp (Wrong number of arguments)

((foo(bar)) ...
2
votes
0answers
47 views

Unexpected indentation in python chunks

Already one year ago, I described a problem on github with polymode and unexpected indents. Since there was no answer there so far and the problem is really annoying, I ask here for ideas for a ...
0
votes
1answer
111 views

Byte compilation error with use-package

The beginning of my ~/.emacs.d/init.el file looks like this: ;; MELPA (require 'package) (setq package-enable-at-startup nil) (setq package-check-signature nil) (add-to-list 'package-archives '("...
1
vote
2answers
171 views

Debugger entered--Lisp error: (wrong-type-argument sequencep all) cl-intersection((all magit) all)

I am trying to use magit-delta (https://github.com/dandavison/magit-delta). I am using GNU Emacs 26.3. When I add following line ( (magit-delta-mode 1) )into the .emacs file, I get following error: ...
0
votes
0answers
25 views

Continuously redirect debugging information (e.g. *Messages*) to file

My Emacs configuration (Emacs 27, Doom-Emacs config with lots of user-specific tweaks, running on MacOS) sometimes hangs at seemingly random times, and the kill -SIGUSR2 <emacs PID> has no ...
0
votes
1answer
61 views

Configure gud to invoke python3 debugger instead of python debugger

When I issue the Emacs command M-x pdb it invokes Python’s pdb as python -m pdb foo.py. I want to instead invoke python3 -m pdb foo.py -- how do I set this up?
0
votes
0answers
46 views

ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers

Friends, I have put strong effort to write an understandable account of the problem. Thus, I ask you to open all the site links quoted at the place of citation to follow the problem history. I have ...
2
votes
1answer
60 views

When working on elisp where to show intermediate values?

I've only recently started diving deeper into elisp. I've been using message a lot in the past, much like println or print when in other languages. The trouble I have is that I'm writing elisp to ...
3
votes
1answer
135 views

How does one access the actual arguments to an Emacs Lisp function from the `*Backtrace*`?

I am trying to debug a problem in some elisp and don't understand how to access the information I want from the Emacs Debugger. Specifically, my backtrace looks like: ⋮ #f(compiled-function (hover) #...
0
votes
0answers
48 views

C-h v gives " Symbol’s value as variable is void: default

I'm running 26.1, I don't believe I have anything weird help-related in my .emacs. When I try to get help on a variable, C-h v, it tells me Symbol’s value as variable is void: default. Any hints of ...
2
votes
1answer
68 views

Magit deprecates `magit-popup`. Which of my packages depend on it?

How do I get Emacs to report which packages in my running Emacs depend on magit-popup? Soon Magit will stop supporting magit-popup because it has transitioned to the replacement transient. Somehow ...

1
2 3 4 5
9