Closed lukehoersten closed 8 years ago
+1 I get exactly the same thing.
I think I've figured some hints out here. This is happening when an empty string is returned on the JSON API from stack-ide
process. So that's a problem with stack-ide
but stack-mode
should probably do something more elegant with the empty return than having a runtime type error.
We may actually need a special case of insert type for top level functions. Right now it wraps the expression in (name ::) when really that doesn't work for top levels.
The response from stack-ide changed format.
When running
stack-mode-type
with a non-zero argument, a type error occurs: