Closed johnallen3d closed 6 years ago
@kovidgoyal Hello, thanks for the fix, it is now working fine when running kitty via python3 .
in the source directory. However when i run make app
and open the generated app file, the command is ignored and nothing is raised. Any idea if it's a bug or a configuration issue? Thank you
Try running
kitty +kitten ask
What does it output?
Thank you for the quick fix! I'm in the same boat as @sle-odoo, if I run kitty
from python3 .
or a binstub it works great but not from the packaged kitty.app
.
I tried running kitty +kitten ask
and receive a prompt. I typed in hello
and hit enter and received the following response:
> kitty +kitten ask
{'items': [], 'response': 'hello'}
You ran it from within kitty.app (i.e. in a terminal window run from kitty.app?) That is basically what is run to ask for the tab title.
Yes, I launched a new instance of kitty
from /Applications/kitty.app
and that works find. However when I hit the key combo for setting the tab title ctrl+shift+alt+t
nothing happens.
Look in console.app if any errors are reported or run /Applications/kitty.app/Contents/MacOS/kitty from another terminal and see if it prints out anything when trying to set the tab title.
In Console.app I see the following after hitting the key combo:
Failed to send resize signal to child with id: 11 (children count: 1) (add queue: 0)
and there is a reference to fast_data_types.so
.
If I run /Applications/kitty.app/Contents/MacOS/kitty
from another terminal (iTerm.app) everything works as expected.
I'm at a loss, just use python3 .
for the time being and with the next release you can use the released .dmg which works (sadly I can't test the make app version as by build machine is not capable of running kitty, only building it).
No worries, thanks for troubleshooting with us and for the great app!
I can confirm this as well. Installed via homebrew.
Hello @kovidgoyal - I noticed the recent release of 0.9.1
so I installed the .dmg
version this morning. Sadly I'm back to seeing the originally reported error from the version installed via the .dmg
. I also re-built from source and experience the before described behavior (works w/ python3 .
, nothing happens with .app
version).
Strange, works fine for me when running from the released dmg. At this point someone that can reproduce it will have to debug further. When asking for the tab title kitty runs the ask kitten. This happens in kittens/runner.py in the launch function. Which in turn calls the main() function in kittens/ask/main.py
Stick some print statments in there to see what is happening. You can use
from kitty.utils import log_error
log_error('some text')
to print to Console.app or if you want to print to a file just do
print('some text', file=open('/tmp/kitty-log', 'a'))
FYI - for others running into this issue. I've been using skhd (in combination with chunkwm) as an application launcher/switcher. I've found if I open the binary directly from the app
folder this issue does not persist.
Here's my skhd mapping for example:
cmd + shift - i : open -a /Applications/Kitty.app/Contents/MacOS/kitty
When I hit the default key combination to set a tab title I see the error below.
kitty version: 0.9.0 (installed via. release dmg) OS: MacOS OS version: 10.13.4 kitty config:
map ctrl+shift+alt+t set_tab_title
error detail: