Giter VIP home page Giter VIP logo

Comments (5)

stevearc avatar stevearc commented on June 8, 2024

Looks like the error happens when setting buftype = "prompt". You're using Neovim v0.4.4, but the minimum required version is 0.5. Could you upgrade and see if that fixes it?

from gkeep.nvim.

shalomb avatar shalomb commented on June 8, 2024

Thanks @stevearc for the quick reply. So yes, that covered it - I upgraded and got past that first issue ..

But it seems like i've bumped into another .. this time a terminal problem opening/closing the prompt.

Error detected while processing function _gkeep_prompt_close[1]..remote#define#request:                                                                                               
line    2:
Error invoking '/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep:function:_gkeep_prompt_close' on channel 3 (python3-rplugin-host):
error caught in request handler '/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep:function:_gkeep_prompt_close [['rmihrkqdjzmbjjdy']]':
Traceback (most recent call last):
  File "/usr/lib/python3.9/getpass.py", line 69, in unix_getpass
    old = termios.tcgetattr(fd)     # a copy to save
termios.error: (25, 'Inappropriate ioctl for device')

During handling of the above exception, another exception occurred:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 47, in d
    return f(self, *args[0])
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 81, in w
    f(self, *args, **kwargs)
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 375, in close_prompt
    self._modal.prompt.close(text)
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/modal/prompt.py", line 66, in close
    callback(text)
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 81, in w
    f(self, *args, **kwargs)
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 48, in d
    return f(self, *args)
  File "/home/unop/.local/share/nvim/site/pack/gkeep/start/gkeep.nvim/rplugin/python3/gkeep/plugin.py", line 693, in cmd_login
    keyring.set_password("google-keep-token", email, token)
  File "/usr/local/lib/python3.9/dist-packages/keyring/core.py", line 60, in set_password
    get_keyring().set_password(service_name, username, password)
  File "/usr/local/lib/python3.9/dist-packages/keyring/backends/chainer.py", line 58, in set_password
    return keyring.set_password(service, username, password)
  File "/usr/local/lib/python3.9/dist-packages/keyrings/alt/file_base.py", line 123, in set_password
    password_encrypted = self.encrypt(password.encode('utf-8'), assoc)
  File "/usr/local/lib/python3.9/dist-packages/keyrings/alt/file.py", line 199, in encrypt
    cipher = self._create_cipher(self.keyring_key, salt, IV)
  File "/usr/local/lib/python3.9/dist-packages/keyring/util/properties.py", line 57, in __get__
    return self.fget(obj)
  File "/usr/local/lib/python3.9/dist-packages/keyrings/alt/file.py", line 93, in keyring_key
    self._init_file()
  File "/usr/local/lib/python3.9/dist-packages/keyrings/alt/file.py", line 100, in _init_file
    self.keyring_key = self._get_new_password()
  File "/usr/local/lib/python3.9/dist-packages/keyrings/alt/file.py", line 55, in _get_new_password
    password = getpass.getpass("Please set a password for your new keyring: ")
  File "/usr/lib/python3.9/getpass.py", line 91, in unix_getpass
    passwd = fallback_getpass(prompt, stream)
  File "/usr/lib/python3.9/getpass.py", line 126, in fallback_getpass
    return _raw_input(prompt, stream)
  File "/usr/lib/python3.9/getpass.py", line 148, in _raw_input
    raise EOFError

I've got nothing unusual here .. I'm running under tmux but the behaviour's the same outside with and without $TERM set.

$ echo $TERM
screen

$ echo $SHELL
bash

from gkeep.nvim.

stevearc avatar stevearc commented on June 8, 2024

Looks like this is failing because the underlying keyring library is trying to set up the keyring (because it hasn't been set up yet) and it fails because it's not in an interactive context. I'll see if I can come up with a graceful way to handle that

from gkeep.nvim.

stevearc avatar stevearc commented on June 8, 2024

I've put in a fix. Let me know if that does it for you

from gkeep.nvim.

Yohnny777 avatar Yohnny777 commented on June 8, 2024

for me, absolutely nothing happens when I enter email or password to the prompt window. no error, no reaction

from gkeep.nvim.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.