IntelliJ and Hammerspoon files
See original GitHub issueEnvironment
Name | Version |
---|---|
IDEA version | Build #IU-222.3244.4, built on June 29, 2022 |
Luanalysis version | 1.2.2-IDEA203 |
OS | macOS M1 Monterey 12.1 (21C52) |
Preferences
Preferences -> Languages & Frameworks > Luanalysis:
Lua
Name | Setting |
---|---|
Language level | Lua 5.3 |
Type Safety
Name | Setting |
---|---|
Strict nil checks | ❎ |
Unknown type (any) is indexable | ☑️ |
Unknown type (any) is callabale | ☑️ |
What are the steps to reproduce this issue?
i tried to use IntelliJ IDEA to edit the hammerspoon lua files
What happens?
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
local function Set (list)
local set = {}
for _, l in ipairs(list) do set[l] = true end -- error: No such indexer '[V]' found on type 'table'
return set
end
What were you expecting to happen?
- no errors
- a way to include the hammerspoon source files
Any logs, error output, etc?
No such member 'setFrame' found on type 'V'
No such indexer '[V]' found on type 'table'
Any other comments?
…
Issue Analytics
- State:
- Created a year ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Issues · Benjamin-Dobell/IntelliJ-Luanalysis - GitHub
Contribute to Benjamin-Dobell/IntelliJ-Luanalysis development by creating an account on GitHub. ... IntelliJ and Hammerspoon files.
Read more >Hammerspoon vs IntelliJ IDEA detailed comparison as of 2022 - Slant
When comparing Hammerspoon vs IntelliJ IDEA, the Slant community recommends IntelliJ IDEA for most people. In the question "What are the best power...
Read more >docs » hs.application - Hammerspoon
... provided are defined in the Carbon framework headers in the Menus.h file, ... of the application on disk, e.g. "IntelliJ IDEA", rather...
Read more >Creating a productive osx environment - Hammerspoon
This post will introduce hammerspoon, an automation framework for macOS. If you are interested in more osx productivity blog posts, ...
Read more >My Personal Mac Productivity Setup | by Alfian Dhimas - Medium
Let's make the configuration file in ~/.hammerspoon/init.lua. First thing first, let's add our ... That made me decided to move to IntelliJ by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Luanalysis is fairly opinionated. You can certainly turn inspections off but you’ll lose out on the type safety benefits. In this case you probably want something like:
the creator of EmmyLua explained why he not direct use the files in App folder - but maybe there is an other idea how to get it working 😃
Simply adding the hammerspoon
extensions
directory as an external library doesn’t work for a couple of reasons:Source: https://github.com/Hammerspoon/hammerspoon/pull/2530#issue-710269254