Closed dahtah closed 3 years ago
I wonder where this :nothing
is coming from, because the command that runs on the server side is returning an empty array when no completions are found (and I thought completion at point should be ok with empty lists as the result, but maybe I'm wrong):
julia> JuliaSnail.replcompletion("xyz",Main) == []
true
Is the Snail server translating empty arrays to nothing
when sending the results back?
Oh, I guess this is due to this line in julia-snail--send-to-server
which will cause it to return :nothing
when an empty array is returned from the server (since it gets translated to '()
which in turn is equivalent to nil
):
https://github.com/gcv/julia-snail/blob/aeaef908faaa4b8a4f308e396c3f99e9f2da0321/julia-snail.el#L439
Fixed in f4f483e, now in MELPA. Please take a look.
MRE:
Should return nil instead, this makes company-capf complain. I'll fix this unless someone does it first.