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
1answer
24 views

Figuring out what plugin is messing with my input

This is a more general question so I would like to know how to actually debug something like this. Suppose that I have some plugin that does section completion as code is being written. For example ...
1
vote
1answer
36 views

Why is check-ert output cut at 70 characters column?

Sometimes when packaging emacs packages for Debian, I need to debug test failures. Then the debugging output is cut at 70 characters like in this bug report: https://bugs.debian.org/cgi-bin/bugreport....
1
vote
1answer
90 views

Problem debugging in `gud-mode' (M-x `gdb' with `many-windows' enabled)

I'm debugging a large codebase (written in C++). Everything works perfectly if I run gdb from a regular terminal as follows: $ gdb <program-name> Reading symbols from <program-name>......
1
vote
1answer
55 views

Unclear error message from a function call in my init file

With my Emacs 26.1 on my 10.13.6 Mac, I want Emacs to systemically open my file located at /Users/ewandelanoy/Documents/html_files/Printable/latinized_agreda2.txt with the mac-roman-mac encoding, ...
1
vote
1answer
250 views

Bindings for source code when debugging in gdb/gud

We can define a bunch of bindings for gud-mode through gud-mode-map. But it seems these bindings only hold when the active window is one of the dedicated gdb windows (or simply the comint window if ...
1
vote
1answer
107 views

debugging segmentation fault when using `prin1`

Q:  How can I narrow down this gdb backtrace to a specific character, or set of characters, that is causing a Emacs to suffer a segmentation fault when using prin1? Program received signal SIGSEGV, ...
1
vote
1answer
172 views

Symbol's function definition is void: pdf-tools-install after succesfull Installation with nor error messages

I tried to install pdf-tools under emacs 24 and Ubunt 16.04, like I did it several times succesfully. But now I get the error messages: Symbol's function definition is void: pdf-tools-install PDFs ...
1
vote
1answer
73 views

Exporting org file breaks

I have a similar problem to the one asked here Exporting org file breaks when upgrading to orgmode 8.3, org-mode cannot export org files and raises this error: apply: Wrong type argument: listp, #("...
1
vote
1answer
148 views

I got error when using command yank

When I typed C-y to call yank, I got this. apply: Symbol's value as variable is void: n Debugger entered--Lisp error: (void-variable n) ad-Advice-current-kill( ... [interprogram-paste-...
1
vote
1answer
73 views

What is causing my javascript files to auto-format?

If I have a long line in a javascript file such as: let args = [options.loadRaw ? buffer : path.resolve(filePath)].concat(options.commands); At some point when I keep adding to that line, it auto-...
1
vote
1answer
71 views

Jump to a bookmark+ dired bookmark from Lisp code

According to the docu of Bookmark+ this code: (bmkp-dired-jump BOOKMARK-NAME &optional FLIP-USE-REGION-P) should allow to quickly jump to a dired buffer that has been bookmarked. I try to eval (...
1
vote
1answer
876 views

Missing modules when debugging Python code in Emacs

For a number of reasons - the main one being that Emacs is amazing! - I am trying to do all my Python development at work in Emacs instead of Pycharm, which I was using previously. The one component ...
1
vote
1answer
339 views

Flycheck.erl checker that uses functions from projectile

Below is my attempt at adapting "erlang" syntax checker (from flycheck.el) for my needs. It tries to use GNU make for compilation instead of erlc. Apart from that nothing is changed. (flycheck-define-...
1
vote
0answers
54 views

Tramp hanging on writing or opening file

Tramp consistently hangs, for me, when opening or writing a remote file. None of the ‘why is Tramp hanging...?’ resources I've found seem to address my situation. What's odd is that this used to ...
1
vote
0answers
85 views

neotree: `all-the-icons-icon-for-dir` raises void-function error

I am getting an error with neotree and i dont know why the arguments from call-interactively are nil. Edit: The Problem is within neotree and i have an empty init file just with neotree and the ...
1
vote
0answers
28 views

How to open 3 emacs windows when debugging using gdb

I am debugging a program that outputs 8 or more lines of display and requires input. So my IO window has to be say 10 rows or so in height. But I also want to see the source code AND of course the ...
1
vote
0answers
242 views

How can i resolve tramp-error: Not a Tramp file name: using a /docker address?

Trying to set up .dir-locals to use a custom python interpreter inside a container so i can use run-python and get the REPL inside the container. I have this setup which seems to partially work in ...
1
vote
0answers
290 views

The Application Emacs is Not Open Anymore (macOS High Sierra)

I am using Emacs (25.2.1) on macOS High Sierra 10.13.2, and when trying to open a simple .txt file using Emacs as the editor, I get the error "The application Emacs is not open anymore". Details: ...
1
vote
0answers
136 views

`<dead-grave> is undefined`

for a few month, I use Emacs for Latex, and I am French. today (for the first time) when I use C-c ` to see my errors, Emacs answers <dead-grave> is undefined I try to add in my .emacs (...
1
vote
0answers
203 views

Is it possible to debug Django from gud-pdb?

Brand new to gud/pdb and I am trying to run the Django development server from emacs. I can't seem to set breakpoints that affect the running server, though. I am invoking PDB with M-x pdb, then ...
1
vote
0answers
91 views

Emacs really laggy on prog-mode

I noticed Emacs was really laggy on any mode derived from prog-mode two days ago. Before that, everything was fine. I can navigate on a 1000+ lines org-mode file without problem, but I can't even type ...
1
vote
1answer
83 views

A single Key Binding for several commands

I want to set a key binding to both open and close nodes in origami-mode. This is my attempt (require 'origami) (defun open-close-node () (interactive) (origami-open-node) (origami-close-node))...
1
vote
0answers
98 views

How to debug hanging emacs-async command?

I'm trying to set up a function running on my timer to refresh my org-gcal files by using the emacs-async library as follows: (async-get (async-start `(lambda () ,(async-inject-variables "...
1
vote
1answer
172 views

Tern stopped working! Request failed: ((wrong-type-argument url nil))

I just upgraded yesterday emacs from version 25.2 to 27.0.5. Now I am encountering this problem, any idea of how to fix it? This happens in some tern functions I try to use: tern-get-docs, tern-ac-...
1
vote
1answer
63 views

Emacs 25 function error

Recently I upgraded my emacs from 24 to 25.3.1. After the upgrade, the following code does not work anymore: ;;================================== ;; Wrap Query Replace ;;====================...
1
vote
0answers
146 views

How to debug a(n) .emacs that doesn't work correctly, but also doesn't throw any errors? [closed]

I currently have an Emacs/AucTeX setup where emacs --debug-init doesn't throw any errors, but things still don't work as expected. This being the case, I don't really know how to debug my .emacs file ...
1
vote
1answer
245 views

How to debug c-mode-common-hook that doesn't fire

I'm using prelude mode, and in a file .emacs.d/personal/old-settings.el I have, amongst other things: (global-set-key (kbd "C-c C-c") 'comment-region) (add-hook 'c-mode-common-hook (lambda() ...
1
vote
0answers
98 views

Getting gdb to work for this project

For this project, I cannot seem to get M-x gdb to work in Emacs 25.1 (on Ubuntu 14.04.5 64-bit if it matters - this should be the case for any Ubuntu-based Linux in general I imagine). Steps to ...
1
vote
0answers
553 views

How to debug “company backend” initialization problems?

I am getting error messages initializing some company backend packages, but messages only appear in the *Messages* buffer, like: Company backend 'company-web' could not be initialized: Symbol's ...
1
vote
1answer
2k views

Spacemacs: Company-Anaconda doesnt work

I recently installed Spacemacs and am new to it. 0.200.2@24.5.2 (spacemacs) / 14.04 Ubuntu same problem with 0.200.2@26.0.50.2 (spacemacs) / 14.04 Ubuntu Syntax Checking etc. is working fine, but ...
1
vote
0answers
216 views

emacs crashes while opening .emacs file

When i try to open my .emacs file with emacs i get an error as such. $ emacs .emacs Fatal error 11: Segmentation fault Backtrace: emacs[0x4f74cb] emacs[0x4dcf3e] emacs[0x4f611e] emacs[0x4f6283]...
1
vote
1answer
140 views

Can connect TRAMP with m-x ssh but can't with anything else (org code blocks, C-x C-f, etc.)

I have a very strange issue. I have no idea how to debug. TRAMP hangs every time I issue it via C-x C-f (and choose ssh), when I try to execute a org code block: :tangle: /zeltak@aaa.zzz.yyy.xxx:/...
1
vote
0answers
96 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
757 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
504 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
439 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
911 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
42 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
233 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
2answers
234 views

When I start Emacs: Symbol's value as variable is void: shell-mode-map [duplicate]

System: Windows 10, Emacs 26.1, Helm 3.0 In my init.el: ;; Shell commands history (define-key shell-mode-map (kbd "C-c C-l") 'helm-comint-input-ring) When I start Emacs I get the following error: ...
0
votes
1answer
415 views

Gui won't start, throws an “Args out of range: 0, 100”

The only response I got is this: Weird behavior: GUI won't start, but terminal emacs will But he doesn't clarify on the solution. I have the same problem, my .Xdefaults and/or .Xresources causes ...
0
votes
1answer
42 views

Having trouble pinpointing this error wrong argument listp 1

I'm having trouble finding where the problem here is exactly. The result I'd like returned is a string that looks like 1. (n,adj-no) occupation 2. business My function is here and it looks like ...
0
votes
1answer
266 views

“symbol's function definition is void: -dotimes” Error

I'm trying to use the following function (extracted from the amazing emacs-prelude configuration) (defun prelude-duplicate-current-line-or-region (arg) "Duplicates the current line or region ARG ...
0
votes
1answer
49 views

I see “Unnecessary call to ‘package-initialize’ in init file” but can't find the call to `package-initialize`

I'm running Emacs from HEAD on Mac OS. I installed emacs-plus using the --HEAD argument with homebrew. I did a whole grep for (package-initialize) in ~/.emacs.d/. The only reference I found to it is ...
0
votes
2answers
32 views

Symbol's value as variable is void: ‘yes-or-no-p

I have the following lines in my config file: (fset 'yes-or-no-p 'y-or-n-p) (setq confirm-kill-emacs ‘yes-or-no-p) The latter line is what's throwing the error. I would like to be able to use 'y-or-...
0
votes
1answer
34 views

Cannot jump to file or location link in grep-mode or compile-mode

I have recently installed emacs on a new system (Manjaro arch-linux), using my usual configuration (available here, if relevant). However, the jump function never works on this new system: whenever ...
0
votes
1answer
87 views

how to resolve Symbol's value as variable is void when using ledger-mode

I am trying to setup a workflow wherein I generate Ledger files from different record files. Typically I like to view them in ledger mode after cleaning but if I make a change to the conversion, then ...
0
votes
1answer
29 views

Identify which mode is throwing an error

I am attempting to edit a file. Emacs is preventing me from making the edit, and throwing: Args out of range: #<buffer user.action.js>, 4965, 17721. It is completely not obvious to me where this ...
0
votes
1answer
162 views

(require 'package) is newly very slow on Windows

In recent weeks, (require 'package) takes minutes. This only happens on Windows, not on macOS or GNU/Linux. What is going on? emacs-version is GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-11-15. ...
0
votes
4answers
116 views

Set the mark at the beginning of the current function definition

I want this function: assume that I am inside a function, and in line 100, now I want to go to the definition of this function, say 80, and set mark, then go back to 100. So now I have an active ...