GithubHelp home page GithubHelp logo

def-keymap-fn throws error about zest.nvim HOT 13 OPEN

tsbohc avatar tsbohc commented on June 14, 2024
def-keymap-fn throws error

from zest.nvim.

Comments (13)

Olical avatar Olical commented on June 14, 2024 2

Oh this should also be fixed by #8, you can use my fork until it's merged too.

from zest.nvim.

UdayvirThind avatar UdayvirThind commented on June 14, 2024

What plugin do you use to compile fennel, I tried it out and it didn't seem like a problem.

from zest.nvim.

p00f avatar p00f commented on June 14, 2024

aniseed

from zest.nvim.

tsbohc avatar tsbohc commented on June 14, 2024

That's conjure's eval buffer, right? It could be just conjure not liking the globals.

I believe aniseed's compiler allows them, though. Does it create the binding successfully?

from zest.nvim.

p00f avatar p00f commented on June 14, 2024

aniseed doesn't like it either

from zest.nvim.

UdayvirThind avatar UdayvirThind commented on June 14, 2024

Found the bug,
Fennel deprecated unknown globals with v10.0,
Aniseed uses fennel v10.0,
conjure also uses aniseed to compile.

from zest.nvim.

tsbohc avatar tsbohc commented on June 14, 2024

Thanks!

Well, that's one more reason to move over to runtime. As it is right now, one either has to explicitly disable strict globals or use an older version of fennel to compile.

I'm pretty busy with uni at the moment, but I'll get to it when I can.

from zest.nvim.

UdayvirThind avatar UdayvirThind commented on June 14, 2024

Yeah,
I also use v0.9.2 to compile because of macros.

from zest.nvim.

p00f avatar p00f commented on June 14, 2024

Thanks!

from zest.nvim.

UdayvirThind avatar UdayvirThind commented on June 14, 2024

Here is a quick dirty solution to this:

(fn local-getter []
  '(fn [xs#]
     (for [i# 1 20]
       (let [(name# local-val#) (_G.debug.getlocal 2 i#)]
         (if (= name# xs#)
           (lua ,(.. "return " (view 'local-val#)))
           (not name#)
           (lua :break))))))

Usage:

; inside macro
(local get# ,(local-getter))
(get# ,(view 'ZEST_VLUA#)) ; tostring can also be used instead of view

from zest.nvim.

p00f avatar p00f commented on June 14, 2024

btw I think conjure uses aniseed's compiler - i downgraded aniseed to 3.20 and i could evaluate this

from zest.nvim.

UdayvirThind avatar UdayvirThind commented on June 14, 2024

If aniseed is installed conjure uses it as it compiler

from zest.nvim.

Olical avatar Olical commented on June 14, 2024

It's not so much to do with the unknown global crack down, I don't think. It's mostly to do with how they enforce gensyms across syntax quote boundaries correctly now.

from zest.nvim.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.