Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.

126 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
117 views

Emacs freezes while editing a tex file

Emacs freezes while I was moving cursor in a latex file with AucTeX-mode (and LaTeX-mode). Emacs becomes black and I can do nothing, including C-g. I followed the approach in this answer, and obtained ...
1
vote
0answers
897 views

Can't exit Emacs with error “End of file during parsing”

Every time I press c-x c-c to exit Emacs, it shows "End of file during parsing" in the minibuffer. I cursorily examined my .emacs and did not find any mismatching parenthesis. Any idea what's the ...
1
vote
0answers
563 views

Debugging a “Warning (bytecomp): reference to free variable” message

I just upgraded to a new bleeding edge version of Emacs in OS X: brew install emacs --HEAD --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick I understand that this version is ...
1
vote
0answers
467 views

c-indent-line-or-region: Variable binding depth exceeds max-specpdl-size

I'm trying to define a new major mode using define-generic-mode and want to try reusing c-indent-line-or-region for my indent-line-function. I've inserted (set (make-local-variable 'indent-line-...
1
vote
1answer
1k views

Debugging and setting breakpoints in Java code built with Gradle

I am using Emacs (v24.4) for writing Java applications. I have created a Java library that I am building using Gradle (v2.2) and testing with Spock Framework where I have all my test cases. I would ...
1
vote
0answers
49 views

wildcard expansion in buffer

I'm debugging with pdb in emacs and one of the parameters to the program I'm debugging is a list of regular expressions wrapped in quotes. Basically, pdb someProgram.py 'regex .* .*' from the ...
1
vote
0answers
239 views

Unable to get backtrace for error

I have installed paredit & need to turnoff smartparens. I checked this answer and I have added (advice-add #'smartparens-mode :before-until (lambda (&rest args) t)) to my prelude starter ...
0
votes
0answers
13 views

Spacemacs: “Wrong type argument: stringp, nil” Auctex error when building tex file

following a recent update, Auctex now refuses to build. Throwing a wrong type argument: stringp, nil error. The full debug text: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
0
votes
1answer
17 views

How to print to the stdout / stderr from an emacs graphical session?

I'd like to print into the terminal that started emacs, instead of using Emacs message, whats the most convenient way to do this in emacs that uses the terminal? (printf "some number %d some string %...
0
votes
0answers
18 views

How to debug org-caldav-sync?

I'm trying to sync Google Calendar over OAuth2 using org-caldav. However, when I execute M-x org-caldav-sync, the following error occurs: *Messages*: Contacting host: www.googleapis.com:443 json-...
0
votes
0answers
17 views

Error in newly installed magit -head branch header wrong type argument

I just installed the magit package in emacs 26.3 (using CentOS 7 OS). When I start it with M-x magit, I get the error below. It works fine for me in an older installation, and the only difference I ...
0
votes
0answers
13 views

Debugging huge memory allocation occurring before identified problematic function

I identified a particular situation which causes emacs allocates infinitely memory (and then freezes my PC). To be specific, I have an external link [[file:article.djvu::5][problematic djvu file]] ...
0
votes
0answers
8 views

Possible to name closures for easier reading of backtrace?

Let's say I write the following code: (let* ((f (lambda () (debug)))) (funcall f)) This will produce the following backtrace: Debugger entered: nil (closure (bootstrap-version t) nil (debug))() ...
0
votes
0answers
29 views

Troubleshooting “Match data clobbered by buffer modification hooks”

When running bibtex-reformat I get Match data clobbered by buffer modification hooks. I know according to the post here that one of my change hooks is clobbering the match data. In fact, when I set ...
0
votes
0answers
19 views

Can't run emacs from terminal.Cannot open load file: No such file or directory

Emacs 26.1 Linux Mint 19 Open terminal, write emacs, but I get error: Warning: Could not find simple.el or simple.elc. Cannot open load file: No such file or directory
0
votes
0answers
29 views

How to find what is creating and killing so many buffers?

A bunch of creating and killing buffers in my setup and I can't track down what is it. Here is my debug code: (add-hook 'kill-buffer-hook (lambda() (message "Killed: %s / %s" major-mode (...
0
votes
0answers
29 views

Can not install vue-mode on Emacs 25

I have emacs 25.2.2 on Ubuntu 18.04 I want to install vue-mode package. But I am getting this error message: vue-mode is an incompatible package. ...
0
votes
2answers
40 views

How to print a stack trace into the stderr from elisp?

There are cases Emacs wont print stack traces on error How can I make elisp print a stack trace from my own code? (into the stdout/stderr for example) Something like Python's traceback: import ...
0
votes
0answers
41 views

AucTex and PDF Tools Not Working

For the past few days I have been trying to get Emacs to update and display my PDF when I press C-c C-a, once saved. I save with C-x C-s. But everything I have tried fails, including every other ...
0
votes
0answers
19 views

pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation not permitted)

I'm trying to render the output of a markdown file using C-c C-c p. On doing so, a webpage opens on my browser displaying pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation ...
0
votes
0answers
17 views

Enable trace-function from org-mode

I test the following procedure from org-mode #+name: case-2.1.1-factorial.el #+BEGIN_SRC elisp (defun factorial(n) (if (= n 1) 1 (* n (factorial (- n 1))))) (trace-function #'factorial) ...
0
votes
1answer
29 views

symbol's value as variable is void: command, when using ibuffer-sidebar

I installed ibuffer-sidebar (https://github.com/jojojames/ibuffer-sidebar) and added the following to my ~/.emacs.d/init.el: (use-package "ibuffer-sidebar.el") (require 'ibuffer-sidebar) (setq ...
0
votes
0answers
28 views

Error `(wrong-type-argument stringp nil)` on helm-swoop

I am trying to run helm-swoop (using a keybinding) and I am getting the following error. Debugger entered--Lisp error: (wrong-type-argument stringp nil) regexp-quote(nil) helm-swoop-pre-input-...
0
votes
0answers
46 views

Why is Emacs hanging or seeming like it isin an infinite loop?

In my current Emacs major-mode for Tecplot macro development, I have a few functions defined: (defconst tecplot-macro-mode-syntax-table (let ((table (make-syntax-table))) ;; ' is a string ...
0
votes
0answers
52 views

Annoying Error on Quit

Emacs throws an error every time I use C-g to cancel a process. This is getting annoying. Debugger entered--Lisp error: (quit) read-from-minibuffer("Switch to buffer: " nil (keymap (keymap (11 . ...
0
votes
0answers
43 views

I got an error: Package 'tabbar-20160524' is a system package,not deleting

I installed spacemacs using "git clone https://github.com/syl20bnr/spacemacs.git ~/spacemacs/.emacs.d" but I got an error: Package 'tabbar-20160524' is a system package,not deleting.... When I ...
0
votes
0answers
36 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
0
votes
1answer
407 views

Debugging with dap-mode for python and taking user input

I am trying to make dap-mode for python working on spacemacs. For the most part I was able to get it working, but I am having issues taking in input on the CLI def main(): a = input(">") The ...
0
votes
0answers
18 views

Don't restore previous window configuration on debugger commands

When using the emacs lisp debugger, if I invoke it change the window configuration invoke it again (most likely by hitting a breakpoint through the d command) my changed window configuration ...
0
votes
0answers
52 views

Wrong type argument: arrayp, nil in X mode

I'm getting a strange error on Emacs 27. Only in GUI mode (not in terminal mode), typing / to open the Evil search functionality results in the error wrong type argument: arrayp, nil being displayed ...
0
votes
0answers
54 views

How to get a stack trace for “Eager macro-expansion failure:”

On startup I'm getting this message: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2) How can I find whats causing the warning? --debug-init doesn't do anything in this case as ...
0
votes
0answers
9 views

Line of error in Emacs Regression Test (ERT) framework

I am refactoring some code and adding doc-tests as suggested here. The previous iteration passed the tests. Now running ERT in batch mode with eemacs -batch -l ert -l org-clock-split.el -f ert-run-...
0
votes
0answers
37 views

emacs-jupyter debugging and realgud

emacs-jupyter supports pdb by displaying the pdb prompt in a minibuffer. I have a feeling that I should be able to connect to it with realgud:pdb, similarly to how I can realgud:track-mode-enable in ...
0
votes
0answers
51 views

Org Mode Clock-In Task Showing Void Function Definition

When trying to clock in a task in org mode I am getting this error: Troubleshooting so far: tried erasing .elc files from elpa org directory and re-loading. Tried updating org mode. Update failed (...
0
votes
0answers
327 views

.emacs showing error “Wrong type argument: listp, closed” during start up

I am getting an error Wrong type argument: listp, closed while starting my Emacs. I tried to debug each line and do a M-x eval-buffer during configuration. At at time, it was showing only End of line ...
0
votes
0answers
75 views

ac-php “Wrong type argument: hash-table-p, nil” when calling company-complete

I'm using emacs 27 compiled from git sources and company for code completion. I tried to set-up ac-php with company and php-mode, but when company tries tp perform auto-complete, I get the following ...
0
votes
1answer
63 views

How to edit code in the source window using realgud?

I've started using realgud:pdb for python debugging in emacs: https://github.com/realgud/realgud When you begin a realgud session, it opens a command window and a source window. Keys like 'n' and 'b'...
0
votes
0answers
35 views

How to eliminate emacs -Q startup lag

I'm trying out emacs. With no .emacs file and starting emacs 26.1 with emacs -Q on Debian 10, it takes two seconds for the welcome screen to show up. Before the welcome screen, there is a message "...
0
votes
0answers
64 views

Error running timer ‘ac-update-greedy’: (void-variable org-link-types)

I very recently updated to Emacs 26.3 and Org 9.2.6, and am getting the above-mentioned error whenever I type "[[" in an org-mode buffer to type a hyperlink. Unsurprisingly, no error after turning off ...
0
votes
0answers
32 views

Debugger breaks with Args out of range: “”, 0

When forge is installed on a system with no compiler, I sometimes get this error which breaks magit. I'd like to figure out the traceback for this error so I can add some proper error handling, ...
0
votes
1answer
45 views

How to check whether an optional param was input?

I have a command with an optional argument whose value is a number. I need: If no input argument then use default value (1000) else use input arg. (random t) (defun insert-random-number-at-point(&...
0
votes
1answer
33 views

Scripted bookmark jump not working after startup

Add the following to .spacemacs: (defun my-bookmark-set (char) (interactive "cPlease enter a bookmark name to set: ") (bookmark-set (char-to-string char))) (defun my-...
0
votes
0answers
61 views

Unsure what to make of the following Emacs prompt to change my init file

Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen: An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el': ...
0
votes
0answers
104 views

Impossible to answer y-or-n-p prompt in EXWM if X window is focussed

When a y-or-n-p question (e.g. The file you want to open is very large. Really want to open it?) pops up in the minibuffer while an EXWM buffer is focussed, I have no option to answer the question (...
0
votes
0answers
28 views

How can I modify zone's putz-with-case to print random letters instead?

(I will bold the actual questions.) So here is an old version of the offical zone code that randomly chooses letters and randomly makes them uppercase or lowercase. I did not modify this, and it ...
0
votes
0answers
107 views

Error when exporting to pdf in org-mode

I get the following error when exporting to pdf directly in org-mode (C-c C-e l o), but conversion using pandoc with the exported tex document (C-c C-e l l) works fine. What went wrong? Latex ...
0
votes
0answers
185 views

IO Error writing filename: Input/Output error

Using emacs 24.3-22 on CentOS 7.6.1810. Writing to home directory on cifs mounted share. When writing a file auto-saves will work, but actually clicking the save button or doing Save As gives IO ...
0
votes
0answers
40 views

Org-table misaligns with Chinese data

Org table vertical lines do not align properly with Chinese data. | 標題一 | 標題二 | 標題三 | |----------+--------------+----------| | 中文圖表 | 直線會對不準 | 像這樣子 | | 這 | 是不是 | 問題 | | ...
0
votes
0answers
29 views

org-mind-map unable to find flatten and dot command

I get the following error when running org-mind-map. Paths the each are as follows: $ which unflatten /usr/local/bin/unflatten $ which dot /usr/local/bin/dot How to tell org-mind-map to access ...
0
votes
0answers
42 views

`scad-mode` (derived from CC Mode) hangs Emacs. How to debug/fix?

I have found that scad-mode.el, a derived mode from CC Mode, which can be found here: https://github.com/openscad/openscad/blob/master/contrib/scad-mode.el hangs emacs if I type #( into the window,...