hotpot.nvim icon indicating copy to clipboard operation
hotpot.nvim copied to clipboard

`require("fennel")` from `.lua` file breaks `provide_require_fennel` on a macro file

Open datwaft opened this issue 2 years ago • 1 comments

I finally got to reproduce the bug we were talking about: https://github.com/rktjmp/hotpot.nvim/issues/38#issuecomment-927229883.

It seems that requiring Fennel from the init.lua file breaks the provide_require_fennel configuration option for the macro files.

How to reproduce

I created this repository to reproduce the issue using Docker: datwaft/hotpot-issue_39.

datwaft avatar Sep 29 '21 15:09 datwaft

Btw, executing the following snippet using :Fnl also reproduces the issue:

(macro test []
  (local {: view} (require :fennel))
  (print view))
(test)

If you change macro to fn it's no longer reproduced.

datwaft avatar Sep 29 '21 16:09 datwaft

Seems fixed...

image

rktjmp avatar Nov 05 '22 16:11 rktjmp