oakes / Nightcode

An IDE for Clojure
https://sekao.net/nightcode/
The Unlicense
1.4k stars 124 forks source link

Unparseable characters not rendered or detected #236

Open metaperl opened 6 years ago

metaperl commented 6 years ago

Per this reddit discussion we see that the following code will cause the Clojure compiler to throw an error:

 (defn r->lfix 
  ([a op b] (op a b))
  ([a op1 b op2 c] (op1 a (op2 b c)))
  ([a op1 b op2 c op3 d] (op1 a (op2 b (op3 c d))))�)

However:

  1. the unparseable character is not rendered when this code is pasted into Nightcode
  2. Nightcode does not flag the line as syntactically invalid

The error is only caught when one attempts to compile the code.

oakes commented 6 years ago

I'll take a look at this, thank you for pointing it out.