{"action":"created","issue":{"url":"https://api.github.com/repos/flycheck/flycheck/issues/1002","repository_url":"https://api.github.com/repos/flycheck/flycheck","labels_url":"https://api.github.com/repos/flycheck/flycheck/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/flycheck/flycheck/issues/1002/comments","events_url":"https://api.github.com/repos/flycheck/flycheck/issues/1002/events","html_url":"https://github.com/flycheck/flycheck/issues/1002","id":163184828,"number":1002,"title":"Flycheck wrong-type-argument stringp 47 error","user":{"login":"kevinj2016","id":20227107,"avatar_url":"https://avatars.githubusercontent.com/u/20227107?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinj2016","html_url":"https://github.com/kevinj2016","followers_url":"https://api.github.com/users/kevinj2016/followers","following_url":"https://api.github.com/users/kevinj2016/following{/other_user}","gists_url":"https://api.github.com/users/kevinj2016/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinj2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinj2016/subscriptions","organizations_url":"https://api.github.com/users/kevinj2016/orgs","repos_url":"https://api.github.com/users/kevinj2016/repos","events_url":"https://api.github.com/users/kevinj2016/events{/privacy}","received_events_url":"https://api.github.com/users/kevinj2016/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flycheck/flycheck/labels/invalid","name":"invalid","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-06-30T14:50:31Z","updated_at":"2016-07-09T04:22:19Z","closed_at":"2016-07-07T17:21:11Z","body":"I'm new to Flycheck, and am trying to make warnings for references and assignments to free variables and unknown functions go away from the Flycheck errors list. I'm using `(require 'my-dcls)` statements in my code files in hopes that Flycheck can load the declarations to help avoid free variable warnings.\r\n\r\nUnfortunately, I have had zero luck with Flycheck in this regard, despite doing my homework reading, experimenting, etc. Here's a link to my posting over on [StackExchange Emacs](http://emacs.stackexchange.com/questions/24261/flycheck-variable-warnings-despite-flycheck-load-path).\r\n\r\nI set up an Emacs -Q session on my OSX machine (thanks to a posting by @lunaryorn on his website), and received this error information for the Elisp code files that I visited. Suggestions for how to solve the issue are welcome. Thank you.\r\n\r\n---\r\n\r\n;; Here's the minibuffer error that shows up on every file that I visited\r\n;; I turned on (setq debug-on-error t), and got this backtrace\r\n;; Error while syntax checking automatically: (wrong-type-argument stringp 47)\r\n\r\n```lisp\r\nDebugger entered--Lisp error: (wrong-type-argument stringp 47)\r\n  signal(wrong-type-argument (stringp 47))\r\n  #[257 \"\\300 \\210\\301\u0001@\u0002A\\\"\\207\" [flycheck-report-failed-syntax-check signal] 4\r\n  \"\\n\\n(fn ERR)\"]((wrong-type-argument stringp 47))\r\n  funcall(#[257 \"\\300 \\210\\301\u0001@\u0002A\\\"\\207\"\r\n  [flycheck-report-failed-syntax-check signal] 4 \"\\n\\n(fn ERR)\"] (wrong-type-argument stringp 47))\r\n  flycheck-buffer()\r\n  #[0 \"\\300 \\207\" [flycheck-buffer] 1 \"\\n\\n(fn)\"]()\r\n  funcall(#[0 \"\\300 \\207\" [flycheck-buffer] 1 \"\\n\\n(fn)\"])\r\n  flycheck-buffer-automatically(idle-change)\r\n  flycheck-handle-idle-change()\r\n  apply(flycheck-handle-idle-change nil)\r\n  byte-code(\"r\\301\b\\302H\b\\303H\\\"\\210)\\301\\207\" [timer apply 5 6] 4)\r\n  timer-event-handler([t 22389 10851 474327 nil flycheck-handle-idle-change nil nil 0])\r\n\r\nSyntax checkers for buffer kwj-std-funs.el in lisp-interaction-mode:\r\n\r\n emacs-lisp\r\n    - predicate:  t\r\n    - executable: Found at /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9\r\n\r\nFlycheck Mode is enabled.  Use C-u C-c ! x to enable disabled checkers.\r\n```\r\n\r\nFlycheck version: 29snapshot (package: 20160622.952)\r\nEmacs Version 24.5.1, OSX app\r\n\r\nToday I tried to reproduce the error by:\r\n- loading emacs -Q on OSX\r\n- ESC-x exec-path-from-shell-initialize\r\n- ESC-x global-flycheck-mode\r\n- find-file one of my Lisp files with a \"(require 'my-dcls)\" in it (flycheck couldn't find the file)\r\n- Eval: (setq debug-on-error t)\r\n- tried to save the file, and got this different version of the error:\r\n\r\n```lisp\r\nDebugger entered--Lisp error: (wrong-type-argument stringp 47)\r\n  signal(wrong-type-argument (stringp 47))\r\n  #[257 \"\\300 \\210\\301\u0001@\u0002A\\\"\\207\" [flycheck-report-failed-syntax-check signal] 4 \"\\n\\n(fn ERR)\"]((wrong-type-argument stringp 47))\r\n  funcall(#[257 \"\\300 \\210\\301\u0001@\u0002A\\\"\\207\" [flycheck-report-failed-syntax-check signal] 4 \"\\n\\n(fn ERR)\"] (wrong-type-argument stringp 47))\r\n  flycheck-buffer()\r\n  #[0 \"\\300 \\207\" [flycheck-buffer] 1 \"\\n\\n(fn)\"]()\r\n  funcall(#[0 \"\\300 \\207\" [flycheck-buffer] 1 \"\\n\\n(fn)\"])\r\n  flycheck-buffer-automatically(save)\r\n  flycheck-handle-save()\r\n  run-hooks(after-save-hook)\r\n  basic-save-buffer()\r\n  save-buffer(1)\r\n  call-interactively(save-buffer nil nil)\r\n  command-execute(save-buffer)\r\n```"},"comment":{"url":"https://api.github.com/repos/flycheck/flycheck/issues/comments/231514245","html_url":"https://github.com/flycheck/flycheck/issues/1002#issuecomment-231514245","issue_url":"https://api.github.com/repos/flycheck/flycheck/issues/1002","id":231514245,"user":{"login":"kevinj2016","id":20227107,"avatar_url":"https://avatars.githubusercontent.com/u/20227107?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinj2016","html_url":"https://github.com/kevinj2016","followers_url":"https://api.github.com/users/kevinj2016/followers","following_url":"https://api.github.com/users/kevinj2016/following{/other_user}","gists_url":"https://api.github.com/users/kevinj2016/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinj2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinj2016/subscriptions","organizations_url":"https://api.github.com/users/kevinj2016/orgs","repos_url":"https://api.github.com/users/kevinj2016/repos","events_url":"https://api.github.com/users/kevinj2016/events{/privacy}","received_events_url":"https://api.github.com/users/kevinj2016/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T04:22:19Z","updated_at":"2016-07-09T04:22:19Z","body":"I was thinking some more about your question about what led me astray. I realized that `flycheck-emacs-lisp-load-path` is NOT always a list. It can be set to `'inherit`, for example, or to a list. It seems to me that because it can be either a list or a non-list, that you must already be doing some type checking at that point in the code. So it seems to me that it wouldn't be breaking any type-checking precedents if you tested for a single directory string at that same point in the code, and just made it into a list.  Just my two bits. I've got Flycheck working now, and am grateful for the instant help it provides. Thank you."}}
{"actor":{"display_login":"kevinj2016"}}