yardnsm / tmux-1password

:key: Access your 1Password login items within tmux!
MIT License
256 stars 24 forks source link

Fails to fetch the items #4

Open dentuzhik opened 6 years ago

dentuzhik commented 6 years ago

Hey, I didn't manage to launch it with my 1password config, it seems that it crashes with session error, but I am pretty sure that I have op cli session running through CLI.

The question is how do I debug it to provide more info? I have looked into the source and .op_tmux_token_tmp was empty, but situation didn't change after I filled it with a session from op cli manually.

I have a suspicion that JQ fails to parse the output. kapture 2018-10-21 at 12 51 27

yardnsm commented 6 years ago

Thanks for reporting an issue!

Does the file ~/.op/config exists in your machine and filled properly with your details? If not, follow the initial login instructions in the README.

I've deleted that file in my machine, and the plugin behaves just like in your gif.

dentuzhik commented 6 years ago

Hey, thanks for a quick reply. Yes I do have the configuration file, seems legit (especially since CLI listing works) and, looks like this: image

Occasionally I see some error flashing, is there some way to keep the pane open to see it better?

sean-d commented 3 years ago

I can confirm this is still an issue. "op list items" returns what I would expect so I know the CLI toolset is working. I don't know if this is something you even monitor anymore but it would be great to have this tool in tmux.

yardnsm commented 3 years ago

Hey! I couldn't reproduce this issue, so I've added a simple debug mode to the recent version of the plugin (#26).

Could you please enable it as follows and attach the output?

tmux set-option -g @1password-debug "on"
sean-d commented 2 years ago

The issue for me was not your plugin, it wound up being an issue with terminfo funnily enough. I back-burnered this issue until I had time...which looked to be many months from when I posted above. Sorry about that.

https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95 was my saving grace.