Giter Site home page Giter Site logo

Missing debug.traceback? about wezterm HOT 3 CLOSED

jaidetree avatar jaidetree commented on August 27, 2024 1
Missing debug.traceback?

from wezterm.

Comments (3)

wez avatar wez commented on August 27, 2024

The lua debug module is not safe and it is not initialized in the lua runtime that is embedded into wezterm.
This is working as intended.

from wezterm.

jaidetree avatar jaidetree commented on August 27, 2024

Unfortunate but thanks for your response!

from wezterm.

will avatar will commented on August 27, 2024

I'm posting this comment here in case future people can't figure out how to use fennel macros in wezterm and come across this issue while searching for a solution.

If you're using any macro in fennel, even ones that come with the language, not just macros you make yourself, they will not (and will never) work in wezterm out of the box due to the debug module being intentionally omitted.

I was able to work around this by adding this to the wezterm Lua file before any fennel files are required.

 debug = {traceback = function() end}

Importantly there is no local before the variable, it has to be a global. Credit to @jaidetree who found the workaround and shared a slightly different version with me elsewhere.

Hope this helps any future people who stumble across this issue.

from wezterm.

Related Issues (20)

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.