Git Product home page Git Product logo

Comments (6)

ys64 avatar ys64 commented on June 25, 2024 1

No, I have not. Actually, that is a great idea! I did not know I can run Hammerspoon with an empty init.lua.

Also, because of your comment, I was able to fix the issue.

The issue was caused by the following line:

package.path = package.path .. ";" .. "/opt/homebrew/opt/luarocks/share/lua/5.4/luarocks/?.lua"

I use luarocks and I used to have that line enabled to make it work.

However, commenting it out enables me to run Hammerspoon without any issues.

So, I am back to normal! Thank you very much! ๐Ÿ˜Š

from hammerspoon.

muescha avatar muescha commented on June 25, 2024

what is the code in line 15?

/Users/ys/.hammerspoon/init.lua:15: in main chunk

from hammerspoon.

ys64 avatar ys64 commented on June 25, 2024

This is the code in line 15:

require "core"

from hammerspoon.

muescha avatar muescha commented on June 25, 2024

Did you check if it starts with an empty ini.lua?

from hammerspoon.

muescha avatar muescha commented on June 25, 2024

I am happy that my hint was helpful.

I also use luarocks, and I found this solution for me:

https://github.com/muescha/dot_hammerspoon/blob/master/Functions/SetupLuaRocks.lua

(I remember that this luarocks and luasockets was a requirement to enable debugging (with mobdebug and luanalysis) in IntelliJ IDEA)

from hammerspoon.

ys64 avatar ys64 commented on June 25, 2024

Thank you for sharing your SetupLuaRocks.lua!

You are much more advanced than I am. I found a couple of interesting Functions in your repository that I can use! Thank you! ๐Ÿ˜Š

from hammerspoon.

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.