I'm having trouble installing flycheck. I'm on a Mac (see below for details), and I have placed the 3-line code snippet recommneded on the flycheck installation page in my emacs init file. When I start up emacs (note, I don't use GUI, I always use emacs -nw), and then I attempt to install flycheck with M-x package-install RET flycheck I get the following error: Scan error: "Unbalanced parentheses", 888, 3796 I tried both the MELPA-Stable and MELPA versions, but they both yield the same error. Any ideas as to what's causing this error? Many thanks. Mac and emacs details: MacOS 10.15 (19A602) Emacs from https://emacsformacosx.com/  GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02

  • 1
    Does your 3-line code snippet contain unbalanced parentheses -- i.e., a missing parenthesis or a missing double quote? [Maybe you copied / pasted and missed an open or close parenthesis ...] You can try opening your .emacs / init.el and type M-x check-parens .... Perhaps your .emacs / init.el contains other errors relating to a missing open / close parenthesis ... – lawlist Nov 6 '19 at 0:34
  • Other than @lawlist's good advice, if you don't show us the code causing the error, we can't show you what the problem is. Can you provide an exact recipe for reproducing the error? – phils Nov 6 '19 at 2:03
  • @lawlist was correct. Thanks for the suggestion. There was an offending square bracket farther up in my init file that never caused a peep before (that I know of), but was catastrophic when the package manager came into play. – NotSoGiantSequoia Nov 6 '19 at 2:16
  • @lawlist Please convert your comment into an answer.@ NotSoGiantSequoia: Please accept lawlist's answer by clicking the V-button (it may be that you have to wait a grace period to be able to do so.) – Tobias Nov 6 '19 at 5:36

As indicated in the comments underneath the question by the original poster, the problem turned out to be a missing square bracket in the user-configuration file. The built-in function M-x check-parens is often times very helpful to locate mismatched parentheses in an open buffer; e.g., open up the user-configuration file and use the function check-parens ....

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.