spacemacs

Drew Verlee 2021-08-29T13:43:53.019300Z

Can anyone advice on what these errors mean and how to fix them?

error in process filter: forward-sexp: Scan error: "Containing expression ends prematurely", 5, 6
error in process filter: Scan error: "Containing expression ends prematurely", 5, 6
Error in 'cider-repl--state-handler': (scan-error Containing expression ends prematurely 5 6)

West 2021-08-29T16:21:21.019500Z

no idea what these could mean Can you provide some information on how to replicate these errors?

practicalli-johnny 2021-08-29T16:21:52.019700Z

Is the error caused by the Clojure code or by the code in the Cider package? Try run your code in a terminal REPL without Cider to identify

practicalli-johnny 2021-08-29T16:23:44.019900Z

My guess is that there is something wrong on the Cider code, or the compiled .el files. You could try the scorched earth approach and delete the Cider package or just it's .el files and restart Emacs to download them again

practicalli-johnny 2021-08-29T16:24:56.020100Z

Or it could code be the Clojure code with unbalanced parents somewhere...

practicalli-johnny 2021-08-29T16:26:50.020300Z

If this error is happening over multiple Clojure projects, then it's probably a Cider package. If it happens just in one and also in the terminal REPL, then it's the Clojure code unbalanced (or wrong in some other way).

🤔 1
Drew Verlee 2021-08-29T20:06:53.020600Z

It is happening over multiple clojure projects.

Drew Verlee 2021-08-29T20:18:22.020800Z

actually it seems to happen related to other tools: File mode specification error: (scan-error Containing expression ends prematurely 5 6) [persp-mode] Error: Can not autoresume perspectives -- (scan-error Containing expression ends prematurely 5 6) command-execute: Buffer is read-only: #<buffer spacemacs>

West 2021-08-29T20:36:25.021Z

these errors seem so erratic it leads me to believe it could be one of two things 1. There’s a missing parenthesis somewhere in your config 2. Your spacemacs installation is corrupted In this case I would check your config to make sure there were not breaking changes. If your config looks alright, then reinstalling spacemacs usually does the trick.

West 2021-08-29T20:37:30.021200Z

If you’re on emacs-28 with gccemacs a.k.a native-comp, then you can delete some packages and force them to recompile.

Drew Verlee 2021-08-29T20:47:32.021400Z

I reinstalled emacs seems to work

Drew Verlee 2021-08-29T20:48:08.021600Z

I was going to do a fresh config next and just layer in my changes but it seems I didn't need to

practicalli-johnny 2021-08-29T20:55:25.021800Z

Probably a bad package or a corrupted .elc file