Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to edit lua files with sources of hammerspoon attached #3247

Open
muescha opened this issue Jul 5, 2022 · 5 comments
Open

How to edit lua files with sources of hammerspoon attached #3247

muescha opened this issue Jul 5, 2022 · 5 comments

Comments

@muescha
Copy link
Contributor

muescha commented Jul 5, 2022

i tried to use IntelliJ IDEA Luanalysis to edit the lua files.

one problem is, that it marks me some of the hs. as unknown variables and also some more errors because of unknown types

this also show me an error:

  local win = hs.window.focusedWindow()
  local app = win:application()
  local currentFrame = win:frame()
  local wins = app:allWindows()
  for _, childwin in ipairs(wins) do
    childwin:setFrame(currentFrame) -- No such member 'setFrame' found on type 'V'
  end
@latenitefilms
Copy link
Contributor

The information in this pull request might help?

#2530

@latenitefilms
Copy link
Contributor

Actually, better yet, this Spoon:

http://www.hammerspoon.org/Spoons/EmmyLua.html

@muescha
Copy link
Contributor Author

muescha commented Jul 6, 2022

thx - i will dig into it

@muescha
Copy link
Contributor Author

muescha commented Aug 8, 2022

EmmyLua is a little help but not complete satisfying
Bildschirmfoto 2022-08-08 um 13 34 45

@muescha
Copy link
Contributor Author

muescha commented Aug 8, 2022

@folke you have an idea how to fix this on Intellij IDEA?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants