agzam / spacehammer

Hammerspoon config inspired by Spacemacs
MIT License
556 stars 70 forks source link

[Question] `fennelview.fnl: No such file or directory` #172

Closed jeongsoolee09 closed 1 year ago

jeongsoolee09 commented 1 year ago

Hello! I have installed Spacehammer on the setup as following:

I am aware that since Fennel 0.8.0 had the fennelview package merged into the language itself, Spacehammer was updated accordingly. However, my copy of Spacehammer is still looking for the fennelview module in a separate file, which is mysterious:

2022-12-05 14:06:59: -- Lazy extension loading enabled
2022-12-05 14:07:00: -- Loading ~/.hammerspoon/init.lua
2022-12-05 14:07:00: -- Loading extension: alert
2022-12-05 14:07:00: -- Loading extension: ipc
2022-12-05 14:07:00: -- Loading extension: fnutils
2022-12-05 14:07:00: -- Loading extension: logger
2022-12-05 14:07:00: -- Loading extension: hints
2022-12-05 14:07:00: -- Loading extension: window
2022-12-05 14:07:00: -- Loading extension: pathwatcher
2022-12-05 14:07:00: -- Loading extension: hotkey
2022-12-05 14:07:00: 14:07:00     hotkey: Enabled hotkey ⌘⌃`
2022-12-05 14:07:00: -- Loading extension: drawing
2022-12-05 14:07:00: -- Loading extension: console
2022-12-05 14:07:00: -- Loading extension: inspect
2022-12-05 14:07:00: *** ERROR: /usr/local/share/lua/5.4/fennel.lua:4839: fennelview.fnl: No such file or directory
stack traceback:
    [C]: in function 'assert'
    /usr/local/share/lua/5.4/fennel.lua:4839: in function 'fennel.dofile'
    /usr/local/share/lua/5.4/jeejah/fenneleval.lua:3: in main chunk
    [C]: in function 'rawrequire'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
    /usr/local/share/lua/5.4/jeejah.lua:340: in function 'jeejah.start'
    ./repl.fnl:37: in function 'repl.start'
    /Users/{user}/.spacehammer/config.fnl:60: in main chunk
    (...tail calls...)
    [C]: in function 'rawrequire'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
    ./core.fnl:120: in main chunk
    (...tail calls...)
    [C]: in function 'rawrequire'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
    /Users/{user}/.hammerspoon/init.lua:12: in main chunk
    [C]: in function 'xpcall'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:723: in function 'hs._coresetup.setup'
    (...tail calls...)
2022-12-05 18:20:24: -- Loading extension: doc

I'm new to Hammerspoon, Lua, and Fennel at the same time, so please bear with me, and thanks for this wonderful project! I will start hacking on it as soon as I get the repl module start working.

jeongsoolee09 commented 1 year ago

FYI: The Hammerspoon console also says the fennel installed is of version 1.1.0:

> local fennel = require 'fennel'

> fennel.version
1.1.0
jeongsoolee09 commented 1 year ago

Actually, I have solved this issue just by getting the missing .lua or .fnl files in my $HOME/.hammerspoon, which is I love Lua!