File Mode Specification Error Wrong-type-argument Stringp Nil
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you emacs file mode specification error void-function might have Meta Discuss the workings and policies of this site file mode specification error wrong number of arguments About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or file mode specification error (void-function format-message) posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of emacs wrong-type-argument 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up wrong type argument: stringp, nil up vote 19 down vote favorite 5 Before now I've just been cutting and pasting code into my .emacs file, but then I decided to add some maven functionality to emacs.
Emacs Debug On Error
Now, I don't see how I was able to mess this up, but last night I kept getting the error I put in the title when I run M-x jarl-mvn-exec. I slept on it, and came back the next day but I'm still not getting anywhere. (defun jarl-get-pom () (concat (locate-dominating-file (buffer-file-name (current-buffer)) "pom.xml") "pom.xml")) (defun jarl-visit-pom () (interactive) (find-file (jarl-get-pom))) (defun jarl-mvn-exec () (interactive) (switch-to-buffer (get-buffer-create "maven")) (start-process-shell-command "mvn-exec" "maven" "mvn" "-f" (jarl-get-pom) "compile") (start-process-shell-command "mvn-exec" "maven" "mvn" "-f" (jarl-get-pom) "exec:exec")) emacs elisp share|improve this question asked Mar 24 '11 at 2:03 HahaHortness 97511115 add a comment| 2 Answers 2 active oldest votes up vote 26 down vote accepted You'll need to provide more information to be sure. Try setting (setq debug-on-error t) which will give you a stack trace showing what function is complaining about the string being nil. My guess is that buffer-file-name is returning nil, and that's where the problem lies (not all buffers have file names).
Sign in Pricing Blog Support Search GitHub This repository Watch 28 Star 98 Fork 27
Update Spacemacs
commercialhaskell/stack-ide Code Issues 26 Pull requests 0 Projects 0 Pulse company mode Graphs New issue Flycheck: File mode specification error: (wrong-type argument stringp nil) #91 Open mtesseract opened this Issue Oct 1, 2015 · 1 comment Projects None yet Labels stack-mode Milestone No milestone Assignees No one assigned 2 participants http://stackoverflow.com/questions/5413959/wrong-type-argument-stringp-nil mtesseract commented Oct 1, 2015 Hi, I am trying to setup stack-mode in Emacs 24 for the first time -- so far with no luck. My ~/.emacs is this: (when (>= emacs-major-version 24) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize)) (add-to-list 'load-path "~/src/stack-ide/stack-mode/") (require 'stack-mode) (add-hook 'haskell-mode-hook 'stack-mode) I https://github.com/commercialhaskell/stack-ide/issues/91 have installed flycheck from melpa and stack-mode by following the steps on https://github.com/commercialhaskell/stack-ide. When I open a Haskell source file Emacs throws the following error: File mode specification error: (wrong-type-argument stringp nil) The relevant part of the backtrace is: signal(wrong-type-argument (stringp nil)) #[257 "300 210301�@�A"207" [flycheck-report-failed-syntax-check signal] 4 "nn(fn ERR)"]((wrong-type-argument stringp nil)) funcall(#[257 "300 210301�@�A"207" [flycheck-report-failed-syntax-check signal] 4 "nn(fn ERR)"] (wrong-type-argument stringp nil)) flycheck-buffer() flycheck-select-checker(stack-ide) (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer)) (if stack-mode-manage-flycheck (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer))) (progn (if (and (boundp (quote interactive-haskell-mode)) interactive-haskell-mode) (progn (if (y-or-n-p "interactive-haskell-mode is enabled. Disable it?") (progn (interactive-haskell-mode -1))))) (if stack-mode-manage-flycheck (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer)))) (if stack-mode (progn (if (and (boundp (quote interactive-haskell-mode)) interactive-haskell-mode) (progn (if (y-or-n-p "interactive-haskell-mode is enabled. Disable it?") (progn (interactive-haskell-mode -1))))) (if stack-mode-manage-flycheck (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer)))) (if stack-mode-manage-flycheck (progn (flycheck-mode -1)))) (progn (if stack-mode (progn (if (and (boundp (quote interactive-haskell-mode
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You https://sourceforge.net/p/cedet/mailman/message/26452326/ seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse CEDET Mailing Lists CEDET Brought to you by: zappo Summary Files Reviews Support Wiki Mailing on error Lists Tickets ▾ Feature Requests Patches Bugs Bazaar Git cedet-devel cedet-eieio cedet-semantic Re: [cedet-semantic] make utest failed Re: [cedet-semantic] make utest failed From: Eric M. Ludlam