Error* Wrong Type Argument Stringp Nil
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow emacs wrong type argument stringp the company Business Learn more about hiring developers or posting ads with us Stack emacs stringp 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 arrayp nil 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 emacs wrong type argument number-or-marker-p nil and pasting code into my .emacs file, but then I decided to add some maven functionality to emacs. 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")
Emacs Debug On Error
"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). Check out the debugging section of An Introduction To Programming in Emacs Lisp, or the debugging section of the Emacs Lisp manual. share|improve this answer answered Mar 24 '11 at 2:19 Trey Jackson 59.9k8150190 My intention was to get the pom above the file for the current buffer in emacs, but I switched the buffer to a different one(one with no file) to see the results of my maven commands. –HahaHortness Mar 24 '11 at 3:29 add a comment| up vote 9 down vote The secret to finding a problem in your init file is not a secret: binary search. Use comment-region to comment
Sign in Pricing Blog Support Search GitHub
Spacemacs Windows
This repository Watch 80 Star 1,655 Fork 296 emacs lisp bbatsov/projectile Code Issues 105 Pull requests 9 Projects 0 Wiki Pulse Graphs New issue Wrong type argument: stringp, nil #920 Closed kulbida opened this Issue Dec 2, 2015 · 1 comment Projects None yet http://stackoverflow.com/questions/5413959/wrong-type-argument-stringp-nil Labels None yet Milestone No milestone Assignees No one assigned 2 participants kulbida commented Dec 2, 2015 While trying to find other file getting with M-x helm-projectile-find-other-file getting this: Wrong type argument: stringp, nil Debugger output: 1 Debugger entered--Lisp error: (wrong-type-argument https://github.com/bbatsov/projectile/issues/920 stringp nil) 2 file-name-nondirectory(nil) 3 projectile-associated-file-name-extensions(nil) 4 projectile-get-other-files(nil (".gitattributes" ".gitignore" "Capfile" "DEPLOY_NOTES.md" "DEVELOPMENT_TARGET_VERSION.rb" "Gemfile" "Gemfile.lock" "Procfile" "README.md" "Rakefile" "app$ 5 helm-projectile-find-other file(nil) 6 call-interactively(helm-projectile-find-other-file nil nil) 7 command-execute(helm-projectile-find-other-file) justmytwospence referenced this issue in bbatsov/helm-projectile Jan 25, 2016 Open helm-projectile-find-files #10 Owner bbatsov commented Oct 6, 2016 Seems like a duplicate of bbatsov/helm-projectile#10 bbatsov closed this Oct 6, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Sign in Pricing Blog Support Search GitHub https://github.com/clojure-emacs/cider/issues/1390 This repository Watch 153 Star 1,926 Fork 333 clojure-emacs/cider Code Issues 77 Pull requests 2 Projects 0 Wiki Pulse Graphs New issue Lisp error: (wrong-type-argument stringp nil) on cider-jack-in #1390 Closed tobiasbayer opened this Issue Oct 29, 2015 · 6 wrong type comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants tobiasbayer commented Oct 29, 2015 When trying to cider-jack-in I get the following error: Debugger entered--Lisp error: (wrong-type-argument stringp nil) nrepl-op-supported-p("artifact-list" nil) cider-nrepl-op-supported-p("artifact-list") wrong type argument cljr--op-supported\?("artifact-list") -remove(cljr--op-supported\? ("artifact-list" "artifact-versions" "clean-ns" "extract-definition" "find-symbol" "find-used-locals" "hotload-dependency" "namespace-aliases" "rename-file-or-dir" "resolve-missing" "stubs-for-interface" "version" "warm-ast-cache")) cljr--check-nrepl-ops() cljr--init-middleware() run-hooks(nrepl-connected-hook) nrepl-start-client-process(nil 55546 #