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
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 ...
Daniel Krajnik's user avatar
0 votes
0 answers
28 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 ...
user129393192's user avatar
0 votes
1 answer
45 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 ...
Sinthoras's user avatar
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)) "...
Jason Hunter's user avatar
0 votes
1 answer
55 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 ...
theboard's user avatar
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 ...
Alexander Praehauser's user avatar
2 votes
1 answer
274 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&...
Thomas Koch's user avatar
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 '...
cpcallen's user avatar
  • 183
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 ...
Dizzar's user avatar
  • 11
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-...
doctorate's user avatar
  • 1,759
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 ...
Erwann's user avatar
  • 828
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 ...
Erwann's user avatar
  • 828
1 vote
0 answers
99 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&...
Sati's user avatar
  • 755
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 ...
tgunr's user avatar
  • 123
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 ...
Tom Riddle's user avatar
1 vote
0 answers
213 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....
Butters's user avatar
  • 11
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 ...
Onye's user avatar
  • 101
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?
Emoses's user avatar
  • 533
0 votes
0 answers
20 views

Semantic fails while processing system header

I have Emacs 28.1.90, locally built, with cedet and semantic as built-in packages. However, when i tried turning things on (using semantic for auto-completion with company), i started getting eroors ...
Srv19's user avatar
  • 479
1 vote
1 answer
659 views

Problem debugging on dap-mode

I am new to emacs and I was following this tutorial to configure lsp-mode: https://emacs-lsp.github.io/lsp-mode/tutorials/CPP-guide/ But dap-debug does not work. Everytime I try to debug, it doesn't ...
XStein17's user avatar
1 vote
0 answers
24 views

A new version of a package introduced unexpected behavior - how to discover the source of the issue?

My issue There is a small behavior in org-mode that I've grown accustomed to: if there are multiple headlines of the same level (e.g. 3 stars) and they are all folded (i.e. their contents are not ...
Alex's user avatar
  • 197
0 votes
1 answer
58 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 ...
clo_jur's user avatar
  • 101
0 votes
1 answer
23 views

emacs opens unwantedly with some git commands

I have a very strange problem that I cannot work out. Emacs opens if I run some git commands such as git log, git branch, git show. Some git commands behave normally and do not open emacs, such as git ...
James Iddon's user avatar
0 votes
0 answers
57 views

`C-x C-;` freezes emacs

This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
Eden Landau's user avatar
0 votes
0 answers
28 views

Compilation buffer fontifies some parts

Here is a normal compilation message: Here is what I have: When I describe-char [...] I have the following description: position: 191 of 752 (25%), column: 0 character: F (...
Lhooq's user avatar
  • 230
0 votes
1 answer
115 views

:documentation void-function error

The following backtrace problem in being produced but cannot identify the problem correctly. Debugger entered--Lisp error: (void-function :documentation) (:documentation (concat "Version and ...
Ephram's user avatar
  • 455
0 votes
1 answer
17 views

org-agenda stuck displaying last file in org-agenda-files list

For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
nonreligious's user avatar
1 vote
1 answer
49 views

Bookmark Plus and pdf-tools/pdf-view error

I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, ...
nonreligious's user avatar
1 vote
1 answer
38 views

Enabling --debug-init from within .emacs

Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
Ephram's user avatar
  • 455
0 votes
2 answers
117 views

How to fix byte compiler warnings for "Unused lexical variable" in a macro?

I have a macro and a function which uses it: (defmacro oauth2-auto--query-case (&rest cases) "Handle HTTP queries based on the keys present in ‘query-alist’. ‘query-alist’ is a free ...
telotortium's user avatar
1 vote
1 answer
29 views

Emacs makes my files not exist in Parcel

new Emacs user (on Windows) here! So far Emacs looks really cool! I'm developing website using Parcel and every time I save my main .html file with Emacs it breaks my development server. HTML file I ...
PSCHC's user avatar
  • 13
1 vote
2 answers
110 views

Debugging a hook function

I have this code: (add-hook 'org-mode-hook (lambda () (when (string-match "notes\\.org$" buffer-file-name) (face-remap-add-relative 'default :background "yellow"))))...
fegax's user avatar
  • 35
0 votes
1 answer
52 views

Getting prefix as argument

With this function, I get the error test: Wrong type argument: stringp, 2 Is it good to pass prefix this way? Thought that the argument prefix would be filled up with the prefix value. (defun test (...
Ephram's user avatar
  • 455
-1 votes
2 answers
312 views

How can I enable flymake to collect information about problems in an Elisp buffer?

How can flymake be enabled on emacs-lisp code to collect information about problems in the buffer? Have done (flymake-mode) to enable it. But getting the error Warning (flymake): Disabling backend ...
Ephram's user avatar
  • 455
3 votes
1 answer
316 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 ...
Joran Martijn's user avatar
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 ...
jjk's user avatar
  • 663
1 vote
1 answer
424 views

Meta key getting stuck in Windows 11 WslG, how to release meta when switching to frame

In Windows 11 WSL Ubuntu 20.04, I am using the new WslG feature which allows native gtk apps to run smoothly on windows (and I compiled Emacs 29 with the --with-pgtk option when installing), but I am ...
herophant's user avatar
  • 223
0 votes
0 answers
362 views

"Error running timer file missing doing vfork" Emacs dap debug C++

I've c++ cmake project beginning-cpp20. The project structure as as below - $ tree . . ├── CMakeLists.txt ├── launch.json └── meetingcpp.cpp The contents of CMakeLists.txt is - cmake_minimum_required(...
Rajkumar Natarajan's user avatar
0 votes
0 answers
70 views

Error on multi buffer rendering

I had been using emacs since 5-10 years ago and never had any single problem, I used to use Vanilla emacs with some configurations as Sebastiencs's Sidebar, now I'm using Doom emacs with treemacs. In ...
ca-hercor's user avatar
1 vote
1 answer
42 views

Setting filename for saving buffer

I am using the following function workbench. How may I resolve the error if: Wrong type argument: sequencep, 1 when calling M-x workbench? With backtrace I get Debugger entered--Lisp error: (wrong-...
Ephram's user avatar
  • 455
2 votes
0 answers
161 views

Org mode babel hangs with python C-c C-c

When I C-c C-c in a Python code block in Org mode: #+BEGIN_SRC python :results value :session a = 4 a + 13 #+END_SRC It hangs with a message: Warning (python): Your ‘python-shell-interpreter’ ...
Jay Lee's user avatar
  • 131
0 votes
1 answer
142 views

command-execute error with straight.el

I have just tried to setup magit using straight.el in my init file as follows: (use-package magit :straight t :bind ("C-x g" . magit-status) :commands (magit-status ...
user4687531's user avatar
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 ...
Lindsay's user avatar
  • 23
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 ...
HelloGoodbye's user avatar
1 vote
0 answers
27 views

Some errors when customizing run-python

I want to make a complement to run-python in python-mode. Here is my snippet: (defun dpy-run-python () (interactive) (when (python-shell-get-process) (delete-process (python-shell-get-...
Mr.Dust's user avatar
  • 11
0 votes
0 answers
86 views

How do I debug Tangled 0 code blocks?

This is a history of an unsuccessful attempt to fix tangling in my Emacs configuration. In frustration, I have removed the org-mode config and left the file that was a result of previous successful ...
ruby_object's user avatar
0 votes
1 answer
52 views

AUCTeX error 127

I'm trying to call AUCTeX from Emacs and I'm now getting the following error (quote marks changed slightly to get code block below to work): Running 'TeX' on 'simple' with ''pdf/Users/myname/bin/...
ShyPerson's user avatar
  • 103
0 votes
1 answer
148 views

wrong-type-argument listp \357\273\277 when working with packages

I use Emacs 27.2 on Windows 10. Working with packages used to work, but now I am getting Failed to download ‘gnu’ archive., when calling for instance M-x package-refresh-contents. I tried M-x toggle-...
krendelj's user avatar
0 votes
0 answers
20 views

How do I view the entire call chain from a command?

I am facing weird issues from editing Kotlin code with LSP enabled with lsp-mode, in Spacemacs. Everytime I evil-yank and evil-mc-paste a line by yy followed by p, an empty line is pasted instead. The ...
Namudon'tdie's user avatar
0 votes
0 answers
157 views

How can I add a horizontal line (`\hline`) above the first table row when exporting to latex?

I want a table in org mode to meet two needs: When it is exported as latex, the result table in latex has the top horizontal line. like this: Can be used as input variable for R code blocks But it ...
Tokubara's user avatar
  • 147

1
2 3 4 5
11