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
1 answer
34 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 ...
0 votes
0 answers
44 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 ...
2 votes
1 answer
188 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&...
0 votes
0 answers
11 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 '...
  • 183
1 vote
0 answers
35 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 ...
  • 11
0 votes
1 answer
17 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-...
  • 1,759
0 votes
0 answers
34 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 ...
  • 751
0 votes
1 answer
26 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 ...
  • 751
1 vote
0 answers
39 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&...
  • 755
0 votes
1 answer
18 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 ...
  • 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 ...
1 vote
0 answers
161 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....
  • 11
0 votes
0 answers
25 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 ...
  • 101
0 votes
1 answer
39 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?
  • 513
0 votes
0 answers
19 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 ...
  • 479
1 vote
1 answer
525 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 ...
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 ...
  • 197
0 votes
1 answer
48 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 ...
  • 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 ...
0 votes
0 answers
50 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 ...
0 votes
0 answers
23 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 (...
  • 230
0 votes
1 answer
79 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 ...
  • 455
0 votes
1 answer
15 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 ...
1 vote
1 answer
43 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, ...
1 vote
1 answer
30 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?
  • 455
0 votes
2 answers
81 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 ...
1 vote
1 answer
28 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 ...
  • 13
1 vote
2 answers
99 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"))))...
  • 35
0 votes
1 answer
50 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 (...
  • 455
-1 votes
2 answers
210 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 ...
  • 455
2 votes
1 answer
254 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 ...
1 vote
1 answer
96 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 ...
  • 633
1 vote
1 answer
348 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 ...
  • 223
0 votes
0 answers
276 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(...
0 votes
0 answers
60 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 ...
1 vote
1 answer
40 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-...
  • 455
2 votes
0 answers
125 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’ ...
  • 131
0 votes
1 answer
121 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 ...
0 votes
1 answer
38 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 ...
  • 23
1 vote
1 answer
77 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 ...
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-...
  • 11
0 votes
0 answers
66 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 ...
0 votes
1 answer
51 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/...
  • 103
0 votes
1 answer
119 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-...
0 votes
0 answers
18 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 ...
0 votes
0 answers
122 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 ...
  • 135
0 votes
0 answers
36 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
54 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 ...
  • 456
1 vote
0 answers
120 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.
  • 11
0 votes
0 answers
60 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 ...
  • 161

1
2 3 4 5
11