~xerool/fennel-ls#39: 
Break when print

(macro f [x]
  (print x)
  (print 1))
(f 2)
[coc.nvim] Connection to server fennel is erroring, Header must provide a Content-Length property.
{"2\n1\ncontent-length":"118"}. Shutting down server.
Status
RESOLVED FIXED
Submitter
~freedwu
Assigned to
No-one
Submitted
3 months ago
Updated
2 months ago
Labels
bug

~technomancy 2 months ago

Hm; Fennel makes this harder than it should be; you can override the compiler environment, but you can't say "I want the normal compiler environment except for just this one function."

I think we might just need to remove _G.print directly during compilation and bring it back after.

~technomancy REPORTED FIXED 2 months ago

I've used the hack of just disabling it thru globals; printing during macros now has no effect.

Register here or Log in to comment, or comment via email.