volrath / spiral

Emacs Clojure IDE based on UNREPL
GNU General Public License v3.0
149 stars 6 forks source link

parse-clj related errors after connecting to repl in a recent master build of emacs #10

Closed j0ni closed 6 years ago

j0ni commented 6 years ago

I'm seeing several instances of this pair of errors:

error in process filter: parseclj-unparse-clojure: Wrong type argument: char-or-string-p, nil
error in process filter: Wrong type argument: char-or-string-p, nil

when I connect to a repl and start typing.

I have a directory with a deps.edn in it, containing the following:

{:deps
 {com.rpl/specter {:mvn/version "1.1.0"}
  prismatic/schema {:mvn/version "1.1.7"}}}

and subdirectory src/immutable containing a single demo.clj file, which itself contains only the following:

(ns immutable.demo)

In a shell, with the cwd of the project root, I start a repl like so:

clj -J-Dclojure.server.myrepl="{:port 5555,:accept,clojure.core.server/repl}"

and connect using spiral-connect with the demo.clj open in a buffer.

Immediately I see 2 instances of the pair of errors above. Then, I start typing in the repl. I started typing a require, got as far as:

user=> (require '[com.])

by which time I had seen another 12 pairs of that error.

This is likely a completion issue as we discussed in slack. It could also be related to the fact that I'm using a dev build of emacs.

volrath commented 6 years ago

This should be fixed with 907b9792467139a942ba7b07ca0276b90770baf9

Sorry it took me so long to get back to this and thanks for reporting.